Displaying 2 results from an estimated 2 matches for "38cfef6".
2011 Aug 29
0
[PATCH] include: [sys/socket.h] Fix bind and connect attributes
...;const struct sockaddr *'
Signed-off-by: maximilian attems <max at stro.at>
---
usr/include/sys/socket.h | 4 ++--
usr/klibc/SOCKETCALLS.def | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/usr/include/sys/socket.h b/usr/include/sys/socket.h
index fbc7711..38cfef6 100644
--- a/usr/include/sys/socket.h
+++ b/usr/include/sys/socket.h
@@ -244,8 +244,8 @@ struct ucred {
__extern int socket(int, int, int);
-__extern int bind(int, struct sockaddr *, int);
-__extern int connect(int, struct sockaddr *, socklen_t);
+__extern int bind(int, const struct sockaddr *...
2012 May 22
0
[klibc:master] include: [sys/socket.h] define SOMAXCONN
...OMAXCONN
It is part of POSIX, noticed while trying to build util-linux stuff.
Signed-off-by: maximilian attems <max at stro.at>
---
usr/include/sys/socket.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/usr/include/sys/socket.h b/usr/include/sys/socket.h
index 38cfef6..3334212 100644
--- a/usr/include/sys/socket.h
+++ b/usr/include/sys/socket.h
@@ -32,6 +32,9 @@
# define SOCK_NONBLOCK 04000
#endif
+/* The maximum backlock queue length. */
+#define SOMAXCONN 128
+
#ifndef AF_INET
#define AF_UNSPEC 0
#define AF_UNIX 1 /* Unix domain sockets */