Home
last modified time | relevance | path

Searched refs:O_CLOEXEC (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/third_party/musl/libc-test/src/functionalext/trace/
Dtrace_marker.c58 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0010()
60 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0010()
108 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0020()
110 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0020()
158 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0030()
160 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY); in trace_marker_0030()
215 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040()
217 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040()
253 int trace_fd = open("/sys/kernel/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040()
255 trace_fd = open("/sys/kernel/debug/tracing/trace", O_CLOEXEC | O_RDONLY | O_APPEND); in trace_marker_0040()
[all …]
/third_party/ltp/testcases/kernel/syscalls/finit_module/
Dfinit_module02.c62 {"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, 0, 0, 0, 0, dir_setup},
/third_party/musl/libc-test/src/functionalext/relro/
Ddlopen_ext_relro_test.c161 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/glib/gio/
Dgtrashportal.c34 #ifndef O_CLOEXEC
35 #define O_CLOEXEC 0 macro
90 fd = g_open (path, O_RDWR | O_CLOEXEC | O_NOFOLLOW); in g_trash_portal_trash_file()
93 fd = g_open (path, O_PATH | O_CLOEXEC | O_RDONLY | O_NOFOLLOW); in g_trash_portal_trash_file()
Dgdocumentportal.c34 #ifndef O_CLOEXEC
35 #define O_CLOEXEC 0 macro
131 fd = g_open (path, O_CLOEXEC | O_RDWR); in g_document_portal_add_documents()
136 fd = g_open (path, O_CLOEXEC | O_RDONLY); in g_document_portal_add_documents()
Dgopenuriportal.c34 #ifndef O_CLOEXEC
35 #define O_CLOEXEC 0 macro
107 fd = g_open (path, O_RDONLY | O_CLOEXEC); in g_openuri_portal_open_uri()
318 fd = g_open (path, O_RDONLY | O_CLOEXEC); in g_openuri_portal_open_uri_async()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Ddup3.c30 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/ltp/include/lapi/
Dfcntl.h17 #ifndef O_CLOEXEC
18 # define O_CLOEXEC 02000000 macro
22 # define SOCK_CLOEXEC O_CLOEXEC
/third_party/musl/src/stdio/
Dfreopen.c23 if (fl&O_CLOEXEC) in freopen()
25 fl &= ~(O_CREAT|O_EXCL|O_CLOEXEC); in freopen()
32 else if (__dup3(f2->fd, f->fd, fl&O_CLOEXEC)<0) goto fail2; in freopen()
/third_party/boost/libs/filesystem/src/
Dunique_path.cpp81 #ifndef O_CLOEXEC
82 #define O_CLOEXEC 0 macro
144 int file = open("/dev/urandom", O_RDONLY | O_CLOEXEC); in system_crypt_random()
147 file = open("/dev/random", O_RDONLY | O_CLOEXEC); in system_crypt_random()
/third_party/musl/src/unistd/
Ddup3.c12 if (flags & O_CLOEXEC) { in __dup3()
17 if (flags & O_CLOEXEC) __syscall(SYS_fcntl, new, F_SETFD, FD_CLOEXEC); in __dup3()
/third_party/selinux/libselinux/src/
Dprocattr.c95 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()
Dbooleans.c216 fd = bool_open(name, O_RDONLY | O_CLOEXEC); in get_bool_value()
280 fd = bool_open(name, O_WRONLY | O_CLOEXEC); in security_set_boolean()
311 fd = open(path, O_WRONLY | O_CLOEXEC); in security_commit_booleans()
Dload_policy.c37 fd = open(path, O_RDWR | O_CLOEXEC); in security_load_policy()
130 fd = open(path, O_RDONLY | O_CLOEXEC); in selinux_mkload_policy()
136 fd = open(path, O_RDONLY | O_CLOEXEC); in selinux_mkload_policy()
/third_party/nghttp2/src/
Dshrpx_exec.cc44 #ifdef O_CLOEXEC in exec_read_command()
45 if (pipe2(pfd, O_CLOEXEC) == -1) { in exec_read_command()
/third_party/mesa3d/src/util/
Danon_file.c78 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/ltp/testcases/kernel/syscalls/pidfd_send_signal/
Dpidfd_send_signal02.c73 pidfd = SAFE_OPEN("/proc/self", O_DIRECTORY | O_CLOEXEC); in setup()
74 init_pidfd = SAFE_OPEN("/proc/1", O_DIRECTORY | O_CLOEXEC); in setup()
Dpidfd_send_signal03.c55 pidfd = SAFE_OPEN(pid_filename, O_DIRECTORY | O_CLOEXEC); in verify_pidfd_send_signal()
73 O_DIRECTORY | O_CLOEXEC); in verify_pidfd_send_signal()
/third_party/musl/libc-test/src/functionalext/supplement/temp/
Dmkostemp.c52 int fd = mkostemp(tmpfile, O_CLOEXEC); in mkostemp_0200()
121 int fd = mkostemp(tmpfile, O_CLOEXEC); in mkostemp_0500()
/third_party/weston/shared/
Dconfig-parser.c74 return open(name, O_RDONLY | O_CLOEXEC); in open_config_file()
83 fd = open(c->path, O_RDONLY | O_CLOEXEC); in open_config_file()
92 fd = open(c->path, O_RDONLY | O_CLOEXEC); in open_config_file()
105 fd = open(c->path, O_RDONLY | O_CLOEXEC); in open_config_file()
/third_party/NuttX/fs/vfs/
Dfs_fcntl.c108 ret = (filep->f_oflags & O_CLOEXEC) ? FD_CLOEXEC : 0; in file_vfcntl()
125 filep->f_oflags |= O_CLOEXEC; in file_vfcntl()
/third_party/musl/porting/linux/user/src/trace/
Dtrace_marker.c48 …r_fd = MUSL_TEMP_FAILURE_RETRY(open("/sys/kernel/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_A… in get_trace_marker_fd()
50 … MUSL_TEMP_FAILURE_RETRY(open("/sys/kernel/debug/tracing/trace_marker", O_CLOEXEC | O_WRONLY | O_A… in get_trace_marker_fd()
/third_party/ffmpeg/libavutil/
Dfile_open.c77 #ifdef O_CLOEXEC in avpriv_open()
78 flags |= O_CLOEXEC; in avpriv_open()
/third_party/alsa-lib/include/
Dlocal.h312 #ifdef O_CLOEXEC in snd_open_device()
313 fmode |= O_CLOEXEC; in snd_open_device()
326 #ifndef O_CLOEXEC in snd_open_device()
/third_party/boost/boost/uuid/detail/
Drandom_provider_posix.ipp52 #if defined(O_CLOEXEC)
53 flags |= O_CLOEXEC;

12345678910>>...13