Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/un.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
#define SOL_LOCAL 0 /* Options for local socket */ | #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_CREDS_PERSISTENT 3 /* 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 | ||||
#ifndef _KERNEL | #ifndef _KERNEL | ||||
/* actual length of an initialized sockaddr_un */ | /* actual length of an initialized sockaddr_un */ | ||||
#define SUN_LEN(su) \ | #define SUN_LEN(su) \ | ||||
(sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) | (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) | ||||
#endif /* !_KERNEL */ | #endif /* !_KERNEL */ | ||||
#endif /* __BSD_VISIBLE */ | #endif /* __BSD_VISIBLE */ | ||||
#endif /* !_SYS_UN_H_ */ | #endif /* !_SYS_UN_H_ */ |