Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/socket.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | |||||
#define SOCK_SEQPACKET 5 /* sequenced packet stream */ | #define SOCK_SEQPACKET 5 /* sequenced packet stream */ | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
/* | /* | ||||
* Creation flags, OR'ed into socket() and socketpair() type argument. | * Creation flags, OR'ed into socket() and socketpair() type argument. | ||||
*/ | */ | ||||
#define SOCK_CLOEXEC 0x10000000 | #define SOCK_CLOEXEC 0x10000000 | ||||
#define SOCK_NONBLOCK 0x20000000 | #define SOCK_NONBLOCK 0x20000000 | ||||
#endif | #ifdef _KERNEL | ||||
/* | |||||
* Flags for accept1(), kern_accept4() and solisten_dequeue, in addition | |||||
* to SOCK_CLOEXEC and SOCK_NONBLOCK. | |||||
*/ | |||||
#define ACCEPT4_INHERIT 0x1 | |||||
#define ACCEPT4_COMPAT 0x2 | |||||
#endif /* _KERNEL */ | |||||
#endif /* __BSD_VISIBLE */ | |||||
/* | /* | ||||
* Option flags per-socket. | * Option flags per-socket. | ||||
*/ | */ | ||||
#define SO_DEBUG 0x0001 /* turn on debugging info recording */ | #define SO_DEBUG 0x0001 /* turn on debugging info recording */ | ||||
#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ | #define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ | ||||
#define SO_REUSEADDR 0x0004 /* allow local address reuse */ | #define SO_REUSEADDR 0x0004 /* allow local address reuse */ | ||||
#define SO_KEEPALIVE 0x0008 /* keep connections alive */ | #define SO_KEEPALIVE 0x0008 /* keep connections alive */ | ||||
▲ Show 20 Lines • Show All 576 Lines • ▼ Show 20 Lines | |||||
void so_sowwakeup_locked(struct socket *so); | void so_sowwakeup_locked(struct socket *so); | ||||
void so_sorwakeup(struct socket *so); | void so_sorwakeup(struct socket *so); | ||||
void so_sowwakeup(struct socket *so); | void so_sowwakeup(struct socket *so); | ||||
void so_lock(struct socket *so); | void so_lock(struct socket *so); | ||||
void so_unlock(struct socket *so); | void so_unlock(struct socket *so); | ||||
void so_listeners_apply_all(struct socket *so, void (*func)(struct socket *, void *), void *arg); | #endif /* _KERNEL */ | ||||
#endif | |||||
#endif /* !_SYS_SOCKET_H_ */ | #endif /* !_SYS_SOCKET_H_ */ |