summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-10-29 10:45:01 +0000
committertjr <tjr@FreeBSD.org>2003-10-29 10:45:01 +0000
commit8366c4708abfc6ebc635c80bd233fb62ae9b90dc (patch)
tree0c4f70781f934d276b897460f13e497bca19523d /lib/libc/gen
parentf5759b00c40941c8a20fa62306629cc1df0eef5a (diff)
downloadFreeBSD-src-8366c4708abfc6ebc635c80bd233fb62ae9b90dc.zip
FreeBSD-src-8366c4708abfc6ebc635c80bd233fb62ae9b90dc.tar.gz
Remove incomplete support for running FreeBSD userland on old NetBSD kernels
lacking the issetugid() and utrace() syscalls.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/getcwd.c2
-rw-r--r--lib/libc/gen/getlogin.c4
-rw-r--r--lib/libc/gen/getvfsbyname.c4
-rw-r--r--lib/libc/gen/glob.c5
4 files changed, 1 insertions, 14 deletions
diff --git a/lib/libc/gen/getcwd.c b/lib/libc/gen/getcwd.c
index 1ca0efc..6606af7 100644
--- a/lib/libc/gen/getcwd.c
+++ b/lib/libc/gen/getcwd.c
@@ -95,7 +95,6 @@ getcwd(pt, size)
return (NULL);
ept = pt + ptsize;
}
-#if !defined(__NETBSD_SYSCALLS)
if (__getcwd(pt, ept - pt) == 0) {
if (*pt != '/') {
bpt = pt;
@@ -108,7 +107,6 @@ getcwd(pt, size)
}
return (pt);
}
-#endif
bpt = ept - 1;
*bpt = '\0';
diff --git a/lib/libc/gen/getlogin.c b/lib/libc/gen/getlogin.c
index 664f208..92af0d1 100644
--- a/lib/libc/gen/getlogin.c
+++ b/lib/libc/gen/getlogin.c
@@ -64,11 +64,7 @@ getlogin_basic(int *status)
static char logname[MAXLOGNAME];
if (_logname_valid == 0) {
-#ifdef __NETBSD_SYSCALLS
- if (_getlogin(logname, sizeof(logname) - 1) < 0) {
-#else
if (_getlogin(logname, sizeof(logname)) < 0) {
-#endif
*status = errno;
return (NULL);
}
diff --git a/lib/libc/gen/getvfsbyname.c b/lib/libc/gen/getvfsbyname.c
index 3ab03f4..20f389d 100644
--- a/lib/libc/gen/getvfsbyname.c
+++ b/lib/libc/gen/getvfsbyname.c
@@ -53,9 +53,6 @@ getvfsbyname(fsname, vfcp)
const char *fsname;
struct xvfsconf *vfcp;
{
-#ifdef __NETBSD_SYSCALLS
- errno = ENOSYS;
-#else
struct xvfsconf *xvfsp;
size_t buflen;
int cnt, i;
@@ -79,6 +76,5 @@ getvfsbyname(fsname, vfcp)
}
free(xvfsp);
errno = ENOENT;
-#endif
return (-1);
}
diff --git a/lib/libc/gen/glob.c b/lib/libc/gen/glob.c
index 5e159dd..17f67f8 100644
--- a/lib/libc/gen/glob.c
+++ b/lib/libc/gen/glob.c
@@ -375,10 +375,7 @@ globtilde(pattern, patbuf, patbuf_len, pglob)
* we're not running setuid or setgid) and then trying
* the password file
*/
- if (
-#ifndef __NETBSD_SYSCALLS
- issetugid() != 0 ||
-#endif
+ if (issetugid() != 0 ||
(h = getenv("HOME")) == NULL) {
if (((h = getlogin()) != NULL &&
(pwd = getpwnam(h)) != NULL) ||
OpenPOWER on IntegriCloud