Home
last modified time | relevance | path

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

/third_party/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()
/third_party/libfuse/lib/
Dhelper.c256 int nullfd; in fuse_daemonize() local
287 nullfd = open("/dev/null", O_RDWR, 0); in fuse_daemonize()
288 if (nullfd != -1) { in fuse_daemonize()
289 (void) dup2(nullfd, 0); in fuse_daemonize()
290 (void) dup2(nullfd, 1); in fuse_daemonize()
291 (void) dup2(nullfd, 2); in fuse_daemonize()
292 if (nullfd > 2) in fuse_daemonize()
293 close(nullfd); in fuse_daemonize()