diff options
Diffstat (limited to 'socket')
-rw-r--r-- | socket/accept.c | 5 | ||||
-rw-r--r-- | socket/accept4.c | 6 | ||||
-rw-r--r-- | socket/bind.c | 5 | ||||
-rw-r--r-- | socket/connect.c | 5 | ||||
-rw-r--r-- | socket/getpeername.c | 5 | ||||
-rw-r--r-- | socket/getsockname.c | 5 | ||||
-rw-r--r-- | socket/getsockopt.c | 7 | ||||
-rw-r--r-- | socket/listen.c | 4 | ||||
-rw-r--r-- | socket/recv.c | 6 | ||||
-rw-r--r-- | socket/recvmsg.c | 5 | ||||
-rw-r--r-- | socket/send.c | 6 | ||||
-rw-r--r-- | socket/sendmsg.c | 5 | ||||
-rw-r--r-- | socket/shutdown.c | 4 | ||||
-rw-r--r-- | socket/sockatmark.c | 3 | ||||
-rw-r--r-- | socket/socket.c | 5 |
15 files changed, 15 insertions, 61 deletions
diff --git a/socket/accept.c b/socket/accept.c index 619bee5b25..76765aaaac 100644 --- a/socket/accept.c +++ b/socket/accept.c @@ -24,10 +24,7 @@ peer and *ADDR_LEN to the address's actual length, and return the new socket's descriptor, or -1 for errors. */ int -accept (fd, addr, addr_len) - int fd; - __SOCKADDR_ARG addr; - socklen_t *addr_len; +accept (int fd, __SOCKADDR_ARG addr, socklen_t *addr_len) { __set_errno (ENOSYS); return -1; diff --git a/socket/accept4.c b/socket/accept4.c index e1a6d05de0..b6c1731feb 100644 --- a/socket/accept4.c +++ b/socket/accept4.c @@ -25,11 +25,7 @@ new socket's descriptor, or -1 for errors. The operation can be influenced by the FLAGS parameter. */ int -__libc_accept4 (fd, addr, addr_len, flags) - int fd; - __SOCKADDR_ARG addr; - socklen_t *addr_len; - int flags; +__libc_accept4 (int fd, __SOCKADDR_ARG addr, socklen_t *addr_len, int flags) { __set_errno (ENOSYS); return -1; diff --git a/socket/bind.c b/socket/bind.c index 4dea286c8f..15ff31f22b 100644 --- a/socket/bind.c +++ b/socket/bind.c @@ -20,10 +20,7 @@ /* Give the socket FD the local address ADDR (which is LEN bytes long). */ int -__bind (fd, addr, len) - int fd; - __CONST_SOCKADDR_ARG addr; - socklen_t len; +__bind (int fd, __CONST_SOCKADDR_ARG addr, socklen_t len) { __set_errno (ENOSYS); return -1; diff --git a/socket/connect.c b/socket/connect.c index 45cee74a5a..e02b8694a3 100644 --- a/socket/connect.c +++ b/socket/connect.c @@ -23,10 +23,7 @@ and the only address from which to accept transmissions. Return 0 on success, -1 for errors. */ int -__connect (fd, addr, len) - int fd; - __CONST_SOCKADDR_ARG addr; - socklen_t len; +__connect (int fd, __CONST_SOCKADDR_ARG addr, socklen_t len) { __set_errno (ENOSYS); return -1; diff --git a/socket/getpeername.c b/socket/getpeername.c index d3425bbe40..43adc686be 100644 --- a/socket/getpeername.c +++ b/socket/getpeername.c @@ -21,10 +21,7 @@ /* Put the address of the peer connected to socket FD into *ADDR (which is *LEN bytes long), and its actual length into *LEN. */ int -getpeername (fd, addr, len) - int fd; - __SOCKADDR_ARG addr; - socklen_t *len; +getpeername (int fd, __SOCKADDR_ARG addr, socklen_t *len) { __set_errno (ENOSYS); return -1; diff --git a/socket/getsockname.c b/socket/getsockname.c index 47e1838aa7..4d6fac9f4e 100644 --- a/socket/getsockname.c +++ b/socket/getsockname.c @@ -20,10 +20,7 @@ /* Put the local address of FD into *ADDR and its length in *LEN. */ int -__getsockname (fd, addr, len) - int fd; - __SOCKADDR_ARG addr; - socklen_t *len; +__getsockname (int fd, __SOCKADDR_ARG addr, socklen_t *len) { __set_errno (ENOSYS); return -1; diff --git a/socket/getsockopt.c b/socket/getsockopt.c index 73fb15e341..7b0f3b38ba 100644 --- a/socket/getsockopt.c +++ b/socket/getsockopt.c @@ -22,12 +22,7 @@ into OPTVAL (which is *OPTLEN bytes long), and set *OPTLEN to the value's actual length. Returns 0 on success, -1 for errors. */ int -getsockopt (fd, level, optname, optval, optlen) - int fd; - int level; - int optname; - void *optval; - socklen_t *optlen; +getsockopt (int fd, int level, int optname, void *optval, socklen_t *optlen) { __set_errno (ENOSYS); return -1; diff --git a/socket/listen.c b/socket/listen.c index 2bbdfdc8db..aa4d307181 100644 --- a/socket/listen.c +++ b/socket/listen.c @@ -22,9 +22,7 @@ N connection requests will be queued before further requests are refused. Returns 0 on success, -1 for errors. */ int -__listen (fd, n) - int fd; - int n; +__listen (int fd, int n) { __set_errno (ENOSYS); return -1; diff --git a/socket/recv.c b/socket/recv.c index 63a9fcb8b7..89cdf5b9e3 100644 --- a/socket/recv.c +++ b/socket/recv.c @@ -21,11 +21,7 @@ /* Read N bytes into BUF from socket FD. Returns the number read or -1 for errors. */ ssize_t -__recv (fd, buf, n, flags) - int fd; - void *buf; - size_t n; - int flags; +__recv (int fd, void *buf, size_t n, int flags) { __set_errno (ENOSYS); return -1; diff --git a/socket/recvmsg.c b/socket/recvmsg.c index d34a435f4a..7dcbdc32f7 100644 --- a/socket/recvmsg.c +++ b/socket/recvmsg.c @@ -21,10 +21,7 @@ /* Receive a message as described by MESSAGE from socket FD. Returns the number of bytes read or -1 for errors. */ ssize_t -__recvmsg (fd, message, flags) - int fd; - struct msghdr *message; - int flags; +__recvmsg (int fd, struct msghdr *message, int flags) { __set_errno (ENOSYS); return -1; diff --git a/socket/send.c b/socket/send.c index 4ecb332e9e..cbe3b853b8 100644 --- a/socket/send.c +++ b/socket/send.c @@ -20,11 +20,7 @@ /* Send N bytes of BUF to socket FD. Returns the number sent or -1. */ ssize_t -__send (fd, buf, n, flags) - int fd; - const __ptr_t buf; - size_t n; - int flags; +__send (int fd, const __ptr_t buf, size_t n, int flags) { __set_errno (ENOSYS); return -1; diff --git a/socket/sendmsg.c b/socket/sendmsg.c index 586f598c77..e9e3752022 100644 --- a/socket/sendmsg.c +++ b/socket/sendmsg.c @@ -21,10 +21,7 @@ /* Send a message described MESSAGE on socket FD. Returns the number of bytes sent, or -1 for errors. */ ssize_t -__sendmsg (fd, message, flags) - int fd; - const struct msghdr *message; - int flags; +__sendmsg (int fd, const struct msghdr *message, int flags) { __set_errno (ENOSYS); return -1; diff --git a/socket/shutdown.c b/socket/shutdown.c index ea5f7b3042..912846e33d 100644 --- a/socket/shutdown.c +++ b/socket/shutdown.c @@ -25,9 +25,7 @@ 2 = No more receptions or transmissions. Returns 0 on success, -1 for errors. */ int -shutdown (fd, how) - int fd; - int how; +shutdown (int fd, int how) { __set_errno (ENOSYS); return -1; diff --git a/socket/sockatmark.c b/socket/sockatmark.c index 6ff6d0198b..a00d3118a4 100644 --- a/socket/sockatmark.c +++ b/socket/sockatmark.c @@ -20,8 +20,7 @@ /* Determine wheter socket is at a out-of-band mark. */ int -sockatmark (fd) - int fd; +sockatmark (int fd) { __set_errno (ENOSYS); return -1; diff --git a/socket/socket.c b/socket/socket.c index 9fe8fd9929..6f879eafad 100644 --- a/socket/socket.c +++ b/socket/socket.c @@ -22,10 +22,7 @@ protocol PROTOCOL. If PROTOCOL is zero, one is chosen automatically. Returns a file descriptor for the new socket, or -1 for errors. */ int -__socket (domain, type, protocol) - int domain; - int type; - int protocol; +__socket (int domain, int type, int protocol) { __set_errno (ENOSYS); return -1; |