Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/accept/
Daccept01.c27 int devnull_fd; variable
47 PF_INET, SOCK_STREAM, 0, &devnull_fd, (struct sockaddr *)&fsin1,
74 devnull_fd = SAFE_OPEN("/dev/null", O_WRONLY); in test_setup()
89 SAFE_CLOSE(devnull_fd); in test_cleanup()
/external/tensorflow/tensorflow/core/platform/default/
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.py1102 devnull_fd = getattr(self, '_devnull', None)
1113 if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd:
1115 if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd:
1117 if errwrite != -1 and errread != -1 and errwrite != devnull_fd:
1120 if devnull_fd is not None:
1121 stack.callback(os.close, devnull_fd)