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

Function procdesc_falloc

freebsd/kern/sys_procdesc.c:236–247  ·  view source on GitHub ↗

* Create a new process decriptor for the process that refers to it. */

Source from the content-addressed store, hash-verified

234 * Create a new process decriptor for the process that refers to it.
235 */
236int
237procdesc_falloc(struct thread *td, struct file **resultfp, int *resultfd,
238 int flags, struct filecaps *fcaps)
239{
240 int fflags;
241
242 fflags = 0;
243 if (flags & PD_CLOEXEC)
244 fflags = O_CLOEXEC;
245
246 return (falloc_caps(td, resultfp, resultfd, fflags, fcaps));
247}
248
249/*
250 * Initialize a file with a process descriptor.

Callers 1

fork1Function · 0.85

Calls 1

falloc_capsFunction · 0.85

Tested by

no test coverage detected