/third_party/musl/libc-test/src/functionalext/trace/ |
H A D | trace_marker.c | 110 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0010() 112 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0010() 161 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0020() 163 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0020() 212 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0030() 214 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0030() 270 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 272 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 308 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040() 310 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONL in trace_marker_0040() [all...] |
/third_party/ltp/testcases/kernel/syscalls/finit_module/ |
H A D | finit_module02.c | 62 {"invalid-fd", &fd_invalid, "", O_RDONLY | O_CLOEXEC, 0, 0, 0, 0, 64 {"zero-fd", &fd_zero, "", O_RDONLY | O_CLOEXEC, 0, 0, EINVAL, 0, NULL}, 65 {"null-param", &fd, NULL, O_RDONLY | O_CLOEXEC, 0, 0, EFAULT, 1, NULL}, 66 {"invalid-param", &fd, "status=invalid", O_RDONLY | O_CLOEXEC, 0, 0, 68 {"invalid-flags", &fd, "", O_RDONLY | O_CLOEXEC, -1, 0, EINVAL, 0, 70 {"no-perm", &fd, "", O_RDONLY | O_CLOEXEC, 0, 1, EPERM, 0, NULL}, 71 {"module-exists", &fd, "", O_RDONLY | O_CLOEXEC, 0, 0, EEXIST, 1, 73 {"file-not-readable", &fd, "", O_WRONLY | O_CLOEXEC, 0, 0, EBADF, 0, 75 {"file-readwrite", &fd, "", O_RDWR | O_CLOEXEC, 0, 0, ETXTBSY, 0, 77 {"directory", &fd_dir, "", O_RDONLY | O_CLOEXEC, [all...] |
/third_party/musl/libc-test/src/functionalext/relro/ |
H A D | dlopen_ext_relro_test.c | 161 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_0400() 203 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_0600() 230 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_0700() 258 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_0800() 301 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_1000() 329 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_1100() 357 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_1200() 384 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_1500() 412 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_1600() 449 int relro_fd = open(relro_file, O_RDWR | O_TRUNC | O_CLOEXEC); in dlopen_ext_relro_1700() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | dup3.c | 23 * @tc.desc : The parameter flags is O_CLOEXEC, which can assign the old file descriptor to the new file descriptor 30 int ret = dup3(fd, fileno(stderr), O_CLOEXEC); in dup3_0100() 44 int ret = dup3(fd, fileno(stderr), O_CLOEXEC); in dup3_0200() 58 int ret = dup3(fd, newfd, O_CLOEXEC); in dup3_0300()
|
/third_party/node/deps/cares/src/lib/ |
H A D | ares_event_wake_pipe.c | 70 if (pipe2(p->filedes, O_NONBLOCK | O_CLOEXEC) != 0) { in ares_pipeevent_init() 97 # ifdef O_CLOEXEC in ares_pipeevent_init() 98 fcntl(p->filedes[0], F_SETFD, O_CLOEXEC); in ares_pipeevent_init() 99 fcntl(p->filedes[1], F_SETFD, O_CLOEXEC); in ares_pipeevent_init()
|
/third_party/ltp/include/lapi/ |
H A D | fcntl.h | 16 #ifndef O_CLOEXEC 17 # define O_CLOEXEC 02000000 macro 21 # define SOCK_CLOEXEC O_CLOEXEC
|
/third_party/musl/porting/linux/user/src/stdio/ |
H A D | freopen.c | 24 if (fl&O_CLOEXEC) in freopen() 26 fl &= ~(O_CREAT|O_EXCL|O_CLOEXEC); in freopen() 36 else if (__dup3(f2->fd, f->fd, fl&O_CLOEXEC)<0) { in freopen()
|
/third_party/musl/src/stdio/ |
H A D | freopen.c | 24 if (fl&O_CLOEXEC) in freopen() 26 fl &= ~(O_CREAT|O_EXCL|O_CLOEXEC); in freopen() 33 else if (__dup3(f2->fd, f->fd, fl&O_CLOEXEC)<0) goto fail2; in freopen()
|
/third_party/musl/src/unistd/ |
H A D | dup3.c | 15 if (flags & ~O_CLOEXEC) return __syscall_ret(-EINVAL); in __dup3() 18 if (r >= 0 && (flags & O_CLOEXEC)) in __dup3()
|
/third_party/selinux/libselinux/src/ |
H A D | procattr.c | 95 fd = open(path, flags | O_CLOEXEC); in openattr() 108 fd = open(path, flags | O_CLOEXEC); in openattr() 159 fd = openattr(pid, attr, O_RDONLY | O_CLOEXEC); in getprocattrcon_raw() 251 fd = openattr(pid, attr, O_RDWR | O_CLOEXEC); in setprocattrcon_raw()
|
H A D | booleans.c | 214 fd = bool_open(name, O_RDONLY | O_CLOEXEC); in get_bool_value() 278 fd = bool_open(name, O_WRONLY | O_CLOEXEC); in security_set_boolean() 309 fd = open(path, O_WRONLY | O_CLOEXEC); in security_commit_booleans()
|
/third_party/nghttp2/src/ |
H A D | shrpx_exec.cc | 44 #ifdef O_CLOEXEC in exec_read_command() 45 if (pipe2(pfd, O_CLOEXEC) == -1) { in exec_read_command() 48 #else // !O_CLOEXEC in exec_read_command() 54 #endif // !O_CLOEXEC in exec_read_command()
|
/third_party/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/ |
H A D | ldso_dlopen_ext_test.cpp | 301 int fd = open(relroFile, O_RDWR | O_TRUNC | O_CLOEXEC); in HWTEST_F() 306 fd = open(relroFile, O_RDONLY | O_CLOEXEC); in HWTEST_F() 337 int fd = open(relroFile, O_RDWR | O_TRUNC | O_CLOEXEC); in HWTEST_F() 342 fd = open(relroFile, O_RDONLY | O_CLOEXEC); in HWTEST_F() 372 int fd = open(relroFile, O_RDWR | O_TRUNC | O_CLOEXEC); in HWTEST_F() 377 fd = open(relroFile, O_RDONLY | O_CLOEXEC); in HWTEST_F()
|
/third_party/musl/src/time/ |
H A D | __map_file.c | 16 int fd = sys_open(pathname, O_RDONLY|O_CLOEXEC|O_NONBLOCK); in __map_file() 44 int fd = sys_open(tzdata_path, O_RDONLY|O_CLOEXEC|O_NONBLOCK); in __map_tzdata_file()
|
/third_party/ltp/testcases/kernel/syscalls/pidfd_send_signal/ |
H A D | pidfd_send_signal03.c | 61 pidfd = SAFE_OPEN(pid_filename, O_DIRECTORY | O_CLOEXEC); in verify_pidfd_send_signal() 79 O_DIRECTORY | O_CLOEXEC); in verify_pidfd_send_signal()
|
H A D | pidfd_send_signal02.c | 73 pidfd = SAFE_OPEN("/proc/self", O_DIRECTORY | O_CLOEXEC); in setup() 74 init_pidfd = SAFE_OPEN("/proc/1", O_DIRECTORY | O_CLOEXEC); in setup()
|
/third_party/mesa3d/src/util/ |
H A D | anon_file.c | 78 fd = mkostemp(tmpname, O_CLOEXEC); in create_tmpfile_cloexec() 127 fd = shm_open(SHM_ANON, O_CREAT | O_RDWR | O_CLOEXEC, 0600); in os_create_anonymous_file()
|
/third_party/rust/crates/io-lifetimes/tests/ |
H A D | ffi.rs | 21 O_RDONLY | O_CLOEXEC, in test_file_not_found() 56 assert!(unsafe { open("Cargo.toml\0".as_ptr() as *const _, O_RDONLY | O_CLOEXEC) }.is_some()); in test_file_found()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
H A D | types.rs | 55 /// `O_CLOEXEC` 56 const CLOEXEC = linux_raw_sys::general::O_CLOEXEC; 65 /// `O_CLOEXEC` 66 const CLOEXEC = linux_raw_sys::general::O_CLOEXEC;
|
/third_party/rust/crates/linux-raw-sys/gen/modules/ |
H A D | general.h | 239 #define EFD_CLOEXEC O_CLOEXEC 243 #define EPOLL_CLOEXEC O_CLOEXEC 270 #define TFD_CLOEXEC O_CLOEXEC
|
/third_party/NuttX/fs/vfs/ |
H A D | fs_fcntl.c | 108 ret = (filep->f_oflags & O_CLOEXEC) ? FD_CLOEXEC : 0; in file_vfcntl() 125 filep->f_oflags |= O_CLOEXEC; in file_vfcntl()
|
/third_party/musl/libc-test/src/functionalext/supplement/temp/ |
H A D | mkostemp.c | 46 * specified in flags: O_CLOEXEC, create a temporary file. 52 int fd = mkostemp(tmpfile, O_CLOEXEC); in mkostemp_0200() 69 * specified in flags: O_CLOEXEC, create a temporary file. 114 * @tc.desc : Verify mkostemp process fail. Provide error template, specified in flags: O_CLOEXEC, 121 int fd = mkostemp(tmpfile, O_CLOEXEC); in mkostemp_0500()
|
/third_party/rust/crates/rustix/src/backend/libc/io/ |
H A D | types.rs | 58 /// `O_CLOEXEC` 65 const CLOEXEC = c::O_CLOEXEC; 75 /// `O_CLOEXEC` 76 const CLOEXEC = c::O_CLOEXEC;
|
/third_party/rust/crates/nix/test/ |
H A D | test_dir.rs | 10 let f = OFlag::O_RDONLY | OFlag::O_CLOEXEC; in flags() 13 let f = OFlag::O_RDONLY | OFlag::O_CLOEXEC | OFlag::O_DIRECTORY; in flags()
|
/third_party/alsa-lib/include/ |
H A D | local.h | 334 #ifdef O_CLOEXEC in snd_open_device() 335 fmode |= O_CLOEXEC; in snd_open_device() 348 #ifndef O_CLOEXEC in snd_open_device()
|