Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/fs/fs-bench/
Drandom-access.c20 int nullfd; variable
45 if ((nullfd = open("/dev/null", O_WRONLY)) < 0) { in main()
59 close(nullfd); in main()
78 if (write(nullfd, buf, c) < 0) { in open_read_close()
/external/dnsmasq/src/
Ddnsmasq.c298 int nullfd; in main() local
368 nullfd = open("/dev/null", O_RDWR); in main()
369 dup2(nullfd, STDOUT_FILENO); in main()
370 dup2(nullfd, STDERR_FILENO); in main()
371 dup2(nullfd, STDIN_FILENO); in main()
372 close(nullfd); in main()