Searched refs:null_fd (Results 1 – 4 of 4) sorted by relevance
64 int null_fd = open("/dev/null", O_RDWR); in ExecvAtrace() local65 if (null_fd == -1) { in ExecvAtrace()71 if ((dup2(null_fd, STDOUT_FILENO) == -1)) { in ExecvAtrace()77 if ((dup2(null_fd, STDIN_FILENO) == -1)) { in ExecvAtrace()
104 null_fd = open("/dev/null", "w")106 task = subprocess.Popen(cmd, stdout=null_fd)
394 base::ScopedFD null_fd(HANDLE_EINTR(open("/dev/null", O_RDONLY))); in LaunchProcess() local395 if (!null_fd.is_valid()) { in LaunchProcess()400 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); in LaunchProcess()
592 ScopedFile null_fd(base::OpenFile("/dev/null", O_RDONLY)); in TEST_F() local635 int buf_fd[2] = {null_fd.get(), zero_fd.get()}; in TEST_F()