Added {h,n}to{l,s} prototypes. Added IPPROTO_TCP. SA_FAMILY_T -> _SA_FAMILY_T

Added SOCK_RAW, SOCK_RDM, SOCK_SEQPACKET, SO_DEBUG, SO_ERROR.
This commit is contained in:
Philip Homburg
2005-07-27 11:42:54 +00:00
parent 055168bd31
commit 920c462e8c
4 changed files with 15 additions and 5 deletions
+6
View File
@@ -15,12 +15,18 @@ sys/socket.h
#define SOCK_STREAM 1
#define SOCK_DGRAM 2
#define SOCK_RAW 3
#define SOCK_RDM 4
#define SOCK_SEQPACKET 5
#define SOL_SOCKET 0xFFFF
#define SO_DEBUG 0x0001
#define SO_REUSEADDR 0x0004
#define SO_KEEPALIVE 0x0008
#define SO_ERROR 0x1007
/* The how argument to shutdown */
#define SHUT_RD 0 /* No further reads */
#define SHUT_WR 1 /* No further writes */
+3 -3
View File
@@ -4,11 +4,11 @@ sys/un.h
/* Open Group Base Specifications Issue 6 */
#ifndef SA_FAMILY_T
#define SA_FAMILY_T
#ifndef _SA_FAMILY_T
#define _SA_FAMILY_T
/* Should match corresponding typedef in <sys/socket.h> */
typedef uint8_t sa_family_t;
#endif /* SA_FAMILY_T */
#endif /* _SA_FAMILY_T */
struct sockaddr_un
{