Home
last modified time | relevance | path

Searched refs:devnull (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/stmfproxy/stmfproxy/
H A Dstmfproxy.c297 int devnull; in daemonInit() local
322 devnull = open("/dev/null", O_RDWR); in daemonInit()
323 if (devnull < 0) { in daemonInit()
329 (void) dup2(devnull, STDIN_FILENO); in daemonInit()
330 (void) dup2(devnull, STDOUT_FILENO); in daemonInit()
331 (void) dup2(devnull, STDERR_FILENO); in daemonInit()
332 (void) close(devnull); in daemonInit()
/illumos-gate/usr/src/ucbcmd/install.d/
H A Dinstall.c190 int devnull; local
203 devnull = !strcmp(from, "/dev/null");
204 if (!devnull && !((from_sb.st_mode&S_IFMT) == S_IFREG)) {
242 if (!devnull) {
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Didmapd.c216 int devnull; in daemonize_start() local
221 devnull = open("/dev/null", O_RDONLY); in daemonize_start()
222 if (devnull < 0) in daemonize_start()
224 (void) dup2(devnull, 0); in daemonize_start()
/illumos-gate/usr/src/cmd/acct/
H A Dacctcom.c664 struct stat devnull; in isdevnull() local
670 if(stat("/dev/null",&devnull) == -1) { in isdevnull()
675 if (filearg.st_rdev == devnull.st_rdev) in isdevnull()
/illumos-gate/usr/src/cmd/sh/
H A Dmsg.c147 const char devnull[] = "/dev/null"; variable
H A Ddefs.h349 char devnull[];
H A Djobs.c701 renamef(chkopen(devnull, 0), 0); in makejob()
/illumos-gate/usr/src/cmd/infocmp/
H A Dinfocmp.c121 static int devnull; /* open("/dev/null") for setupterm */ variable
534 (void) setupterm(term, devnull, (int *) 0); in initfirstterm()
641 (void) setupterm(nterm, devnull, (int *) 0); in check_nth_terminal()
1120 devnull = open("/dev/null", O_RDWR); in main()
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dsetup.c1331 int devnull; in calcsb() local
1443 devnull = open("/dev/null", O_WRONLY); in calcsb()
1444 if (devnull == -1) { in calcsb()
1449 if (dup2(devnull, fileno(stderr)) < 0) { in calcsb()