Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/uipc_domain.c
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
pr_control_notsupp(struct socket *so, u_long cmd, void *data, | pr_control_notsupp(struct socket *so, u_long cmd, void *data, | ||||
struct ifnet *ifp, struct thread *td) | struct ifnet *ifp, struct thread *td) | ||||
{ | { | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
} | } | ||||
static int | static int | ||||
pr_ctloutput_notsupp(struct socket *so, struct sockopt *sopt) | |||||
{ | |||||
return (ENOPROTOOPT); | |||||
} | |||||
static int | |||||
pr_disconnect_notsupp(struct socket *so) | pr_disconnect_notsupp(struct socket *so) | ||||
{ | { | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
} | } | ||||
int | int | ||||
pr_listen_notsupp(struct socket *so, int backlog, struct thread *td) | pr_listen_notsupp(struct socket *so, int backlog, struct thread *td) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
#define NOTSUPP(foo) if (pr->foo == NULL) pr->foo = foo ## _notsupp | #define NOTSUPP(foo) if (pr->foo == NULL) pr->foo = foo ## _notsupp | ||||
NOTSUPP(pr_accept); | NOTSUPP(pr_accept); | ||||
NOTSUPP(pr_bind); | NOTSUPP(pr_bind); | ||||
NOTSUPP(pr_bindat); | NOTSUPP(pr_bindat); | ||||
NOTSUPP(pr_connect); | NOTSUPP(pr_connect); | ||||
NOTSUPP(pr_connect2); | NOTSUPP(pr_connect2); | ||||
NOTSUPP(pr_connectat); | NOTSUPP(pr_connectat); | ||||
NOTSUPP(pr_control); | NOTSUPP(pr_control); | ||||
NOTSUPP(pr_ctloutput); | |||||
NOTSUPP(pr_disconnect); | NOTSUPP(pr_disconnect); | ||||
NOTSUPP(pr_listen); | NOTSUPP(pr_listen); | ||||
NOTSUPP(pr_peeraddr); | NOTSUPP(pr_peeraddr); | ||||
NOTSUPP(pr_rcvd); | NOTSUPP(pr_rcvd); | ||||
NOTSUPP(pr_rcvoob); | NOTSUPP(pr_rcvoob); | ||||
NOTSUPP(pr_send); | NOTSUPP(pr_send); | ||||
NOTSUPP(pr_shutdown); | NOTSUPP(pr_shutdown); | ||||
NOTSUPP(pr_sockaddr); | NOTSUPP(pr_sockaddr); | ||||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |