aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-12-11 01:03:42 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-12-11 01:03:42 +0000
commit6034d13a9ed650ee88ae94550adc86ef25441310 (patch)
tree6e0c502d67cc546866c1072128e560fd9249bc3f /libexec/rtld-elf
parentb67b2ea4cec679f2f5c3a7bd797837b22b8c9387 (diff)
MFC: add /dev/zero and use PATH_* where possible.
Notes
svn path=/stable/4/; revision=69839
Diffstat (limited to 'libexec/rtld-elf')
-rw-r--r--libexec/rtld-elf/malloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/rtld-elf/malloc.c b/libexec/rtld-elf/malloc.c
index 8aefa41643f0..cb00a204974a 100644
--- a/libexec/rtld-elf/malloc.c
+++ b/libexec/rtld-elf/malloc.c
@@ -49,6 +49,7 @@ static char *rcsid = "$FreeBSD$";
#include <sys/types.h>
#include <err.h>
+#include <paths.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -456,9 +457,9 @@ int n;
int offset;
#ifdef NEED_DEV_ZERO
- fd = open("/dev/zero", O_RDWR, 0);
+ fd = open(_PATH_DEVZERO, O_RDWR, 0);
if (fd == -1)
- perror("/dev/zero");
+ perror(_PATH_DEVZERO);
#endif
if (pagepool_end - pagepool_start > pagesz) {