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

Function sys_connect

freebsd/kern/uipc_syscalls.c:471–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469#endif /* COMPAT_OLDSOCK */
470
471int
472sys_connect(struct thread *td, struct connect_args *uap)
473{
474 struct sockaddr *sa;
475 int error;
476
477 error = getsockaddr(&sa, uap->name, uap->namelen);
478 if (error == 0) {
479 error = kern_connectat(td, AT_FDCWD, uap->s, sa);
480 free(sa, M_SONAME);
481 }
482 return (error);
483}
484
485int
486kern_connectat(struct thread *td, int dirfd, int fd, struct sockaddr *sa)

Callers 1

ngctl_connectFunction · 0.85

Calls 3

getsockaddrFunction · 0.85
kern_connectatFunction · 0.85
freeFunction · 0.70

Tested by

no test coverage detected