mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 22:10:13 +00:00
Update.
1998-04-24 13:56 Ulrich Drepper <drepper@cygnus.com> * sysdeps/generic/bits/socket.h: Add #defines for enum values. Patch by Thomas Bushnell, n/BSG.
This commit is contained in:
parent
d1e9545ef4
commit
0777024193
@ -1,3 +1,8 @@
|
|||||||
|
1998-04-24 13:56 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* sysdeps/generic/bits/socket.h: Add #defines for enum values.
|
||||||
|
Patch by Thomas Bushnell, n/BSG.
|
||||||
|
|
||||||
1998-04-24 Ulrich Drepper <drepper@cygnus.com>
|
1998-04-24 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* inet/rcmd.c (iruserok): Initialize hostf variable to NULL.
|
* inet/rcmd.c (iruserok): Initialize hostf variable to NULL.
|
||||||
|
@ -131,13 +131,21 @@ struct sockaddr
|
|||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
MSG_OOB = 0x01, /* Process out-of-band data. */
|
MSG_OOB = 0x01, /* Process out-of-band data. */
|
||||||
|
#define MSG_OOB MSG_OOB
|
||||||
MSG_PEEK = 0x02, /* Peek at incoming messages. */
|
MSG_PEEK = 0x02, /* Peek at incoming messages. */
|
||||||
|
#define MSG_PEEK MSG_PEEK
|
||||||
MSG_DONTROUTE = 0x04, /* Don't use local routing. */
|
MSG_DONTROUTE = 0x04, /* Don't use local routing. */
|
||||||
|
#define MSG_DONTROUTE MSG_DONTROUTE
|
||||||
MSG_EOR = 0x08, /* Data completes record. */
|
MSG_EOR = 0x08, /* Data completes record. */
|
||||||
|
#define MSG_EOR MSG_EOR
|
||||||
MSG_TRUNC = 0x10, /* Data discarded before delivery. */
|
MSG_TRUNC = 0x10, /* Data discarded before delivery. */
|
||||||
|
#define MSG_TRUNC MSG_TRUNC
|
||||||
MSG_CTRUNC = 0x20, /* Control data lost before delivery. */
|
MSG_CTRUNC = 0x20, /* Control data lost before delivery. */
|
||||||
|
#define MSG_CTRUNC MSG_CTRUNC
|
||||||
MSG_WAITALL = 0x40, /* Wait for full request or error. */
|
MSG_WAITALL = 0x40, /* Wait for full request or error. */
|
||||||
|
#define MSG_WAITALL MSG_WAITALL
|
||||||
MSG_DONTWAIT = 0x80, /* This message should be nonblocking. */
|
MSG_DONTWAIT = 0x80, /* This message should be nonblocking. */
|
||||||
|
#define MSG_DONTWAIT MSG_DONTWAIT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -166,31 +174,47 @@ struct msghdr
|
|||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
SO_DEBUG = 0x0001, /* Record debugging information. */
|
SO_DEBUG = 0x0001, /* Record debugging information. */
|
||||||
|
#define SO_DEBUG SO_DEBUG
|
||||||
SO_ACCEPTCONN = 0x0002, /* Accept connections on socket. */
|
SO_ACCEPTCONN = 0x0002, /* Accept connections on socket. */
|
||||||
|
#define SO_ACCEPTCONN SO_ACCEPTCONN
|
||||||
SO_REUSEADDR = 0x0004, /* Allow reuse of local addresses. */
|
SO_REUSEADDR = 0x0004, /* Allow reuse of local addresses. */
|
||||||
|
#define SO_REUSEADDR SO_REUSEADDR
|
||||||
SO_KEEPALIVE = 0x0008, /* Keep connections alive and send
|
SO_KEEPALIVE = 0x0008, /* Keep connections alive and send
|
||||||
SIGPIPE when they die. */
|
SIGPIPE when they die. */
|
||||||
|
#define SO_KEEPALIVE SO_KEEPALIVE
|
||||||
SO_DONTROUTE = 0x0010, /* Don't do local routing. */
|
SO_DONTROUTE = 0x0010, /* Don't do local routing. */
|
||||||
|
#define SO_DONTROUTE SO_DONTROUTE
|
||||||
SO_BROADCAST = 0x0020, /* Allow transmission of
|
SO_BROADCAST = 0x0020, /* Allow transmission of
|
||||||
broadcast messages. */
|
broadcast messages. */
|
||||||
|
#define SO_BROADCAST SO_BROADCAST
|
||||||
SO_USELOOPBACK = 0x0040, /* Use the software loopback to avoid
|
SO_USELOOPBACK = 0x0040, /* Use the software loopback to avoid
|
||||||
hardware use when possible. */
|
hardware use when possible. */
|
||||||
|
#define SO_USELOOPBACK SO_USELOOPBACK
|
||||||
SO_LINGER = 0x0080, /* Block on close of a reliable
|
SO_LINGER = 0x0080, /* Block on close of a reliable
|
||||||
socket to transmit pending data. */
|
socket to transmit pending data. */
|
||||||
|
#define SO_LINGER SO_LINGER
|
||||||
SO_OOBINLINE = 0x0100, /* Receive out-of-band data in-band. */
|
SO_OOBINLINE = 0x0100, /* Receive out-of-band data in-band. */
|
||||||
|
#define SO_OOBINLINE SO_OOBINLINE
|
||||||
SO_REUSEPORT = 0x0200, /* Allow local address and port reuse. */
|
SO_REUSEPORT = 0x0200, /* Allow local address and port reuse. */
|
||||||
|
#define SO_REUSEPORT SO_REUSEPORT
|
||||||
SO_SNDBUF = 0x1001, /* Send buffer size. */
|
SO_SNDBUF = 0x1001, /* Send buffer size. */
|
||||||
|
#define SO_SNDBUF SO_SNDBUF
|
||||||
SO_RCVBUF = 0x1002, /* Receive buffer. */
|
SO_RCVBUF = 0x1002, /* Receive buffer. */
|
||||||
|
#define SO_RCVBUF SO_RCVBUF
|
||||||
SO_SNDLOWAT = 0x1003, /* Send low-water mark. */
|
SO_SNDLOWAT = 0x1003, /* Send low-water mark. */
|
||||||
|
#define SO_SNDLOWAT SO_SNDLOWAT
|
||||||
SO_RCVLOWAT = 0x1004, /* Receive low-water mark. */
|
SO_RCVLOWAT = 0x1004, /* Receive low-water mark. */
|
||||||
|
#define SO_RCVLOWAT SO_RCVLOWAT
|
||||||
SO_SNDTIMEO = 0x1005, /* Send timeout. */
|
SO_SNDTIMEO = 0x1005, /* Send timeout. */
|
||||||
|
#define SO_SNDTIMEO SO_SNDTIMEO
|
||||||
SO_RCVTIMEO = 0x1006, /* Receive timeout. */
|
SO_RCVTIMEO = 0x1006, /* Receive timeout. */
|
||||||
|
#define SO_RCVTIMEO SO_RCVTIMEO
|
||||||
SO_ERROR = 0x1007, /* Get and clear error status. */
|
SO_ERROR = 0x1007, /* Get and clear error status. */
|
||||||
|
#define SO_ERROR SO_ERROR
|
||||||
SO_STYLE = 0x1008, /* Get socket connection style. */
|
SO_STYLE = 0x1008, /* Get socket connection style. */
|
||||||
|
#define SO_STYLE SO_STYLE
|
||||||
SO_TYPE = SO_STYLE, /* Compatible name for SO_STYLE. */
|
SO_TYPE = SO_STYLE, /* Compatible name for SO_STYLE. */
|
||||||
|
#define SO_TYPE SO_TYPE
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Structure used to manipulate the SO_LINGER option. */
|
/* Structure used to manipulate the SO_LINGER option. */
|
||||||
|
@ -131,13 +131,21 @@ struct sockaddr
|
|||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
MSG_OOB = 0x01, /* Process out-of-band data. */
|
MSG_OOB = 0x01, /* Process out-of-band data. */
|
||||||
|
#define MSG_OOB MSG_OOB
|
||||||
MSG_PEEK = 0x02, /* Peek at incoming messages. */
|
MSG_PEEK = 0x02, /* Peek at incoming messages. */
|
||||||
|
#define MSG_PEEK MSG_PEEK
|
||||||
MSG_DONTROUTE = 0x04, /* Don't use local routing. */
|
MSG_DONTROUTE = 0x04, /* Don't use local routing. */
|
||||||
|
#define MSG_DONTROUTE MSG_DONTROUTE
|
||||||
MSG_EOR = 0x08, /* Data completes record. */
|
MSG_EOR = 0x08, /* Data completes record. */
|
||||||
|
#define MSG_EOR MSG_EOR
|
||||||
MSG_TRUNC = 0x10, /* Data discarded before delivery. */
|
MSG_TRUNC = 0x10, /* Data discarded before delivery. */
|
||||||
|
#define MSG_TRUNC MSG_TRUNC
|
||||||
MSG_CTRUNC = 0x20, /* Control data lost before delivery. */
|
MSG_CTRUNC = 0x20, /* Control data lost before delivery. */
|
||||||
|
#define MSG_CTRUNC MSG_CTRUNC
|
||||||
MSG_WAITALL = 0x40, /* Wait for full request or error. */
|
MSG_WAITALL = 0x40, /* Wait for full request or error. */
|
||||||
|
#define MSG_WAITALL MSG_WAITALL
|
||||||
MSG_DONTWAIT = 0x80, /* This message should be nonblocking. */
|
MSG_DONTWAIT = 0x80, /* This message should be nonblocking. */
|
||||||
|
#define MSG_DONTWAIT MSG_DONTWAIT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -166,31 +174,47 @@ struct msghdr
|
|||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
SO_DEBUG = 0x0001, /* Record debugging information. */
|
SO_DEBUG = 0x0001, /* Record debugging information. */
|
||||||
|
#define SO_DEBUG SO_DEBUG
|
||||||
SO_ACCEPTCONN = 0x0002, /* Accept connections on socket. */
|
SO_ACCEPTCONN = 0x0002, /* Accept connections on socket. */
|
||||||
|
#define SO_ACCEPTCONN SO_ACCEPTCONN
|
||||||
SO_REUSEADDR = 0x0004, /* Allow reuse of local addresses. */
|
SO_REUSEADDR = 0x0004, /* Allow reuse of local addresses. */
|
||||||
|
#define SO_REUSEADDR SO_REUSEADDR
|
||||||
SO_KEEPALIVE = 0x0008, /* Keep connections alive and send
|
SO_KEEPALIVE = 0x0008, /* Keep connections alive and send
|
||||||
SIGPIPE when they die. */
|
SIGPIPE when they die. */
|
||||||
|
#define SO_KEEPALIVE SO_KEEPALIVE
|
||||||
SO_DONTROUTE = 0x0010, /* Don't do local routing. */
|
SO_DONTROUTE = 0x0010, /* Don't do local routing. */
|
||||||
|
#define SO_DONTROUTE SO_DONTROUTE
|
||||||
SO_BROADCAST = 0x0020, /* Allow transmission of
|
SO_BROADCAST = 0x0020, /* Allow transmission of
|
||||||
broadcast messages. */
|
broadcast messages. */
|
||||||
|
#define SO_BROADCAST SO_BROADCAST
|
||||||
SO_USELOOPBACK = 0x0040, /* Use the software loopback to avoid
|
SO_USELOOPBACK = 0x0040, /* Use the software loopback to avoid
|
||||||
hardware use when possible. */
|
hardware use when possible. */
|
||||||
|
#define SO_USELOOPBACK SO_USELOOPBACK
|
||||||
SO_LINGER = 0x0080, /* Block on close of a reliable
|
SO_LINGER = 0x0080, /* Block on close of a reliable
|
||||||
socket to transmit pending data. */
|
socket to transmit pending data. */
|
||||||
|
#define SO_LINGER SO_LINGER
|
||||||
SO_OOBINLINE = 0x0100, /* Receive out-of-band data in-band. */
|
SO_OOBINLINE = 0x0100, /* Receive out-of-band data in-band. */
|
||||||
|
#define SO_OOBINLINE SO_OOBINLINE
|
||||||
SO_REUSEPORT = 0x0200, /* Allow local address and port reuse. */
|
SO_REUSEPORT = 0x0200, /* Allow local address and port reuse. */
|
||||||
|
#define SO_REUSEPORT SO_REUSEPORT
|
||||||
SO_SNDBUF = 0x1001, /* Send buffer size. */
|
SO_SNDBUF = 0x1001, /* Send buffer size. */
|
||||||
|
#define SO_SNDBUF SO_SNDBUF
|
||||||
SO_RCVBUF = 0x1002, /* Receive buffer. */
|
SO_RCVBUF = 0x1002, /* Receive buffer. */
|
||||||
|
#define SO_RCVBUF SO_RCVBUF
|
||||||
SO_SNDLOWAT = 0x1003, /* Send low-water mark. */
|
SO_SNDLOWAT = 0x1003, /* Send low-water mark. */
|
||||||
|
#define SO_SNDLOWAT SO_SNDLOWAT
|
||||||
SO_RCVLOWAT = 0x1004, /* Receive low-water mark. */
|
SO_RCVLOWAT = 0x1004, /* Receive low-water mark. */
|
||||||
|
#define SO_RCVLOWAT SO_RCVLOWAT
|
||||||
SO_SNDTIMEO = 0x1005, /* Send timeout. */
|
SO_SNDTIMEO = 0x1005, /* Send timeout. */
|
||||||
|
#define SO_SNDTIMEO SO_SNDTIMEO
|
||||||
SO_RCVTIMEO = 0x1006, /* Receive timeout. */
|
SO_RCVTIMEO = 0x1006, /* Receive timeout. */
|
||||||
|
#define SO_RCVTIMEO SO_RCVTIMEO
|
||||||
SO_ERROR = 0x1007, /* Get and clear error status. */
|
SO_ERROR = 0x1007, /* Get and clear error status. */
|
||||||
|
#define SO_ERROR SO_ERROR
|
||||||
SO_STYLE = 0x1008, /* Get socket connection style. */
|
SO_STYLE = 0x1008, /* Get socket connection style. */
|
||||||
|
#define SO_STYLE SO_STYLE
|
||||||
SO_TYPE = SO_STYLE, /* Compatible name for SO_STYLE. */
|
SO_TYPE = SO_STYLE, /* Compatible name for SO_STYLE. */
|
||||||
|
#define SO_TYPE SO_TYPE
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Structure used to manipulate the SO_LINGER option. */
|
/* Structure used to manipulate the SO_LINGER option. */
|
||||||
|
Loading…
Reference in New Issue
Block a user