blob: 7885fc13ba4c8a044df2c9eac1561fa1484fb594 [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#include <sys/socket.h>
2#include "syscall.h"
Rich Felker0b44a032011-02-12 00:22:29 -05003
Rich Felker400c5e52012-09-06 22:44:55 -04004int getsockname(int fd, struct sockaddr *restrict addr, socklen_t *restrict len)
Rich Felker0b44a032011-02-12 00:22:29 -05005{
Rich Felker03a2f3e2011-02-15 04:40:40 -05006 return socketcall(getsockname, fd, addr, len, 0, 0, 0);
Rich Felker0b44a032011-02-12 00:22:29 -05007}