aboutsummaryrefslogtreecommitdiff
path: root/socket
diff options
context:
space:
mode:
Diffstat (limited to 'socket')
-rw-r--r--socket/accept.c5
-rw-r--r--socket/accept4.c6
-rw-r--r--socket/bind.c5
-rw-r--r--socket/connect.c5
-rw-r--r--socket/getpeername.c5
-rw-r--r--socket/getsockname.c5
-rw-r--r--socket/getsockopt.c7
-rw-r--r--socket/listen.c4
-rw-r--r--socket/recv.c6
-rw-r--r--socket/recvmsg.c5
-rw-r--r--socket/send.c6
-rw-r--r--socket/sendmsg.c5
-rw-r--r--socket/shutdown.c4
-rw-r--r--socket/sockatmark.c3
-rw-r--r--socket/socket.c5
15 files changed, 15 insertions, 61 deletions
diff --git a/socket/accept.c b/socket/accept.c
index 619bee5..76765aa 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 e1a6d05..b6c1731 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 4dea286..15ff31f 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 45cee74..e02b869 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 d3425bb..43adc68 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 47e1838..4d6fac9 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 73fb15e..7b0f3b3 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 2bbdfdc..aa4d307 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 63a9fcb..89cdf5b 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 d34a435..7dcbdc3 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 4ecb332..cbe3b85 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 586f598..e9e3752 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 ea5f7b3..912846e 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 6ff6d01..a00d311 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 9fe8fd9..6f879ea 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;