Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/uipc_syscalls.c
Show First 20 Lines • Show All 449 Lines • ▼ Show 20 Lines | sys_accept4(td, uap) | ||||
if (uap->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) | if (uap->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) | ||||
return (EINVAL); | return (EINVAL); | ||||
return (accept1(td, uap->s, uap->name, uap->anamelen, uap->flags)); | return (accept1(td, uap->s, uap->name, uap->anamelen, uap->flags)); | ||||
} | } | ||||
#ifdef COMPAT_OLDSOCK | #ifdef COMPAT_OLDSOCK | ||||
int | int | ||||
oaccept(td, uap) | oaccept(struct thread *td, struct oaccept_args *uap) | ||||
struct thread *td; | |||||
struct accept_args *uap; | |||||
{ | { | ||||
return (accept1(td, uap->s, uap->name, uap->anamelen, | return (accept1(td, uap->s, uap->name, uap->anamelen, | ||||
ACCEPT4_INHERIT | ACCEPT4_COMPAT)); | ACCEPT4_INHERIT | ACCEPT4_COMPAT)); | ||||
} | } | ||||
#endif /* COMPAT_OLDSOCK */ | #endif /* COMPAT_OLDSOCK */ | ||||
int | int | ||||
▲ Show 20 Lines • Show All 1,151 Lines • Show Last 20 Lines |