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

Function sys_vfork

freebsd/kern/kern_fork.c:147–162  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

145
146/* ARGSUSED */
147int
148sys_vfork(struct thread *td, struct vfork_args *uap)
149{
150 struct fork_req fr;
151 int error, pid;
152
153 bzero(&fr, sizeof(fr));
154 fr.fr_flags = RFFDG | RFPROC | RFPPWAIT | RFMEM;
155 fr.fr_pidp = &pid;
156 error = fork1(td, &fr);
157 if (error == 0) {
158 td->td_retval[0] = pid;
159 td->td_retval[1] = 0;
160 }
161 return (error);
162}
163
164int
165sys_rfork(struct thread *td, struct rfork_args *uap)

Callers

nothing calls this directly

Calls 2

bzeroFunction · 0.85
fork1Function · 0.85

Tested by

no test coverage detected