diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
commit | 1a37aa566b347fbb2d2196786e1e84a79ffea9d5 (patch) | |
tree | a816cae9543dbb9277a62d68a91416fb2fb33da3 /libexec/rtld-aout | |
parent | 2961fc5ac412eec93a03d4badbbf4e01918d864a (diff) | |
download | src-1a37aa566b347fbb2d2196786e1e84a79ffea9d5.tar.gz src-1a37aa566b347fbb2d2196786e1e84a79ffea9d5.zip |
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Notes
Notes:
svn path=/head/; revision=69793
Diffstat (limited to 'libexec/rtld-aout')
-rw-r--r-- | libexec/rtld-aout/rtld.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/rtld-aout/rtld.c b/libexec/rtld-aout/rtld.c index a55e9bc1199b..3a663195f372 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); \ |