/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | android-cloexec-open.cpp | 6 #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 …]
|
D | android-cloexec-pipe2.cpp | 5 #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/ |
D | android-cloexec-open.rst | 7 ``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);
|
D | android-cloexec-pipe2.rst | 6 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/ |
D | epollflags.h | 6 #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
|
D | inotify_init_flags.h | 13 #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
|
D | sfd_flags.h | 6 #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
|
D | efd_flags.h | 13 #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
|
D | timerfdflags.h | 20 #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
|
D | open_mode_flags.h | 437 #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 …]
|
D | epollflags.in | 1 #if defined EPOLL_CLOEXEC || defined O_CLOEXEC 2 EPOLL_CLOEXEC O_CLOEXEC
|
D | inotify_init_flags.in | 2 #if defined IN_CLOEXEC || defined O_CLOEXEC 3 IN_CLOEXEC O_CLOEXEC
|
D | sfd_flags.in | 1 #if defined SFD_CLOEXEC || defined O_CLOEXEC 2 SFD_CLOEXEC O_CLOEXEC
|
D | efd_flags.in | 2 #if defined EFD_CLOEXEC || defined O_CLOEXEC 3 EFD_CLOEXEC O_CLOEXEC
|
/external/strace/tests-mx32/ |
D | epoll_create1.c | 32 #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()
|
D | accept4.c | 33 #if defined HAVE_ACCEPT4 && defined O_CLOEXEC 36 # define SUFFIX_ARGS , O_CLOEXEC
|
D | eventfd.c | 33 #if defined __NR_eventfd2 && defined O_CLOEXEC 39 if (syscall(__NR_eventfd2, -1L, 1 | O_CLOEXEC | O_NONBLOCK)) in main()
|
/external/strace/tests-m32/ |
D | epoll_create1.c | 32 #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()
|
D | accept4.c | 33 #if defined HAVE_ACCEPT4 && defined O_CLOEXEC 36 # define SUFFIX_ARGS , O_CLOEXEC
|
D | eventfd.c | 33 #if defined __NR_eventfd2 && defined O_CLOEXEC 39 if (syscall(__NR_eventfd2, -1L, 1 | O_CLOEXEC | O_NONBLOCK)) in main()
|
/external/strace/tests/ |
D | epoll_create1.c | 32 #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()
|
D | accept4.c | 33 #if defined HAVE_ACCEPT4 && defined O_CLOEXEC 36 # define SUFFIX_ARGS , O_CLOEXEC
|
D | eventfd.c | 33 #if defined __NR_eventfd2 && defined O_CLOEXEC 39 if (syscall(__NR_eventfd2, -1L, 1 | O_CLOEXEC | O_NONBLOCK)) in main()
|
/external/ltp/include/lapi/ |
D | fcntl.h | 25 #ifndef O_CLOEXEC 26 # define O_CLOEXEC 02000000 macro 30 # define SOCK_CLOEXEC O_CLOEXEC
|
/external/libbrillo/brillo/files/ |
D | safe_fd.h | 132 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;
|