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

Function sys_shm_open2

freebsd/kern/uipc_shm.c:1973–1979  ·  view source on GitHub ↗

* This version of the shm_open() interface leaves CLOEXEC behavior up to the * caller, and libc will enforce it for the traditional shm_open() call. This * allows other consumers, like memfd_create(), to opt-in for CLOEXEC. This * interface also includes a 'name' argument that is currently unused, but could * potentially be exported later via some interface for debugging purposes. * From th

Source from the content-addressed store, hash-verified

1971 * implementing the same function.
1972 */
1973int
1974sys_shm_open2(struct thread *td, struct shm_open2_args *uap)
1975{
1976
1977 return (kern_shm_open2(td, uap->path, uap->flags, uap->mode,
1978 uap->shmflags, NULL, uap->name));
1979}

Callers

nothing calls this directly

Calls 1

kern_shm_open2Function · 0.85

Tested by

no test coverage detected