1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Define the Posix.1g names for the howto argument to shutdown(2).

This commit is contained in:
Garrett Wollman 1998-09-12 21:14:25 +00:00
parent f0cefaccae
commit 65d1dabbd1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39114

View File

@ -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>