diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2015-12-20 23:05:20 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2015-12-20 23:05:20 +0000 |
| commit | 59797edfd853475fc9a696557b9d5b57e78a177a (patch) | |
| tree | 8451e66135b6a257734793d2f264fa2d6723f72e /lib/libc/gen | |
| parent | f3be407b2361119123183d02bd3350db42b0cec2 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen')
| -rw-r--r-- | lib/libc/gen/getpeereid.c | 4 | ||||
| -rw-r--r-- | lib/libc/gen/sysconf.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/gen/getpeereid.c b/lib/libc/gen/getpeereid.c index 5ecb243b53c5..cedaee656d48 100644 --- a/lib/libc/gen/getpeereid.c +++ b/lib/libc/gen/getpeereid.c @@ -27,6 +27,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "namespace.h" #include <sys/param.h> #include <sys/socket.h> #include <sys/ucred.h> @@ -34,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include <errno.h> #include <unistd.h> +#include "un-namespace.h" int getpeereid(int s, uid_t *euid, gid_t *egid) @@ -43,7 +45,7 @@ getpeereid(int s, uid_t *euid, gid_t *egid) int error; xuclen = sizeof(xuc); - error = getsockopt(s, 0, LOCAL_PEERCRED, &xuc, &xuclen); + error = _getsockopt(s, 0, LOCAL_PEERCRED, &xuc, &xuclen); if (error != 0) return (error); if (xuc.cr_version != XUCRED_VERSION) diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c index be3d4af9116d..71f232105d43 100644 --- a/lib/libc/gen/sysconf.c +++ b/lib/libc/gen/sysconf.c @@ -36,6 +36,7 @@ static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94"; #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "namespace.h" #include <sys/param.h> #include <sys/time.h> #include <sys/sysctl.h> @@ -49,6 +50,7 @@ __FBSDID("$FreeBSD$"); #include <pthread.h> /* we just need the limits */ #include <time.h> #include <unistd.h> +#include "un-namespace.h" #include "../stdlib/atexit.h" #include "tzfile.h" /* from ../../../contrib/tzcode/stdtime */ @@ -575,10 +577,10 @@ yesno: case _SC_IPV6: #if _POSIX_IPV6 == 0 sverrno = errno; - value = socket(PF_INET6, SOCK_DGRAM, 0); + value = _socket(PF_INET6, SOCK_DGRAM, 0); errno = sverrno; if (value >= 0) { - close(value); + _close(value); return (200112L); } else return (0); |
