_PATH_DEVNULL
(void) open(_PATH_DEVNULL, O_RDONLY);
if (!noclose && (fd = __pledge_open(_PATH_DEVNULL, O_RDWR)) != -1) {
(void) freopen(_PATH_DEVNULL, "w", stderr);
if ((nullfd = open(_PATH_DEVNULL, O_RDWR)) == -1)
fatalx("cannot open %s: %m", _PATH_DEVNULL);
fd = open(_PATH_DEVNULL, O_RDONLY);
if ((fd = open(_PATH_DEVNULL, O_RDWR)) != -1) {
if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
terminal = fopen(_PATH_DEVNULL, "r");
err(1, "cannot open %s", _PATH_DEVNULL);
s = open(_PATH_DEVNULL, O_WRONLY);
fderr = open(_PATH_DEVNULL, O_WRONLY);
fd = open(_PATH_DEVNULL, O_RDWR);
f1 = fopen(_PATH_DEVNULL, "r");
f2 = fopen(_PATH_DEVNULL, "r");
open(_PATH_DEVNULL, O_RDONLY, 0);
if (strnEQ(at, _PATH_DEVNULL, sizeof(_PATH_DEVNULL) - 1))
(void) open(_PATH_DEVNULL, O_RDONLY);
if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
SSH_X11_PROTO, _PATH_DEVNULL);
_PATH_DEVNULL);
"%s %s%s list %s 2>" _PATH_DEVNULL,
if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
error_f("open %s: %s", _PATH_DEVNULL,
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
error("%s: open %s: %s", tag, _PATH_DEVNULL,
if ((fd0 = open(_PATH_DEVNULL, O_RDONLY)) == -1)
if ((fd = open(_PATH_DEVNULL, O_RDWR)) < 2)
in = open(_PATH_DEVNULL, O_RDONLY);
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1)
fatal("open %s: %s", _PATH_DEVNULL, strerror(errno));
fatal("dup %s: %s", _PATH_DEVNULL, strerror(errno));
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1)
fatal("open %s: %s", _PATH_DEVNULL, strerror(errno));
fatal("dup %s: %s", _PATH_DEVNULL, strerror(errno));
null_fd = open(_PATH_DEVNULL, O_WRONLY);
nullfd = open(_PATH_DEVNULL, O_RDWR);
fd = open(_PATH_DEVNULL, O_RDONLY);
if (flags & DIRECTORY || strcmp(from_name, _PATH_DEVNULL)) {
#ifndef _PATH_DEVNULL
strlcpy(buf, _PATH_DEVNULL, sizeof buf);
if (!(f = fopen(_PATH_DEVNULL, "r")))
err(EXIT_FAILURE, _PATH_DEVNULL);
devnull = open(_PATH_DEVNULL, O_RDWR);
err(1, "%s", _PATH_DEVNULL);
if ((fd = open(_PATH_DEVNULL, O_WRONLY)) < 0)
(void)open(_PATH_DEVNULL, O_WRONLY);
new_fd = open (_PATH_DEVNULL, O_RDWR);
if ((fd = open(_PATH_DEVNULL, O_RDWR)) != -1) {
if ((nullfd = open(_PATH_DEVNULL, O_RDWR)) == -1)
fatal("open %s", _PATH_DEVNULL);
devnull = open(_PATH_DEVNULL, O_RDWR);
err(1, "open %s", _PATH_DEVNULL);
int dev_null = open(_PATH_DEVNULL, O_RDWR);
warn("%s", _PATH_DEVNULL);