summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-aout
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
committerobrien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
commitc2ee1dcc02035d781d6c70f06df7106979a9f870 (patch)
tree757810dc1fdd19be4c8125ccb9e8beb1aff3d929 /libexec/rtld-aout
parentc174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff)
downloadFreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.zip
FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.tar.gz
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Diffstat (limited to 'libexec/rtld-aout')
-rw-r--r--libexec/rtld-aout/rtld.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/rtld-aout/rtld.c b/libexec/rtld-aout/rtld.c
index a55e9bc..3a66319 100644
--- a/libexec/rtld-aout/rtld.c
+++ b/libexec/rtld-aout/rtld.c
@@ -45,6 +45,7 @@
#include <err.h>
#include <fcntl.h>
#include <a.out.h>
+#include <paths.h>
#include <stab.h>
#include <stdio.h>
#include <stdlib.h>
@@ -66,8 +67,8 @@
#ifndef MAP_ANON
#define MAP_ANON 0
#define anon_open() do { \
- if ((anon_fd = open("/dev/zero", O_RDWR, 0)) == -1) \
- err("open: %s", "/dev/zero"); \
+ if ((anon_fd = open(_PATH_DEVZERO, O_RDWR, 0)) == -1) \
+ err("open: %s", _PATH_DEVZERO); \
} while (0)
#define anon_close() do { \
(void)close(anon_fd); \
OpenPOWER on IntegriCloud