Home
last modified time | relevance | path

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

/external/perf_data_converter/src/quipper/
Drun_command.cc94 int devnull_fd = open("/dev/null", O_WRONLY); in RunCommand() local
95 if (devnull_fd < 0) { in RunCommand()
99 if (dup2(output ? output_pipefd[1] : devnull_fd, 1) < 0) { in RunCommand()
103 if (dup2(devnull_fd, 2) < 0) { in RunCommand()
107 if (close(devnull_fd) < 0) { in RunCommand()
/external/tensorflow/tensorflow/core/platform/posix/
Dsubprocess.cc227 int devnull_fd = -1; in Start() local
254 if (devnull_fd < 0) { in Start()
255 while ((devnull_fd = open("/dev/null", O_RDWR, 0)) < 0) { in Start()
261 while (dup2(devnull_fd, i) < 0) { in Start()
273 if (devnull_fd >= 0) { in Start()
274 close(devnull_fd); in Start()
/external/libpcap/rpcapd/
Drpcapd.c347 int devnull_fd; in main() local
373 devnull_fd = open("/dev/null", O_RDWR); in main()
374 if (devnull_fd != -1) in main()
379 (void)dup2(devnull_fd, 0); in main()
380 (void)dup2(devnull_fd, 1); in main()
381 close(devnull_fd); in main()
/external/python/cpython3/Lib/
Dsubprocess.py1460 devnull_fd = getattr(self, '_devnull', None)
1461 if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
1463 if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
1465 if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
1467 if devnull_fd is not None:
1468 os.close(devnull_fd)