From 2af6faff8a5e0a9519a21e2dc600dc679b2031b6 Mon Sep 17 00:00:00 2001 From: kleink Date: Sat, 25 Apr 1998 10:41:12 +0000 Subject: [PATCH] Per X/Open CAE Spec, Issue 5, define 3 preprocessor symbols to be used to specify the type of socket shutdown(2). --- sys/sys/socket.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/sys/socket.h b/sys/sys/socket.h index 655349164807..961e32d6c667 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -1,4 +1,4 @@ -/* $NetBSD: socket.h,v 1.28 1998/03/01 02:24:14 fvdl Exp $ */ +/* $NetBSD: socket.h,v 1.29 1998/04/25 10:41:12 kleink Exp $ */ /* * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 @@ -328,6 +328,13 @@ struct cmsghdr { #define SCM_TIMESTAMP 0x02 /* timestamp (struct timeval) */ #define SCM_CREDS 0x04 /* credientials (struct sockcred) */ +/* + * Types of socket shutdown(2). + */ +#define SHUT_RD 0 /* Disallow further receives. */ +#define SHUT_WR 1 /* Disallow further sends. */ +#define SHUT_RDWR 2 /* Disallow further sends/receives. */ + /* * 4.3 compat sockaddr, move to compat file later */