From fa6f63c3cbe8308ca4ded056c1c3d723f2a7c6e8 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Fri, 17 Feb 2006 13:43:50 +0000 Subject: [PATCH] New errors and defines for socket options. --- include/errno.h | 2 ++ include/netinet/tcp.h | 5 +++++ include/sys/socket.h | 1 + 3 files changed, 8 insertions(+) diff --git a/include/errno.h b/include/errno.h index 4c589ff6d..bb79502d2 100755 --- a/include/errno.h +++ b/include/errno.h @@ -100,6 +100,8 @@ extern int errno; /* place where the error numbers go */ #define EADDRNOTAVAIL (_SIGN 71) /* Can't assign requested address */ #define EALREADY (_SIGN 72) /* Connection already in progress */ #define EMSGSIZE (_SIGN 73) /* Message too long */ +#define ENOTSOCK (_SIGN 74) /* Socket operation on non-socket */ +#define ENOPROTOOPT (_SIGN 75) /* Protocol not available */ /* The following are not POSIX errors, but they can still happen. * All of these are generated by the kernel and relate to message passing. diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h index e69de29bb..2e44510fb 100644 --- a/include/netinet/tcp.h +++ b/include/netinet/tcp.h @@ -0,0 +1,5 @@ +/* +netinet/tcp.h +*/ + +#define TCP_NODELAY 0x01 /* Avoid coalescing of small segments */ diff --git a/include/sys/socket.h b/include/sys/socket.h index 65d1a8128..fb6ddd5de 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -26,6 +26,7 @@ sys/socket.h #define SO_KEEPALIVE 0x0008 #define SO_SNDBUF 0x1001 /* send buffer size */ +#define SO_RCVBUF 0x1002 /* receive buffer size */ #define SO_ERROR 0x1007 /* get and clear error status */ /* The how argument to shutdown */ -- 2.44.0