diff options
Diffstat (limited to 'socket')
-rw-r--r-- | socket/recvfrom.c | 9 | ||||
-rw-r--r-- | socket/sendto.c | 9 | ||||
-rw-r--r-- | socket/setsockopt.c | 8 |
3 files changed, 6 insertions, 20 deletions
diff --git a/socket/recvfrom.c b/socket/recvfrom.c index 479350f..f8985fa 100644 --- a/socket/recvfrom.c +++ b/socket/recvfrom.c @@ -22,13 +22,8 @@ at address ADDR (which is ADDR_LEN bytes long). Returns the number read or -1 for errors. */ ssize_t -__recvfrom (fd, buf, n, flags, addr, addr_len) - int fd; - void *buf; - size_t n; - int flags; - __SOCKADDR_ARG addr; - socklen_t *addr_len; +__recvfrom (int fd, void *buf, size_t n, int flags, __SOCKADDR_ARG addr, + socklen_t *addr_len) { __set_errno (ENOSYS); return -1; diff --git a/socket/sendto.c b/socket/sendto.c index de2e523..0b9e4d2 100644 --- a/socket/sendto.c +++ b/socket/sendto.c @@ -21,13 +21,8 @@ /* Send N bytes of BUF on socket FD to peer at address ADDR (which is ADDR_LEN bytes long). Returns the number sent, or -1 for errors. */ ssize_t -__sendto (fd, buf, n, flags, addr, addr_len) - int fd; - const __ptr_t buf; - size_t n; - int flags; - __CONST_SOCKADDR_ARG addr; - socklen_t addr_len; +__sendto (int fd, const __ptr_t buf, size_t n, int flags, + __CONST_SOCKADDR_ARG addr, socklen_t addr_len) { __set_errno (ENOSYS); return -1; diff --git a/socket/setsockopt.c b/socket/setsockopt.c index cf36f1c..e5985e9 100644 --- a/socket/setsockopt.c +++ b/socket/setsockopt.c @@ -22,12 +22,8 @@ to *OPTVAL (which is OPTLEN bytes long). Returns 0 on success, -1 for errors. */ int -__setsockopt (fd, level, optname, optval, optlen) - int fd; - int level; - int optname; - const __ptr_t optval; - socklen_t optlen; +__setsockopt (int fd, int level, int optname, const __ptr_t optval, + socklen_t optlen) { __set_errno (ENOSYS); return -1; |