Searched refs:nullfd (Results 1 – 7 of 7) sorted by relevance
/glibc-2.36/nscd/ |
D | nscd.c | 221 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/ |
D | tst-cputimer1.c | 28 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()
|
D | tst-cputimer2.c | 31 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()
|
D | tst-cputimer3.c | 32 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()
|
D | tst-cpuclock2.c | 54 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/ |
D | tst-cpuclock1.c | 40 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/ |
D | check_fds.c | 63 int nullfd = __open_nocancel (name, mode, 0); in check_one_fd() local 73 if (__glibc_unlikely (nullfd != fd) in check_one_fd()
|