Searched defs:null_fd (Results 1 - 2 of 2) sorted by relevance
/external/qemu/android/utils/ |
H A D | debug.c | 82 int null_fd, out_fd, err_fd; local 88 null_fd = _open( "NUL", _O_WRONLY ); 89 _dup2(null_fd, out_fd); 90 _dup2(null_fd, err_fd); 91 close(null_fd); 114 int null_fd, out_fd, err_fd; local 120 null_fd = open( "/dev/null", O_WRONLY ); 121 dup2(null_fd, out_fd); 122 dup2(null_fd, err_fd); 123 close(null_fd); [all...] |
/external/chromium/base/ |
H A D | process_util_posix.cc | 533 int null_fd = HANDLE_EINTR(open("/dev/null", O_RDONLY)); local 534 if (null_fd < 0) { 543 file_util::ScopedFD null_fd_closer(&null_fd); 544 int new_fd = HANDLE_EINTR(dup2(null_fd, STDIN_FILENO));
|
Completed in 68 milliseconds