Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/un.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
struct sockaddr_un { | struct sockaddr_un { | ||||
unsigned char sun_len; /* sockaddr len including null */ | unsigned char sun_len; /* sockaddr len including null */ | ||||
sa_family_t sun_family; /* AF_UNIX */ | sa_family_t sun_family; /* AF_UNIX */ | ||||
char sun_path[SUNPATHLEN]; /* path name (gag) */ | char sun_path[SUNPATHLEN]; /* path name (gag) */ | ||||
}; | }; | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
#define SOL_LOCAL 0 /* Options for local socket */ | |||||
/* Socket options. */ | /* Socket options. */ | ||||
#define LOCAL_PEERCRED 1 /* retrieve peer credentials */ | #define LOCAL_PEERCRED 1 /* retrieve peer credentials */ | ||||
#define LOCAL_CREDS 2 /* pass credentials to receiver */ | #define LOCAL_CREDS 2 /* pass credentials to receiver */ | ||||
#define LOCAL_CONNWAIT 4 /* connects block until accepted */ | #define LOCAL_CONNWAIT 4 /* connects block until accepted */ | ||||
/* Start of reserved space for third-party socket options. */ | /* Start of reserved space for third-party socket options. */ | ||||
#define LOCAL_VENDOR SO_VENDOR | #define LOCAL_VENDOR SO_VENDOR | ||||
Show All 11 Lines |