MCPcopy Index your code
hub / github.com/F-Stack/f-stack / sys_socketpair

Function sys_socketpair

freebsd/kern/uipc_syscalls.c:656–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656int
657sys_socketpair(struct thread *td, struct socketpair_args *uap)
658{
659 int error, sv[2];
660
661 error = kern_socketpair(td, uap->domain, uap->type,
662 uap->protocol, sv);
663 if (error != 0)
664 return (error);
665 error = copyout(sv, uap->rsv, 2 * sizeof(int));
666 if (error != 0) {
667 (void)kern_close(td, sv[0]);
668 (void)kern_close(td, sv[1]);
669 }
670 return (error);
671}
672
673#ifndef FSTACK
674static

Callers

nothing calls this directly

Calls 3

kern_socketpairFunction · 0.85
kern_closeFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected