Home
last modified time | relevance | path

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

12345678910>>...12

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dandroid-cloexec-open.cpp6 #define O_CLOEXEC __O_CLOEXEC macro
122 open("filename", O_CLOEXEC); in e()
124 TEMP_FAILURE_RETRY(open("filename", O_CLOEXEC)); in e()
126 open("filename", O_RDWR | O_CLOEXEC); in e()
128 TEMP_FAILURE_RETRY(open("filename", O_RDWR | O_CLOEXEC)); in e()
130 open("filename", O_RDWR | O_CLOEXEC | O_EXCL); in e()
132 TEMP_FAILURE_RETRY(open("filename", O_RDWR | O_CLOEXEC | O_EXCL)); in e()
134 open64("filename", O_CLOEXEC); in e()
136 TEMP_FAILURE_RETRY(open64("filename", O_CLOEXEC)); in e()
138 open64("filename", O_RDWR | O_CLOEXEC); in e()
[all …]
Dandroid-cloexec-pipe2.cpp5 #define O_CLOEXEC __O_CLOEXEC macro
54 pipe2(pipefd, O_CLOEXEC); in noWarning()
55 TEMP_FAILURE_RETRY(pipe2(pipefd, O_CLOEXEC)); in noWarning()
56 pipe2(pipefd, O_NONBLOCK | O_CLOEXEC); in noWarning()
57 TEMP_FAILURE_RETRY(pipe2(pipefd, O_NONBLOCK | O_CLOEXEC)); in noWarning()
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dandroid-cloexec-open.rst7 ``O_CLOEXEC`` flag. Without that flag, an opened sensitive file would remain
10 ``open64()`` should include ``O_CLOEXEC`` in their flags argument.
22 open("filename", O_RDWR | O_CLOEXEC);
23 open64("filename", O_RDWR | O_CLOEXEC);
24 openat(0, "filename", O_RDWR | O_CLOEXEC);
Dandroid-cloexec-pipe2.rst6 This checks ensures that pipe2() is called with the O_CLOEXEC flag. The check also
7 adds the O_CLOEXEC flag that marks the file descriptor to be closed in child processes.
21 pipe2(pipefd, O_NONBLOCK | O_CLOEXEC);
/external/strace/xlat/
Depollflags.h6 #if defined EPOLL_CLOEXEC || defined O_CLOEXEC
9 static_assert((EPOLL_CLOEXEC) == (O_CLOEXEC), "EPOLL_CLOEXEC != O_CLOEXEC");
12 # define EPOLL_CLOEXEC O_CLOEXEC
26 #if defined EPOLL_CLOEXEC || defined O_CLOEXEC
Dinotify_init_flags.h13 #if defined IN_CLOEXEC || defined O_CLOEXEC
16 static_assert((IN_CLOEXEC) == (O_CLOEXEC), "IN_CLOEXEC != O_CLOEXEC");
19 # define IN_CLOEXEC O_CLOEXEC
34 #if defined IN_CLOEXEC || defined O_CLOEXEC
Dsfd_flags.h6 #if defined SFD_CLOEXEC || defined O_CLOEXEC
9 static_assert((SFD_CLOEXEC) == (O_CLOEXEC), "SFD_CLOEXEC != O_CLOEXEC");
12 # define SFD_CLOEXEC O_CLOEXEC
33 #if defined SFD_CLOEXEC || defined O_CLOEXEC
Defd_flags.h13 #if defined EFD_CLOEXEC || defined O_CLOEXEC
16 static_assert((EFD_CLOEXEC) == (O_CLOEXEC), "EFD_CLOEXEC != O_CLOEXEC");
19 # define EFD_CLOEXEC O_CLOEXEC
41 #if defined EFD_CLOEXEC || defined O_CLOEXEC
Dtimerfdflags.h20 #if defined TFD_CLOEXEC || defined O_CLOEXEC
23 static_assert((TFD_CLOEXEC) == (O_CLOEXEC), "TFD_CLOEXEC != O_CLOEXEC");
26 # define TFD_CLOEXEC O_CLOEXEC
51 #if defined TFD_CLOEXEC || defined O_CLOEXEC
Dopen_mode_flags.h437 #if defined(O_CLOEXEC) || (defined(HAVE_DECL_O_CLOEXEC) && HAVE_DECL_O_CLOEXEC)
439 static_assert((O_CLOEXEC) == (010000000), "O_CLOEXEC != 010000000");
442 # define O_CLOEXEC 010000000
445 #if defined(O_CLOEXEC) || (defined(HAVE_DECL_O_CLOEXEC) && HAVE_DECL_O_CLOEXEC)
447 static_assert((O_CLOEXEC) == (020000000), "O_CLOEXEC != 020000000");
450 # define O_CLOEXEC 020000000
453 #if defined(O_CLOEXEC) || (defined(HAVE_DECL_O_CLOEXEC) && HAVE_DECL_O_CLOEXEC)
455 static_assert((O_CLOEXEC) == (02000000), "O_CLOEXEC != 02000000");
458 # define O_CLOEXEC 02000000
751 XLAT(O_CLOEXEC),
[all …]
Depollflags.in1 #if defined EPOLL_CLOEXEC || defined O_CLOEXEC
2 EPOLL_CLOEXEC O_CLOEXEC
Dinotify_init_flags.in2 #if defined IN_CLOEXEC || defined O_CLOEXEC
3 IN_CLOEXEC O_CLOEXEC
Dsfd_flags.in1 #if defined SFD_CLOEXEC || defined O_CLOEXEC
2 SFD_CLOEXEC O_CLOEXEC
Defd_flags.in2 #if defined EFD_CLOEXEC || defined O_CLOEXEC
3 EFD_CLOEXEC O_CLOEXEC
/external/strace/tests-mx32/
Depoll_create1.c32 #if defined __NR_epoll_create1 && defined O_CLOEXEC
40 long rc = syscall(__NR_epoll_create1, O_CLOEXEC); in main()
43 rc = syscall(__NR_epoll_create1, O_CLOEXEC | O_NONBLOCK); in main()
Daccept4.c33 #if defined HAVE_ACCEPT4 && defined O_CLOEXEC
36 # define SUFFIX_ARGS , O_CLOEXEC
Deventfd.c33 #if defined __NR_eventfd2 && defined O_CLOEXEC
39 if (syscall(__NR_eventfd2, -1L, 1 | O_CLOEXEC | O_NONBLOCK)) in main()
/external/strace/tests-m32/
Depoll_create1.c32 #if defined __NR_epoll_create1 && defined O_CLOEXEC
40 long rc = syscall(__NR_epoll_create1, O_CLOEXEC); in main()
43 rc = syscall(__NR_epoll_create1, O_CLOEXEC | O_NONBLOCK); in main()
Daccept4.c33 #if defined HAVE_ACCEPT4 && defined O_CLOEXEC
36 # define SUFFIX_ARGS , O_CLOEXEC
Deventfd.c33 #if defined __NR_eventfd2 && defined O_CLOEXEC
39 if (syscall(__NR_eventfd2, -1L, 1 | O_CLOEXEC | O_NONBLOCK)) in main()
/external/strace/tests/
Depoll_create1.c32 #if defined __NR_epoll_create1 && defined O_CLOEXEC
40 long rc = syscall(__NR_epoll_create1, O_CLOEXEC); in main()
43 rc = syscall(__NR_epoll_create1, O_CLOEXEC | O_NONBLOCK); in main()
Daccept4.c33 #if defined HAVE_ACCEPT4 && defined O_CLOEXEC
36 # define SUFFIX_ARGS , O_CLOEXEC
Deventfd.c33 #if defined __NR_eventfd2 && defined O_CLOEXEC
39 if (syscall(__NR_eventfd2, -1L, 1 | O_CLOEXEC | O_NONBLOCK)) in main()
/external/ltp/include/lapi/
Dfcntl.h25 #ifndef O_CLOEXEC
26 # define O_CLOEXEC 02000000 macro
30 # define SOCK_CLOEXEC O_CLOEXEC
/external/libbrillo/brillo/files/
Dsafe_fd.h132 int flags = O_RDWR | O_CLOEXEC)
140 int flags = O_RDONLY | O_CLOEXEC)
150 int flags = O_RDWR | O_CLOEXEC) WARN_UNUSED_RESULT;
159 int flags = O_RDONLY | O_CLOEXEC) WARN_UNUSED_RESULT;

12345678910>>...12