Home
last modified time | relevance | path

Searched refs:memfd_create (Results 1 - 25 of 30) sorted by relevance

12

/third_party/rust/crates/rustix/src/fs/
H A Dmemfd_create.rs6 /// `memfd_create(path, flags)`
11 /// [Linux]: https://man7.org/linux/man-pages/man2/memfd_create.2.html
13 pub fn memfd_create<P: path::Arg>(path: P, flags: MemfdFlags) -> io::Result<OwnedFd> { in memfd_create() functions
14 path.into_with_c_str(|path| backend::fs::syscalls::memfd_create(path, flags)) in memfd_create()
H A Dmod.rs49 mod memfd_create; modules
203 pub use memfd_create::{memfd_create, MemfdFlags};
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dmemfd_create.c22 * @tc.desc : Process memfd_create success.
28 int fd = memfd_create(tmpfile, 0); in memfd_create_0100()
39 * @tc.desc: Process memfd_create fail. because param is error.
45 int fd = memfd_create(tmpfile, -1); in memfd_create_0200()
/third_party/rust/crates/nix/src/sys/
H A Dmemfd.rs11 /// Options that change the behavior of [`memfd_create`].
28 /// See also the file sealing notes given in [`memfd_create(2)`].
30 /// [`memfd_create(2)`]: https://man7.org/linux/man-pages/man2/memfd_create.2.html
40 /// For more information, see [`memfd_create(2)`].
42 /// [`memfd_create(2)`]: https://man7.org/linux/man-pages/man2/memfd_create.2.html
43 pub fn memfd_create(name: &CStr, flags: MemFdCreateFlag) -> Result<RawFd> { in memfd_create() functions
47 // Android does not have a memfd_create symbol in memfd_create()
51 // If the OS is Linux, gnu and musl expose a memfd_create symbo in memfd_create()
[all...]
/third_party/rust/crates/rustix/tests/io/
H A Dseals.rs5 fcntl_add_seals, fcntl_get_seals, ftruncate, memfd_create, MemfdFlags, SealFlags, in test_seals()
10 let fd = match memfd_create("test", MemfdFlags::CLOEXEC | MemfdFlags::ALLOW_SEALING) { in test_seals()
/third_party/musl/src/linux/
H A Dmemfd_create.c5 int memfd_create(const char *name, unsigned flags) in memfd_create() function
/third_party/pulseaudio/src/pulsecore/
H A Dmemfd-wrappers.h29 * Before glibc version 2.27 there was no wrapper for memfd_create(2),
37 static inline int memfd_create(const char *name, unsigned int flags) { in memfd_create() function
41 /* memfd_create(2) flags */
H A Dshm.c171 fd = memfd_create("pulseaudio", MFD_ALLOW_SEALING); in sharedmem_create()
/third_party/mesa3d/src/util/
H A Danon_file.c121 fd = memfd_create(debug_name, MFD_CLOEXEC | MFD_ALLOW_SEALING); in os_create_anonymous_file()
/third_party/mesa3d/src/drm-shim/
H A Ddevice.c51 memfd_create(const char *name, unsigned int flags) in memfd_create() function
89 shim_device.mem_fd = memfd_create("shim mem", MFD_CLOEXEC); in drm_shim_device_init()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
H A DExecutableMemory.cpp149 static int memfd_create(const char *name, unsigned int flags) in memfd_create() function
172 // memfd_create fails, -1 is returned. Note, the mappings should be
176 static int fd = memfd_create(MACRO_STRINGIFY(REACTOR_ANONYMOUS_MMAP_NAME), 0); in anonymousFd()
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
H A Dmman.h126 int memfd_create (const char *, unsigned);
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dmman.h130 int memfd_create (const char *, unsigned);
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dmman.h130 int memfd_create (const char *, unsigned);
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dmman.h135 int memfd_create (const char *, unsigned);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dmman.h130 int memfd_create (const char *, unsigned);
/third_party/musl/include/sys/
H A Dmman.h132 int memfd_create (const char *, unsigned);
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Dsyscalls.rs1243 pub(crate) fn memfd_create(path: &CStr, flags: MemfdFlags) -> io::Result<OwnedFd> {
1246 fn memfd_create( in memfd_create() functions
1254 fn memfd_create( in memfd_create() functions
1260 unsafe { ret_owned_fd(memfd_create(c_str(path), flags.bits())) }
/third_party/alsa-utils/axfer/test/
H A Dcontainer-test.c161 fd = memfd_create(name, 0); in callback()
H A Dmapper-test.c243 cntr_fds[i] = memfd_create(path, 0); in test_mapper()
/third_party/pcre2/pcre2/src/sljit/
H A DsljitProtExecAllocator.c118 fd = memfd_create("sljit", MFD_CLOEXEC); in create_tempfile()
/third_party/rust/crates/libc/src/unix/linux_like/linux/musl/
H A Dmod.rs765 pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int; in memfd_create() functions
/third_party/mesa3d/src/gallium/frontends/nine/
H A Dnine_memory_helper.c112 /* Use memfd only for 32 bits. Check for memfd_create support */
717 memfd_file->fd = memfd_create("gallium_nine_ram", 0); in nine_memfd_allocator()
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
H A Dsyscalls.rs1363 pub(crate) fn memfd_create(name: &CStr, flags: MemfdFlags) -> io::Result<OwnedFd> {
/third_party/rust/crates/libc/src/unix/linux_like/linux/gnu/
H A Dmod.rs1333 pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int; in memfd_create() functions

Completed in 18 milliseconds

12