version 1.126, 2018/12/16 14:03:37 |
version 1.127, 2019/02/17 23:35:50 |
Line 89 __RCSID("$NetBSD$"); |
|
Line 89 __RCSID("$NetBSD$"); |
|
enum dualcall { |
enum dualcall { |
DUALCALL_WRITE, DUALCALL_WRITEV, DUALCALL_PWRITE, DUALCALL_PWRITEV, |
DUALCALL_WRITE, DUALCALL_WRITEV, DUALCALL_PWRITE, DUALCALL_PWRITEV, |
DUALCALL_IOCTL, DUALCALL_FCNTL, |
DUALCALL_IOCTL, DUALCALL_FCNTL, |
DUALCALL_SOCKET, DUALCALL_ACCEPT, DUALCALL_PACCEPT, |
DUALCALL_SOCKET, DUALCALL_ACCEPT, |
|
#ifndef __linux__ |
|
DUALCALL_PACCEPT, |
|
#endif |
DUALCALL_BIND, DUALCALL_CONNECT, |
DUALCALL_BIND, DUALCALL_CONNECT, |
DUALCALL_GETPEERNAME, DUALCALL_GETSOCKNAME, DUALCALL_LISTEN, |
DUALCALL_GETPEERNAME, DUALCALL_GETSOCKNAME, DUALCALL_LISTEN, |
DUALCALL_RECVFROM, DUALCALL_RECVMSG, |
DUALCALL_RECVFROM, DUALCALL_RECVMSG, |
Line 272 struct sysnames { |
|
Line 275 struct sysnames { |
|
} syscnames[] = { |
} syscnames[] = { |
{ DUALCALL_SOCKET, S(REALSOCKET), RSYS_NAME(SOCKET) }, |
{ DUALCALL_SOCKET, S(REALSOCKET), RSYS_NAME(SOCKET) }, |
{ DUALCALL_ACCEPT, "accept", RSYS_NAME(ACCEPT) }, |
{ DUALCALL_ACCEPT, "accept", RSYS_NAME(ACCEPT) }, |
|
#ifndef __linux__ |
{ DUALCALL_PACCEPT, "paccept", RSYS_NAME(PACCEPT) }, |
{ DUALCALL_PACCEPT, "paccept", RSYS_NAME(PACCEPT) }, |
|
#endif |
{ DUALCALL_BIND, "bind", RSYS_NAME(BIND) }, |
{ DUALCALL_BIND, "bind", RSYS_NAME(BIND) }, |
{ DUALCALL_CONNECT, "connect", RSYS_NAME(CONNECT) }, |
{ DUALCALL_CONNECT, "connect", RSYS_NAME(CONNECT) }, |
{ DUALCALL_GETPEERNAME, "getpeername", RSYS_NAME(GETPEERNAME) }, |
{ DUALCALL_GETPEERNAME, "getpeername", RSYS_NAME(GETPEERNAME) }, |
Line 1382 accept(int s, struct sockaddr *addr, soc |
|
Line 1387 accept(int s, struct sockaddr *addr, soc |
|
return fd; |
return fd; |
} |
} |
|
|
|
#ifndef __linux__ |
int |
int |
paccept(int s, struct sockaddr *addr, socklen_t *addrlen, |
paccept(int s, struct sockaddr *addr, socklen_t *addrlen, |
const sigset_t * restrict sigmask, int flags) |
const sigset_t * restrict sigmask, int flags) |
Line 1410 paccept(int s, struct sockaddr *addr, so |
|
Line 1416 paccept(int s, struct sockaddr *addr, so |
|
|
|
return fd; |
return fd; |
} |
} |
|
#endif |
|
|
/* |
/* |
* ioctl() and fcntl() are varargs calls and need special treatment. |
* ioctl() and fcntl() are varargs calls and need special treatment. |