Home
last modified time | relevance | path

Searched refs:null_fd (Results 1 – 3 of 3) sorted by relevance

/external/qemu/android/utils/
Ddebug.c84 int null_fd, out_fd, err_fd; in stdio_disable() local
90 null_fd = _open( "NUL", _O_WRONLY ); in stdio_disable()
91 _dup2(null_fd, out_fd); in stdio_disable()
92 _dup2(null_fd, err_fd); in stdio_disable()
93 close(null_fd); in stdio_disable()
116 int null_fd, out_fd, err_fd; in stdio_disable() local
122 null_fd = open( "/dev/null", O_WRONLY ); in stdio_disable()
123 dup2(null_fd, out_fd); in stdio_disable()
124 dup2(null_fd, err_fd); in stdio_disable()
125 close(null_fd); in stdio_disable()
/external/chromium_org/tools/android/forwarder2/
Ddaemon.cc193 const int null_fd = open("/dev/null", O_RDWR); in SpawnIfNeeded() local
194 CHECK_EQ(null_fd, STDIN_FILENO); in SpawnIfNeeded()
195 CHECK_EQ(dup(null_fd), STDOUT_FILENO); in SpawnIfNeeded()
196 CHECK_EQ(dup(null_fd), STDERR_FILENO); in SpawnIfNeeded()
/external/chromium_org/base/process/
Dlaunch_posix.cc344 base::ScopedFD null_fd(HANDLE_EINTR(open("/dev/null", O_RDONLY))); in LaunchProcess() local
345 if (!null_fd.is_valid()) { in LaunchProcess()
350 int new_fd = HANDLE_EINTR(dup2(null_fd.get(), STDIN_FILENO)); in LaunchProcess()