/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | android-cloexec-memfd-create.cpp | 5 #define MFD_CLOEXEC __O_CLOEXEC macro 50 memfd_create(NULL, MFD_CLOEXEC); in e() 51 TEMP_FAILURE_RETRY(memfd_create(NULL, MFD_CLOEXEC)); in e() 52 memfd_create(NULL, MFD_ALLOW_SEALING | MFD_CLOEXEC); in e() 53 TEMP_FAILURE_RETRY(memfd_create(NULL, MFD_ALLOW_SEALING | MFD_CLOEXEC)); in e()
|
/external/strace/xlat/ |
D | memfd_create_flags.h | 6 #if defined(MFD_CLOEXEC) || (defined(HAVE_DECL_MFD_CLOEXEC) && HAVE_DECL_MFD_CLOEXEC) 8 static_assert((MFD_CLOEXEC) == (1), "MFD_CLOEXEC != 1"); 11 # define MFD_CLOEXEC 1 38 XLAT(MFD_CLOEXEC),
|
D | memfd_create_flags.in | 1 MFD_CLOEXEC 1
|
/external/linux-kselftest/tools/testing/selftests/memfd/ |
D | memfd_test.c | 668 mfd_fail_new("", ~MFD_CLOEXEC); in test_create() 674 fd = mfd_assert_new("", 0, MFD_CLOEXEC); in test_create() 682 fd = mfd_assert_new("", 0, MFD_ALLOW_SEALING | MFD_CLOEXEC); in test_create() 698 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_basic() 729 MFD_CLOEXEC); in test_basic() 750 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_seal_write() 777 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_seal_future_write() 816 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_seal_shrink() 842 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_seal_grow() 868 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_seal_resize() [all …]
|
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create02.c | 43 {"invalid flags fail 3", "test", ~MFD_CLOEXEC, EINVAL }, 48 {"valid flags 1 pass", "test", MFD_CLOEXEC, 0 }, 50 {"valid flags 3 pass", "test", MFD_CLOEXEC | MFD_ALLOW_SEALING, 0 },
|
D | memfd_create_common.h | 24 #define FLAGS_ALL_ARRAY_INITIALIZER {MFD_CLOEXEC, MFD_ALLOW_SEALING} 25 #define FLAGS_ALL_MASK (MFD_CLOEXEC | MFD_ALLOW_SEALING)
|
/external/swiftshader/src/System/Linux/ |
D | MemFd.cpp | 24 #ifndef MFD_CLOEXEC 25 # define MFD_CLOEXEC 0x0001U macro 72 fd_ = syscall(__NR_memfd_create, name, MFD_CLOEXEC); in allocate()
|
/external/perfetto/src/tracing/ipc/ |
D | memfd.h | 28 #ifndef MFD_CLOEXEC 29 #define MFD_CLOEXEC 0x0001U macro
|
D | memfd.cc | 67 MFD_CLOEXEC | MFD_ALLOW_SEALING))); in HasMemfdSupport()
|
D | posix_shared_memory.cc | 48 CreateMemfd("perfetto_shmem", MFD_CLOEXEC | MFD_ALLOW_SEALING); in Create()
|
/external/ltp/include/lapi/ |
D | memfd.h | 20 #ifndef MFD_CLOEXEC 21 # define MFD_CLOEXEC 0x0001U macro
|
/external/virglrenderer/vtest/ |
D | vtest_shm.h | 18 #ifndef MFD_CLOEXEC 19 #define MFD_CLOEXEC 0x0001U macro
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | android-cloexec-memfd-create.rst | 6 ``memfd_create()`` should include ``MFD_CLOEXEC`` in its type argument to avoid 18 memfd_create(name, MFD_ALLOW_SEALING | MFD_CLOEXEC);
|
/external/crosvm/seccomp/x86_64/ |
D | gpu_device.policy | 66 # arg1 == MFD_CLOEXEC|MFD_ALLOW_SEALING or simply MFD_CLOEXEC.
|
D | wl_device.policy | 12 # Used for sharing memory with wayland. arg1 == MFD_CLOEXEC|MFD_ALLOW_SEALING
|
/external/kernel-headers/original/uapi/linux/ |
D | memfd.h | 8 #define MFD_CLOEXEC 0x0001U macro
|
/external/rust/crates/nix/src/sys/ |
D | memfd.rs | 9 MFD_CLOEXEC;
|
/external/crosvm/seccomp/aarch64/ |
D | wl_device.policy | 13 # Used for sharing memory with wayland. arg1 == MFD_CLOEXEC|MFD_ALLOW_SEALING
|
/external/crosvm/seccomp/arm/ |
D | wl_device.policy | 14 # Used for sharing memory with wayland. arg1 == MFD_CLOEXEC|MFD_ALLOW_SEALING
|
D | gpu_device.policy | 71 # Used for sharing memory with wayland. arg1 == MFD_CLOEXEC|MFD_ALLOW_SEALING
|
/external/wayland/cursor/ |
D | os-compatibility.c | 124 fd = memfd_create("wayland-cursor", MFD_CLOEXEC | MFD_ALLOW_SEALING); in os_create_anonymous_file()
|
/external/mesa3d/src/util/ |
D | anon_file.c | 129 fd = syscall(SYS_memfd_create, debug_name, MFD_CLOEXEC); in os_create_anonymous_file()
|
/external/crosvm/sys_util/src/ |
D | shm.rs | 28 const MFD_CLOEXEC: c_uint = 0x0001; constant 131 let fd = unsafe { memfd_create(shm_name, MFD_CLOEXEC | MFD_ALLOW_SEALING) }; in new()
|
/external/crosvm/tests/ |
D | mini_plugin_template.c | 100 int mem_fd = syscall(SYS_memfd_create, "guest_mem", MFD_CLOEXEC | MFD_ALLOW_SEALING); in main()
|
D | plugin_dirty_log.c | 112 int mem_fd = syscall(SYS_memfd_create, "guest_mem", MFD_CLOEXEC | MFD_ALLOW_SEALING); in main()
|