diff options
Diffstat (limited to 'sysdeps/stub')
-rw-r--r-- | sysdeps/stub/accept.c | 2 | ||||
-rw-r--r-- | sysdeps/stub/bind.c | 2 | ||||
-rw-r--r-- | sysdeps/stub/bits/string.h | 2 | ||||
-rw-r--r-- | sysdeps/stub/connect.c | 3 | ||||
-rw-r--r-- | sysdeps/stub/getsockname.c | 2 | ||||
-rw-r--r-- | sysdeps/stub/getsockopt.c | 3 | ||||
-rw-r--r-- | sysdeps/stub/recvfrom.c | 3 | ||||
-rw-r--r-- | sysdeps/stub/sendto.c | 3 | ||||
-rw-r--r-- | sysdeps/stub/setsockopt.c | 3 |
9 files changed, 9 insertions, 14 deletions
diff --git a/sysdeps/stub/accept.c b/sysdeps/stub/accept.c index 8f65f5f..c27070c 100644 --- a/sysdeps/stub/accept.c +++ b/sysdeps/stub/accept.c @@ -28,7 +28,7 @@ int accept (fd, addr, addr_len) int fd; __SOCKADDR_ARG addr; - size_t *addr_len; + socklen_t *addr_len; { __set_errno (ENOSYS); return -1; diff --git a/sysdeps/stub/bind.c b/sysdeps/stub/bind.c index bfd2888..7e7f0d7 100644 --- a/sysdeps/stub/bind.c +++ b/sysdeps/stub/bind.c @@ -24,7 +24,7 @@ int bind (fd, addr, len) int fd; __CONST_SOCKADDR_ARG addr; - size_t len; + socklen_t len; { __set_errno (ENOSYS); return -1; diff --git a/sysdeps/stub/bits/string.h b/sysdeps/stub/bits/string.h index bd1b774..ad68b03 100644 --- a/sysdeps/stub/bits/string.h +++ b/sysdeps/stub/bits/string.h @@ -1,4 +1,4 @@ -/* This file should provide inline versions of math functions. +/* This file should provide inline versions of string functions. Surround GCC-specific parts with #ifdef __GNUC__, and use `extern __inline'. diff --git a/sysdeps/stub/connect.c b/sysdeps/stub/connect.c index 9152a94..fb8b503 100644 --- a/sysdeps/stub/connect.c +++ b/sysdeps/stub/connect.c @@ -27,12 +27,11 @@ int __connect (fd, addr, len) int fd; __CONST_SOCKADDR_ARG addr; - size_t len; + socklen_t len; { __set_errno (ENOSYS); return -1; } weak_alias (__connect, connect) - stub_warning (connect) diff --git a/sysdeps/stub/getsockname.c b/sysdeps/stub/getsockname.c index 0706e59..f0d46db 100644 --- a/sysdeps/stub/getsockname.c +++ b/sysdeps/stub/getsockname.c @@ -24,7 +24,7 @@ int getsockname (fd, addr, len) int fd; __SOCKADDR_ARG addr; - size_t *len; + socklen_t *len; { __set_errno (ENOSYS); return -1; diff --git a/sysdeps/stub/getsockopt.c b/sysdeps/stub/getsockopt.c index d06b3e6..6f3c866 100644 --- a/sysdeps/stub/getsockopt.c +++ b/sysdeps/stub/getsockopt.c @@ -28,11 +28,10 @@ getsockopt (fd, level, optname, optval, optlen) int level; int optname; void *optval; - size_t *optlen; + socklen_t *optlen; { __set_errno (ENOSYS); return -1; } - stub_warning (getsockopt) diff --git a/sysdeps/stub/recvfrom.c b/sysdeps/stub/recvfrom.c index d759c3d..931bdbb 100644 --- a/sysdeps/stub/recvfrom.c +++ b/sysdeps/stub/recvfrom.c @@ -29,11 +29,10 @@ recvfrom (fd, buf, n, flags, addr, addr_len) size_t n; int flags; __SOCKADDR_ARG addr; - size_t *addr_len; + socklen_t *addr_len; { __set_errno (ENOSYS); return -1; } - stub_warning (recvfrom) diff --git a/sysdeps/stub/sendto.c b/sysdeps/stub/sendto.c index d09efba..47dad95 100644 --- a/sysdeps/stub/sendto.c +++ b/sysdeps/stub/sendto.c @@ -28,11 +28,10 @@ sendto (fd, buf, n, flags, addr, addr_len) size_t n; int flags; __CONST_SOCKADDR_ARG addr; - size_t addr_len; + socklen_t addr_len; { __set_errno (ENOSYS); return -1; } - stub_warning (sendto) diff --git a/sysdeps/stub/setsockopt.c b/sysdeps/stub/setsockopt.c index b1c02a1..5fad292 100644 --- a/sysdeps/stub/setsockopt.c +++ b/sysdeps/stub/setsockopt.c @@ -28,11 +28,10 @@ setsockopt (fd, level, optname, optval, optlen) int level; int optname; void *optval; - size_t optlen; + socklen_t optlen; { __set_errno (ENOSYS); return -1; } - stub_warning (setsockopt) |