Home
last modified time | relevance | path

Searched refs:FD_CLOEXEC (Results 1 – 25 of 113) sorted by relevance

12345

/external/bison/m4/
Ddup2.m426 #ifdef FD_CLOEXEC
27 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
32 #ifdef FD_CLOEXEC
33 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
56 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
/external/ltp/testcases/kernel/syscalls/socket/
Dsocket02.c154 if (coe & FD_CLOEXEC) { in main()
170 if ((coe & FD_CLOEXEC) == 0) { in main()
187 if (coe & FD_CLOEXEC) { in main()
207 if ((coe & FD_CLOEXEC) == 0) { in main()
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/
Dpipe_select_interrupter.ipp47 #if defined(FD_CLOEXEC)
48 ::fcntl(read_descriptor_, F_SETFD, FD_CLOEXEC);
49 ::fcntl(write_descriptor_, F_SETFD, FD_CLOEXEC);
50 #endif // defined(FD_CLOEXEC)
/external/strace/tests/
Dvfork-f.c61 if (fcntl(child_wait_fds[1], F_SETFD, FD_CLOEXEC)) in main()
67 if (fcntl(parent_wait_fds[0], F_SETFD, FD_CLOEXEC)) in main()
69 if (fcntl(parent_wait_fds[1], F_SETFD, FD_CLOEXEC)) in main()
/external/strace/tests-mx32/
Dvfork-f.c61 if (fcntl(child_wait_fds[1], F_SETFD, FD_CLOEXEC)) in main()
67 if (fcntl(parent_wait_fds[0], F_SETFD, FD_CLOEXEC)) in main()
69 if (fcntl(parent_wait_fds[1], F_SETFD, FD_CLOEXEC)) in main()
/external/strace/tests-m32/
Dvfork-f.c61 if (fcntl(child_wait_fds[1], F_SETFD, FD_CLOEXEC)) in main()
67 if (fcntl(parent_wait_fds[0], F_SETFD, FD_CLOEXEC)) in main()
69 if (fcntl(parent_wait_fds[1], F_SETFD, FD_CLOEXEC)) in main()
/external/strace/xlat/
Dfdflags.h11 #if defined(FD_CLOEXEC) || (defined(HAVE_DECL_FD_CLOEXEC) && HAVE_DECL_FD_CLOEXEC)
12 XLAT(FD_CLOEXEC),
Dfdflags.in1 FD_CLOEXEC
/external/bison/lib/
Dcloexec.c47 int newflags = (value ? flags | FD_CLOEXEC : flags & ~FD_CLOEXEC); in set_cloexec_flag()
Dpipe2.c132 || fcntl (fd[1], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1 in pipe2()
134 || fcntl (fd[0], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1) in pipe2()
Dfcntl.in.h164 #ifndef FD_CLOEXEC
165 # define FD_CLOEXEC 1
Dfcntl.c257 if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1) in rpl_fcntl()
279 result = (flags & HANDLE_FLAG_INHERIT) ? 0 : FD_CLOEXEC; in rpl_fcntl()
/external/ltp/testcases/kernel/syscalls/epoll_create1/
Depoll_create1_01.c46 if (coe & FD_CLOEXEC) in verify_epoll_create1()
56 if ((coe & FD_CLOEXEC) == 0) in verify_epoll_create1()
/external/ltp/testcases/kernel/syscalls/dup3/
Ddup3_01.c134 if (coe & FD_CLOEXEC) { in main()
147 if ((coe & FD_CLOEXEC) == 0) { in main()
/external/ltp/testcases/kernel/syscalls/eventfd2/
Deventfd2_01.c140 if (coe & FD_CLOEXEC) { in main()
153 if ((coe & FD_CLOEXEC) == 0) { in main()
/external/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd02.c151 if (coe & FD_CLOEXEC) { in main()
169 if ((coe & FD_CLOEXEC) == 0) { in main()
/external/ltp/testcases/kernel/syscalls/inotify_init/
Dinotify_init1_01.c149 if (coe & FD_CLOEXEC) { in main()
163 } else if ((coe & FD_CLOEXEC) == 0) { in main()
/external/ltp/testcases/kernel/syscalls/pipe2/
Dpipe2_01.c154 if (coe & FD_CLOEXEC) { in main()
173 if ((coe & FD_CLOEXEC) == 0) { in main()
/external/ltp/testcases/kernel/syscalls/signalfd4/
Dsignalfd4_01.c155 if (coe & FD_CLOEXEC) { in main()
173 if ((coe & FD_CLOEXEC) == 0) { in main()
/external/ltp/testcases/kernel/syscalls/accept4/
Daccept4_01.c141 fdf_pass = ((fdf & FD_CLOEXEC) != 0) == in do_test()
145 (fdf & FD_CLOEXEC) ? "" : "not ", fdf_pass ? "OK" : "failed"); in do_test()
150 fdf & FD_CLOEXEC, closeonexec_flag & SOCK_CLOEXEC); in do_test()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc94 if (fcntl(control_pipe[0], F_SETFD, FD_CLOEXEC)) in Start()
96 if (fcntl(control_pipe[1], F_SETFD, FD_CLOEXEC)) in Start()
145 if (fcntl(fds[1], F_SETFD, FD_CLOEXEC)) in CreateReportChannel()
/external/mtpd/
Dmtpd.c117 fcntl(control, F_SETFD, FD_CLOEXEC); in android_get_control_and_arguments()
173 fcntl(signals[0], F_SETFD, FD_CLOEXEC); in main()
174 fcntl(signals[1], F_SETFD, FD_CLOEXEC); in main()
303 fcntl(the_socket, F_SETFD, FD_CLOEXEC); in create_socket()
/external/libusb/libusb/os/
Dlinux_netlink.c58 #if defined(FD_CLOEXEC) in set_fd_cloexec_nb()
65 if (!(flags & FD_CLOEXEC)) { in set_fd_cloexec_nb()
66 if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == -1) { in set_fd_cloexec_nb()
/external/vboot_reference/cgpt/
Dcgpt_nor.c214 fcntl(1, F_SETFD, FD_CLOEXEC); in ReadNorFlash()
239 fcntl(1, F_SETFD, FD_CLOEXEC); in WriteNorFlash()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/
D11-1.c43 if (flags & FD_CLOEXEC) { in main()

12345