/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | android-comparison-in-temp-failure-retry.c | 3 #define TEMP_FAILURE_RETRY(x) \ macro 17 TEMP_FAILURE_RETRY((i = foo())); in test() 18 TEMP_FAILURE_RETRY(foo()); in test() 19 TEMP_FAILURE_RETRY((foo())); in test() 21 TEMP_FAILURE_RETRY(foo() == 1); in test() 23 TEMP_FAILURE_RETRY((foo() == 1)); in test() 25 TEMP_FAILURE_RETRY((int)(foo() == 1)); in test() 28 TEMP_FAILURE_RETRY(bar(foo() == 1)); in test() 29 TEMP_FAILURE_RETRY((bar(foo() == 1))); in test() 30 TEMP_FAILURE_RETRY((bar(foo() == 1)) == 1); in test() [all …]
|
D | android-cloexec-open.cpp | 7 #define TEMP_FAILURE_RETRY(exp) \ macro 23 TEMP_FAILURE_RETRY(open("filename", O_RDWR)); in a() 29 TEMP_FAILURE_RETRY(open("filename", O_RDWR | O_EXCL)); in a() 38 TEMP_FAILURE_RETRY(open64("filename", O_RDWR)); in b() 44 TEMP_FAILURE_RETRY(open64("filename", O_RDWR | O_EXCL)); in b() 53 TEMP_FAILURE_RETRY(openat(0, "filename", O_RDWR)); in c() 59 TEMP_FAILURE_RETRY(openat(0, "filename", O_RDWR | O_EXCL)); in c() 68 TEMP_FAILURE_RETRY(open("filename", 3)); in f() 74 TEMP_FAILURE_RETRY(open64("filename", 3)); in f() 80 TEMP_FAILURE_RETRY(openat(0, "filename", 3)); in f() [all …]
|
D | android-cloexec-socket.cpp | 7 #define TEMP_FAILURE_RETRY(exp) \ macro 21 TEMP_FAILURE_RETRY(socket(0, SOCK_STREAM, 0)); in a() 27 TEMP_FAILURE_RETRY(socket(0, SOCK_STREAM | SOCK_DGRAM, 0)); in a() 36 TEMP_FAILURE_RETRY(socket(0, 3, 0)); in f() 42 TEMP_FAILURE_RETRY(socket(0, flag, 0)); in f() 50 TEMP_FAILURE_RETRY(socket(0, SOCK_STREAM, 0)); in d() 52 TEMP_FAILURE_RETRY(socket(0, SOCK_STREAM | SOCK_DGRAM, 0)); in d() 59 TEMP_FAILURE_RETRY(socket(0, SOCK_CLOEXEC, 0)); in e() 61 TEMP_FAILURE_RETRY(socket(0, SOCK_STREAM | SOCK_CLOEXEC, 0)); in e() 63 TEMP_FAILURE_RETRY(socket(0, SOCK_STREAM | SOCK_CLOEXEC | SOCK_DGRAM, 0)); in e() [all …]
|
D | android-cloexec-inotify-init1.cpp | 6 #define TEMP_FAILURE_RETRY(exp) \ macro 20 TEMP_FAILURE_RETRY(inotify_init1(IN_NONBLOCK)); in a() 29 TEMP_FAILURE_RETRY(inotify_init1(0)); in f() 35 TEMP_FAILURE_RETRY(inotify_init1(flag)); in f() 43 TEMP_FAILURE_RETRY(inotify_init1(IN_NONBLOCK)); in d() 50 TEMP_FAILURE_RETRY(inotify_init1(IN_CLOEXEC)); in e() 52 TEMP_FAILURE_RETRY(inotify_init1(IN_NONBLOCK | IN_CLOEXEC)); in e() 60 TEMP_FAILURE_RETRY(inotify_init1(IN_CLOEXEC)); in d() 62 TEMP_FAILURE_RETRY(inotify_init1(IN_NONBLOCK | IN_CLOEXEC)); in d()
|
D | android-cloexec-memfd-create.cpp | 6 #define TEMP_FAILURE_RETRY(exp) \ macro 21 TEMP_FAILURE_RETRY(memfd_create(NULL, MFD_ALLOW_SEALING)); in a() 30 TEMP_FAILURE_RETRY(memfd_create(NULL, 3)); in f() 36 TEMP_FAILURE_RETRY(memfd_create(NULL, flag)); in f() 44 TEMP_FAILURE_RETRY(memfd_create(NULL, MFD_ALLOW_SEALING)); in d() 51 TEMP_FAILURE_RETRY(memfd_create(NULL, MFD_CLOEXEC)); in e() 53 TEMP_FAILURE_RETRY(memfd_create(NULL, MFD_ALLOW_SEALING | MFD_CLOEXEC)); in e() 61 TEMP_FAILURE_RETRY(memfd_create(NULL, MFD_ALLOW_SEALING)); in d()
|
D | android-cloexec-pipe2.cpp | 6 #define TEMP_FAILURE_RETRY(exp) \ macro 22 TEMP_FAILURE_RETRY(pipe2(pipefd, O_NONBLOCK)); in warning() 32 TEMP_FAILURE_RETRY(pipe2(pipefd, 3)); in warningInMacroArugment() 38 TEMP_FAILURE_RETRY(pipe2(pipefd, flag)); in warningInMacroArugment() 47 TEMP_FAILURE_RETRY(pipe2(pipefd, O_NONBLOCK)); in noWarning() 55 TEMP_FAILURE_RETRY(pipe2(pipefd, O_CLOEXEC)); in noWarning() 57 TEMP_FAILURE_RETRY(pipe2(pipefd, O_NONBLOCK | O_CLOEXEC)); in noWarning() 66 TEMP_FAILURE_RETRY(pipe2(pipefd, O_NONBLOCK)); in noWarning()
|
D | android-cloexec-epoll-create1.cpp | 5 #define TEMP_FAILURE_RETRY(exp) \ macro 19 TEMP_FAILURE_RETRY(epoll_create1(0)); in a() 28 TEMP_FAILURE_RETRY(epoll_create1(3)); in f() 34 TEMP_FAILURE_RETRY(epoll_create1(EPOLL_CLOEXEC)); in f() 42 TEMP_FAILURE_RETRY(epoll_create1(0)); in d() 49 TEMP_FAILURE_RETRY(epoll_create1(EPOLL_CLOEXEC)); in e() 57 TEMP_FAILURE_RETRY(epoll_create1(EPOLL_CLOEXEC)); in d()
|
D | android-cloexec-accept4.cpp | 9 #define TEMP_FAILURE_RETRY(exp) \ macro 24 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, SOCK_NONBLOCK)); in a() 33 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, 3)); in f() 39 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, flag)); in f() 47 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, SOCK_NONBLOCK)); in d() 54 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, SOCK_CLOEXEC)); in e() 56 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, SOCK_NONBLOCK | SOCK_CLOEXEC)); in e() 64 TEMP_FAILURE_RETRY(accept4(0, NULL, NULL, SOCK_NONBLOCK)); in d()
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | android-comparison-in-temp-failure-retry.rst | 7 the ``TEMP_FAILURE_RETRY`` macro. Having such a use is incorrect in the vast 9 ``TEMP_FAILURE_RETRY`` macro. 11 For context, ``TEMP_FAILURE_RETRY`` is `a convenience macro 21 while (TEMP_FAILURE_RETRY(read(STDIN_FILENO, cs, sizeof(cs)) != 0)) { 25 Because TEMP_FAILURE_RETRY will check for whether the result *of the comparison* 29 ``TEMP_FAILURE_RETRY`` argument, like so: 34 while (TEMP_FAILURE_RETRY(read(STDIN_FILENO, cs, sizeof(cs))) != 0) {
|
/external/elfutils/lib/ |
D | system.h | 79 #ifndef TEMP_FAILURE_RETRY 80 #define TEMP_FAILURE_RETRY(expression) \ macro 107 ssize_t ret = TEMP_FAILURE_RETRY (pwrite (fd, buf + recvd, len - recvd, in pwrite_retry() 126 ssize_t ret = TEMP_FAILURE_RETRY (write (fd, buf + recvd, len - recvd)); in write_retry() 144 ssize_t ret = TEMP_FAILURE_RETRY (pread (fd, buf + recvd, len - recvd, in pread_retry()
|
D | crc32_file.c | 82 while ((count = TEMP_FAILURE_RETRY (pread (fd, buffer, sizeof buffer, in crc32_file()
|
D | ChangeLog | 125 * system.h: Remove semi-colon after TEMP_FAILURE_RETRY definition. 138 (TEMP_FAILURE_RETRY): Define when not yet defined.
|
/external/bsdiff/ |
D | file.cc | 19 #ifndef TEMP_FAILURE_RETRY 28 int fd = TEMP_FAILURE_RETRY(open(pathname, flags, 0644)); in FOpen() 43 ssize_t rc = TEMP_FAILURE_RETRY(read(fd_, buf, count)); in Read() 55 ssize_t rc = TEMP_FAILURE_RETRY(write(fd_, buf, count)); in Write()
|
/external/icu/libandroidicuinit/ |
D | IcuRegistration.cpp | 96 #ifndef TEMP_FAILURE_RETRY 97 #define TEMP_FAILURE_RETRY(exp) \ macro 133 aicu_unique_fd fd(TEMP_FAILURE_RETRY(open(path_.c_str(), O_RDONLY))); in TryMap()
|
/external/elfutils/libdw/ |
D | dwarf_getalt.c | 136 fd = TEMP_FAILURE_RETRY (open (id_path, O_RDONLY)); in find_debug_altlink() 145 fd = TEMP_FAILURE_RETRY (open (altpath, O_RDONLY)); in find_debug_altlink()
|
/external/libchrome/third_party/ashmem/ |
D | ashmem.h | 27 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_GET_PROT_MASK)); in ashmem_get_prot_region()
|
/external/perfetto/ |
D | .clang-tidy | 6 value: 'PERFETTO_EINTR,TEMP_FAILURE_RETRY'
|
/external/elfutils/libdwfl/ |
D | dwfl_build_id_find_elf.c | 100 fd = TEMP_FAILURE_RETRY (open (name, O_RDONLY)); in __libdwfl_open_by_build_id()
|
D | find-debuginfo.c | 61 int fd = TEMP_FAILURE_RETRY (open (fname, O_RDONLY)); in try_open()
|
D | linux-kernel-modules.c | 102 : TEMP_FAILURE_RETRY (open (*fname, O_RDONLY))); in try_kernel_name() 137 fd = TEMP_FAILURE_RETRY (open (zname, O_RDONLY)); in try_kernel_name()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/debugging/ |
D | symbolize_test.cc | 401 int fd = TEMP_FAILURE_RETRY(open("/proc/self/exe", O_RDONLY)); in TEST()
|
/external/abseil-cpp/absl/debugging/ |
D | symbolize_test.cc | 397 int fd = TEMP_FAILURE_RETRY(open("/proc/self/exe", O_RDONLY)); in TEST()
|
/external/openscreen/third_party/abseil/src/absl/debugging/ |
D | symbolize_test.cc | 401 int fd = TEMP_FAILURE_RETRY(open("/proc/self/exe", O_RDONLY)); in TEST()
|
/external/libtextclassifier/abseil-cpp/absl/debugging/ |
D | symbolize_test.cc | 401 int fd = TEMP_FAILURE_RETRY(open("/proc/self/exe", O_RDONLY)); in TEST()
|
/external/webrtc/third_party/abseil-cpp/absl/debugging/ |
D | symbolize_test.cc | 397 int fd = TEMP_FAILURE_RETRY(open("/proc/self/exe", O_RDONLY)); in TEST()
|