summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-02-16 16:44:08 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-02-16 16:44:08 +0000
commit9e60462e8ba2ed52cb3dade41dec5b1d4b69ca43 (patch)
tree6e146f091d5e1c5fe08b7e8d268c7438148a19e0 /lib/libpthread
parent821814eb2c484fc4ddc712466f8c50f12f7024a2 (diff)
update prototypes now that socket functions take socklen_t as a length parameter
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/pthread_private.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libpthread/uthread/pthread_private.h b/lib/libpthread/uthread/pthread_private.h
index 851e1b4b7a0..529c647fa57 100644
--- a/lib/libpthread/uthread/pthread_private.h
+++ b/lib/libpthread/uthread/pthread_private.h
@@ -31,7 +31,7 @@
*
* Private thread definitions for the uthread kernel.
*
- * $OpenBSD: pthread_private.h,v 1.12 1999/01/18 00:03:35 d Exp $
+ * $OpenBSD: pthread_private.h,v 1.13 1999/02/16 16:44:07 millert Exp $
*
*/
@@ -630,23 +630,23 @@ int _thread_sys_pipe(int *);
/* #include <sys/socket.h> */
#ifdef _SYS_SOCKET_H_
-int _thread_sys_accept(int, struct sockaddr *, int *);
-int _thread_sys_bind(int, const struct sockaddr *, int);
-int _thread_sys_connect(int, const struct sockaddr *, int);
-int _thread_sys_getpeername(int, struct sockaddr *, int *);
-int _thread_sys_getsockname(int, struct sockaddr *, int *);
-int _thread_sys_getsockopt(int, int, int, void *, int *);
+int _thread_sys_accept(int, struct sockaddr *, socklen_t *);
+int _thread_sys_bind(int, const struct sockaddr *, socklen_t);
+int _thread_sys_connect(int, const struct sockaddr *, socklen_t);
+int _thread_sys_getpeername(int, struct sockaddr *, socklen_t *);
+int _thread_sys_getsockname(int, struct sockaddr *, socklen_t *);
+int _thread_sys_getsockopt(int, int, int, void *, socklen_t *);
int _thread_sys_listen(int, int);
-int _thread_sys_setsockopt(int, int, int, const void *, int);
+int _thread_sys_setsockopt(int, int, int, const void *, socklen_t);
int _thread_sys_shutdown(int, int);
int _thread_sys_socket(int, int, int);
int _thread_sys_socketpair(int, int, int, int *);
ssize_t _thread_sys_recv(int, void *, size_t, int);
-ssize_t _thread_sys_recvfrom(int, void *, size_t, int, struct sockaddr *, int *);
+ssize_t _thread_sys_recvfrom(int, void *, size_t, int, struct sockaddr *, socklen_t *);
ssize_t _thread_sys_recvmsg(int, struct msghdr *, int);
ssize_t _thread_sys_send(int, const void *, size_t, int);
ssize_t _thread_sys_sendmsg(int, const struct msghdr *, int);
-ssize_t _thread_sys_sendto(int, const void *,size_t, int, const struct sockaddr *, int);
+ssize_t _thread_sys_sendto(int, const void *,size_t, int, const struct sockaddr *, socklen_t);
#endif
/* #include <stdio.h> */