/dev/null will be available on any POSIX system, but _PATH_DEVNULL may not, e.g. Solaris. There doesn't seem to be any advantage to using the define (and we don't use it much in the tree either.)
http://pubs.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap10.html --- src/usr.sbin/ntpd/ntp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c index b89ddf2..ddb9cf1 100644 --- a/src/usr.sbin/ntpd/ntp.c +++ b/src/usr.sbin/ntpd/ntp.c @@ -125,7 +125,7 @@ ntp_main(int pipe_prnt[2], int fd_ctl, struct ntpd_conf *nconf, if ((se = getservbyname("ntp", "udp")) == NULL) fatal("getservbyname"); - if ((nullfd = open(_PATH_DEVNULL, O_RDWR, 0)) == -1) + if ((nullfd = open("/dev/null", O_RDWR, 0)) == -1) fatal(NULL); close(pipe_prnt[0]); -- 2.4.5