Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/unpcb.h
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Flags in unp_flags. | * Flags in unp_flags. | ||||
* | * | ||||
* UNP_HAVEPC - indicates that the unp_peercred member is filled in | * UNP_HAVEPC - indicates that the unp_peercred member is filled in | ||||
* and is really the credentials of the connected peer. This is used | * and is really the credentials of the connected peer. This is used | ||||
* to determine whether the contents should be sent to the user or | * to determine whether the contents should be sent to the user or | ||||
* not. | * not. | ||||
*/ | */ | ||||
#define UNP_HAVEPC 0x001 | #define UNP_HAVEPC 0x001 | ||||
#define UNP_WANTCRED 0x004 /* credentials wanted */ | #define UNP_WANTCRED_ALWAYS 0x002 /* credentials wanted always */ | ||||
#define UNP_WANTCRED_ONESHOT 0x004 /* credentials wanted once */ | |||||
#define UNP_CONNWAIT 0x008 /* connect blocks until accepted */ | #define UNP_CONNWAIT 0x008 /* connect blocks until accepted */ | ||||
#define UNP_WANTCRED_MASK (UNP_WANTCRED_ONESHOT | UNP_WANTCRED_ALWAYS) | |||||
/* | /* | ||||
* These flags are used to handle non-atomicity in connect() and bind() | * These flags are used to handle non-atomicity in connect() and bind() | ||||
* operations on a socket: in particular, to avoid races between multiple | * operations on a socket: in particular, to avoid races between multiple | ||||
* threads or processes operating simultaneously on the same socket. | * threads or processes operating simultaneously on the same socket. | ||||
*/ | */ | ||||
#define UNP_CONNECTING 0x010 /* Currently connecting. */ | #define UNP_CONNECTING 0x010 /* Currently connecting. */ | ||||
#define UNP_BINDING 0x020 /* Currently binding. */ | #define UNP_BINDING 0x020 /* Currently binding. */ | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |