8 lines
188 B
C
8 lines
188 B
C
|
#include <sys/socket.h>
|
||
|
#include "syscall.h"
|
||
|
|
||
|
int getsockname(int fd, struct sockaddr *restrict addr, socklen_t *restrict len)
|
||
|
{
|
||
|
return socketcall(getsockname, fd, addr, len, 0, 0, 0);
|
||
|
}
|