MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sys_bindat

Function sys_bindat

freebsd/kern/uipc_syscalls.c:226–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226int
227sys_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
240int
241sys_listen(struct thread *td, struct listen_args *uap)

Callers

nothing calls this directly

Calls 2

getsockaddrFunction · 0.85
freeFunction · 0.70

Tested by

no test coverage detected