diff options
author | wollman <wollman@FreeBSD.org> | 1998-09-12 21:14:25 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1998-09-12 21:14:25 +0000 |
commit | f91828ff268ccdd9f1d9d725b84774b1a384c553 (patch) | |
tree | ba52d813e9ca6d0fa13c086bf88d73601c766e32 | |
parent | 4933b6a9305afec5bb7d90746ae2dd6bef4932bd (diff) | |
download | FreeBSD-src-f91828ff268ccdd9f1d9d725b84774b1a384c553.zip FreeBSD-src-f91828ff268ccdd9f1d9d725b84774b1a384c553.tar.gz |
Define the Posix.1g names for the howto argument to shutdown(2).
-rw-r--r-- | sys/sys/socket.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h index 6df1440..980cb32 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)socket.h 8.4 (Berkeley) 2/21/94 - * $Id: socket.h,v 1.23 1997/12/21 16:35:11 bde Exp $ + * $Id: socket.h,v 1.24 1998/02/01 22:44:16 alex Exp $ */ #ifndef _SYS_SOCKET_H_ @@ -354,6 +354,13 @@ struct omsghdr { int msg_accrightslen; }; +/* + * howto arguments for shutdown(2), specified by Posix.1g. + */ +#define SHUT_RD 0 /* shut down the reading side */ +#define SHUT_WR 1 /* shut down the writing side */ +#define SHUT_RDWR 2 /* shut down both sides */ + #ifndef KERNEL #include <sys/cdefs.h> |