diff options
Diffstat (limited to 'usr/src/uts/common/sys/socket.h')
-rw-r--r-- | usr/src/uts/common/sys/socket.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/socket.h b/usr/src/uts/common/sys/socket.h index 5d4648234c..0b91740d3a 100644 --- a/usr/src/uts/common/sys/socket.h +++ b/usr/src/uts/common/sys/socket.h @@ -35,6 +35,8 @@ * contributors. */ +/* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */ + #ifndef _SYS_SOCKET_H #define _SYS_SOCKET_H @@ -101,6 +103,12 @@ typedef void *_RESTRICT_KYWD Psocklen_t; #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */ #define SOCK_RDM 5 /* reliably-delivered message */ #define SOCK_SEQPACKET 6 /* sequenced packet stream */ +#define SOCK_TYPE_MASK 0xffff /* type reside in these bits only */ + +/* + * Flags for socket() + */ +#define SOCK_CLOEXEC 0x80000 /* like open(2) O_CLOEXEC for socket */ /* * Option flags per-socket. |