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

Function sys_fork

freebsd/kern/kern_fork.c:102–117  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

100
101/* ARGSUSED */
102int
103sys_fork(struct thread *td, struct fork_args *uap)
104{
105 struct fork_req fr;
106 int error, pid;
107
108 bzero(&fr, sizeof(fr));
109 fr.fr_flags = RFFDG | RFPROC;
110 fr.fr_pidp = &pid;
111 error = fork1(td, &fr);
112 if (error == 0) {
113 td->td_retval[0] = pid;
114 td->td_retval[1] = 0;
115 }
116 return (error);
117}
118
119/* ARGUSED */
120int

Callers

nothing calls this directly

Calls 2

bzeroFunction · 0.85
fork1Function · 0.85

Tested by

no test coverage detected