| 224 | } |
| 225 | |
| 226 | int |
| 227 | sys_bindat(struct thread *td, struct bindat_args *uap) |
| 228 | { |
| 229 | struct sockaddr *sa; |
| 230 | int error; |
| 231 | |
| 232 | error = getsockaddr(&sa, uap->name, uap->namelen); |
| 233 | if (error == 0) { |
| 234 | error = kern_bindat(td, uap->fd, uap->s, sa); |
| 235 | free(sa, M_SONAME); |
| 236 | } |
| 237 | return (error); |
| 238 | } |
| 239 | |
| 240 | int |
| 241 | sys_listen(struct thread *td, struct listen_args *uap) |
nothing calls this directly
no test coverage detected