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

Function sys_connectat

freebsd/kern/uipc_syscalls.c:552–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552int
553sys_connectat(struct thread *td, struct connectat_args *uap)
554{
555 struct sockaddr *sa;
556 int error;
557
558 error = getsockaddr(&sa, uap->name, uap->namelen);
559 if (error == 0) {
560 error = kern_connectat(td, uap->fd, uap->s, sa);
561 free(sa, M_SONAME);
562 }
563 return (error);
564}
565
566int
567kern_socketpair(struct thread *td, int domain, int type, int protocol,

Callers

nothing calls this directly

Calls 3

getsockaddrFunction · 0.85
kern_connectatFunction · 0.85
freeFunction · 0.70

Tested by

no test coverage detected