Searched refs:null_fd (Results 1 – 9 of 9) sorted by relevance
/external/libusb/tests/ |
D | testlib.c | 92 if (ctx->null_fd != INVALID_FD) { in cleanup_test_output() 93 close(ctx->null_fd); in cleanup_test_output() 94 ctx->null_fd = INVALID_FD; in cleanup_test_output() 128 ctx->null_fd = open(NULL_PATH, O_WRONLY); in setup_test_output() 129 if (ctx->null_fd < 0) { in setup_test_output() 130 ctx->null_fd = INVALID_FD; in setup_test_output() 135 if ((dup2(ctx->null_fd, STDOUT_FILENO) < 0) || in setup_test_output() 136 (dup2(ctx->null_fd, STDERR_FILENO) < 0)) { in setup_test_output() 186 ctx.null_fd = INVALID_FD; in libusb_testlib_run_tests()
|
D | libusb_testlib.h | 59 int null_fd; member
|
/external/perfetto/src/traced/probes/ftrace/ |
D | atrace_wrapper.cc | 63 int null_fd = open("/dev/null", O_RDWR); in ExecvAtrace() local 64 if (null_fd == -1) { in ExecvAtrace() 70 if ((dup2(null_fd, STDOUT_FILENO) == -1)) { in ExecvAtrace() 76 if ((dup2(null_fd, STDIN_FILENO) == -1)) { in ExecvAtrace()
|
/external/honggfuzz/examples/libjpeg/ |
D | persistent-jpeg.c | 20 int null_fd = -1; variable 40 null_fd = open("/dev/null", O_WRONLY); in LLVMFuzzerInitialize() 87 write(null_fd, buffer[0], row_stride); in LLVMFuzzerTestOneInput()
|
/external/honggfuzz/examples/libpng/ |
D | persistent-png.c | 43 int null_fd = -1; variable 64 null_fd = open("/dev/null", O_WRONLY); in LLVMFuzzerInitialize() 108 write(null_fd, row_pointers[i], row_bytes); in LLVMFuzzerTestOneInput()
|
/external/autotest/scheduler/ |
D | luciferlib.py | 449 null_fd = os.open(os.devnull, os.O_RDONLY) 450 os.dup2(null_fd, 0) 451 os.close(null_fd)
|
/external/autotest/client/site_tests/kernel_SchedBandwith/ |
D | kernel_SchedBandwith.py | 104 null_fd = open("/dev/null", "w") 106 task = subprocess.Popen(cmd, stdout=null_fd)
|
/external/libchrome/base/process/ |
D | launch_posix.cc | 394 base::ScopedFD null_fd(HANDLE_EINTR(open("/dev/null", O_RDONLY))); in LaunchProcess() local 395 if (!null_fd.is_valid()) { in LaunchProcess() 400 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); in LaunchProcess()
|
/external/perfetto/src/base/ |
D | unix_socket_unittest.cc | 208 ScopedFile null_fd(base::OpenFile("/dev/null", O_RDONLY)); in TEST_F() local 251 int buf_fd[2] = {null_fd.get(), zero_fd.get()}; in TEST_F()
|