(td, uap)
| 447 | } |
| 448 | |
| 449 | int |
| 450 | sys_accept4(td, uap) |
| 451 | struct thread *td; |
| 452 | struct accept4_args *uap; |
| 453 | { |
| 454 | |
| 455 | if (uap->flags & ~(SOCK_CLOEXEC | SOCK_NONBLOCK)) |
| 456 | return (EINVAL); |
| 457 | |
| 458 | return (accept1(td, uap->s, uap->name, uap->anamelen, uap->flags)); |
| 459 | } |
| 460 | |
| 461 | #ifdef COMPAT_OLDSOCK |
| 462 | int |