Searched refs:devnull_fd (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/cmds/dumpstate/ |
D | DumpstateUtil.cpp | 351 int devnull_fd = TEMP_FAILURE_RETRY(open("/dev/null", O_RDONLY)); in RunCommandToFd() local 352 TEMP_FAILURE_RETRY(dup2(devnull_fd, STDIN_FILENO)); in RunCommandToFd() 353 close(devnull_fd); in RunCommandToFd() 354 devnull_fd = TEMP_FAILURE_RETRY(open("/dev/null", O_WRONLY)); in RunCommandToFd() 355 TEMP_FAILURE_RETRY(dup2(devnull_fd, STDOUT_FILENO)); in RunCommandToFd() 356 TEMP_FAILURE_RETRY(dup2(devnull_fd, STDERR_FILENO)); in RunCommandToFd() 357 close(devnull_fd); in RunCommandToFd()
|
D | DumpstateService.cpp | 227 android::base::unique_fd devnull_fd( in retrieveBugreport() local 231 0, bugreport_fd, devnull_fd, false, skip_user_consent); in retrieveBugreport()
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_Zygote.cpp | 899 android::base::unique_fd devnull_fd(open("/dev/null", O_RDWR | O_CLOEXEC)); in DetachDescriptors() local 900 if (devnull_fd == -1) { in DetachDescriptors() 906 if (TEMP_FAILURE_RETRY(dup3(devnull_fd, fd, O_CLOEXEC)) == -1) { in DetachDescriptors()
|