New errors and defines for socket options.

This commit is contained in:
Philip Homburg 2006-02-17 13:43:50 +00:00
parent d430c4fac8
commit fa6f63c3cb
3 changed files with 8 additions and 0 deletions

View file

@ -100,6 +100,8 @@ extern int errno; /* place where the error numbers go */
#define EADDRNOTAVAIL (_SIGN 71) /* Can't assign requested address */ #define EADDRNOTAVAIL (_SIGN 71) /* Can't assign requested address */
#define EALREADY (_SIGN 72) /* Connection already in progress */ #define EALREADY (_SIGN 72) /* Connection already in progress */
#define EMSGSIZE (_SIGN 73) /* Message too long */ #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. /* The following are not POSIX errors, but they can still happen.
* All of these are generated by the kernel and relate to message passing. * All of these are generated by the kernel and relate to message passing.

View file

@ -0,0 +1,5 @@
/*
netinet/tcp.h
*/
#define TCP_NODELAY 0x01 /* Avoid coalescing of small segments */

View file

@ -26,6 +26,7 @@ sys/socket.h
#define SO_KEEPALIVE 0x0008 #define SO_KEEPALIVE 0x0008
#define SO_SNDBUF 0x1001 /* send buffer size */ #define SO_SNDBUF 0x1001 /* send buffer size */
#define SO_RCVBUF 0x1002 /* receive buffer size */
#define SO_ERROR 0x1007 /* get and clear error status */ #define SO_ERROR 0x1007 /* get and clear error status */
/* The how argument to shutdown */ /* The how argument to shutdown */