Searched refs:nullfd (Results 1 – 2 of 2) sorted by relevance
20 int nullfd; variable45 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()
256 int nullfd; in fuse_daemonize() local287 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()