Home
last modified time | relevance | path

Searched refs:nullfd (Results 1 – 7 of 7) sorted by relevance

/glibc-2.36/nscd/
Dnscd.c221 int nullfd = open (_PATH_DEVNULL, O_RDWR); in main() local
222 if (nullfd != -1) in main()
226 if (fstat64 (nullfd, &st) == 0 && S_ISCHR (st.st_mode) != 0 in main()
233 (void) dup2 (nullfd, STDIN_FILENO); in main()
234 (void) dup2 (nullfd, STDOUT_FILENO); in main()
235 (void) dup2 (nullfd, STDERR_FILENO); in main()
237 if (nullfd > 2) in main()
238 close (nullfd); in main()
243 close (nullfd); in main()
244 nullfd = -1; in main()
[all …]
/glibc-2.36/rt/
Dtst-cputimer1.c28 int nullfd = open ("/dev/null", O_WRONLY); in chew_cpu() local
32 write (nullfd, (char *) buf, sizeof buf); in chew_cpu()
33 close (nullfd); in chew_cpu()
Dtst-cputimer2.c31 int nullfd = open ("/dev/null", O_WRONLY); in chew_cpu() local
35 write (nullfd, (char *) buf, sizeof buf); in chew_cpu()
36 close (nullfd); in chew_cpu()
Dtst-cputimer3.c32 int nullfd = open ("/dev/null", O_WRONLY); in chew_cpu() local
36 write (nullfd, (char *) buf, sizeof buf); in chew_cpu()
37 close (nullfd); in chew_cpu()
Dtst-cpuclock2.c54 int nullfd = open ("/dev/null", O_WRONLY); in chew_cpu() local
58 write (nullfd, (char *) buf, sizeof buf); in chew_cpu()
59 close (nullfd); in chew_cpu()
/glibc-2.36/time/
Dtst-cpuclock1.c40 int nullfd = open ("/dev/null", O_WRONLY); in chew_cpu() local
44 write (nullfd, (char *) buf, sizeof buf); in chew_cpu()
45 close (nullfd); in chew_cpu()
/glibc-2.36/csu/
Dcheck_fds.c63 int nullfd = __open_nocancel (name, mode, 0); in check_one_fd() local
73 if (__glibc_unlikely (nullfd != fd) in check_one_fd()