Home
last modified time | relevance | path

Searched refs:devnull_fd (Results 1 – 11 of 11) sorted by relevance

/aosp_15_r20/external/tensorflow/tensorflow/tsl/platform/default/
H A Dsubprocess.cc239 int devnull_fd = -1; in Start() local
273 if (devnull_fd < 0) { in Start()
280 devnull_fd = i; in Start()
283 posix_spawn_file_actions_adddup2(&file_actions, devnull_fd, i); in Start()
403 int devnull_fd = -1; in Start() local
434 if (devnull_fd < 0) { in Start()
435 while ((devnull_fd = open("/dev/null", O_RDWR, 0)) < 0) { in Start()
441 while (dup2(devnull_fd, i) < 0) { in Start()
455 if (devnull_fd >= 0) { in Start()
456 if (close(devnull_fd) < 0) { in Start()
/aosp_15_r20/frameworks/native/cmds/dumpstate/
H A DDumpstateUtil.cpp351 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()
H A DDumpstateService.cpp227 android::base::unique_fd devnull_fd( in retrieveBugreport() local
231 0, bugreport_fd, devnull_fd, false, skip_user_consent); in retrieveBugreport()
/aosp_15_r20/external/libpcap/rpcapd/
H A Drpcapd.c422 int devnull_fd; in main() local
440 devnull_fd = open("/dev/null", O_RDWR); in main()
441 if (devnull_fd != -1) in main()
446 (void)dup2(devnull_fd, 0); in main()
447 (void)dup2(devnull_fd, 1); in main()
448 (void)dup2(devnull_fd, 2); in main()
449 close(devnull_fd); in main()
/aosp_15_r20/external/python/cpython3/Lib/
Dsubprocess.py1287 devnull_fd = getattr(self, '_devnull', None)
1298 if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
1300 if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
1302 if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
1305 if devnull_fd is not None:
1306 stack.callback(os.close, devnull_fd)
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/
Dsubprocess.py1287 devnull_fd = getattr(self, '_devnull', None)
1298 if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
1300 if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
1302 if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
1305 if devnull_fd is not None:
1306 stack.callback(os.close, devnull_fd)
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/
Dsubprocess.py1287 devnull_fd = getattr(self, '_devnull', None)
1298 if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
1300 if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
1302 if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
1305 if devnull_fd is not None:
1306 stack.callback(os.close, devnull_fd)
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/
H A Dsubprocess.py1287 devnull_fd = getattr(self, '_devnull', None)
1298 if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
1300 if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
1302 if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
1305 if devnull_fd is not None:
1306 stack.callback(os.close, devnull_fd)
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/
Dsubprocess.py1287 devnull_fd = getattr(self, '_devnull', None)
1298 if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
1300 if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
1302 if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
1305 if devnull_fd is not None:
1306 stack.callback(os.close, devnull_fd)
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/
Dsubprocess.py1287 devnull_fd = getattr(self, '_devnull', None)
1298 if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
1300 if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
1302 if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
1305 if devnull_fd is not None:
1306 stack.callback(os.close, devnull_fd)
/aosp_15_r20/frameworks/base/core/jni/
H A Dcom_android_internal_os_Zygote.cpp892 android::base::unique_fd devnull_fd(open("/dev/null", O_RDWR | O_CLOEXEC)); in DetachDescriptors() local
893 if (devnull_fd == -1) { in DetachDescriptors()
899 if (TEMP_FAILURE_RETRY(dup3(devnull_fd, fd, O_CLOEXEC)) == -1) { in DetachDescriptors()