aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/arm
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-11-09 10:45:13 +0000
committerEd Schouten <ed@FreeBSD.org>2008-11-09 10:45:13 +0000
commita1b5a8955e828f049b425b7b2141999823059923 (patch)
tree54928970669608762abe861909dd03f729e065cb /lib/libc/arm
parent37f1755cab54b030c9d3ed4832c09320521451ba (diff)
downloadsrc-a1b5a8955e828f049b425b7b2141999823059923.tar.gz
src-a1b5a8955e828f049b425b7b2141999823059923.zip
Mark uname(), getdomainname() and setdomainname() with COMPAT_FREEBSD4.
Looking at our source code history, it seems the uname(), getdomainname() and setdomainname() system calls got deprecated somewhere after FreeBSD 1.1, but they have never been phased out properly. Because we don't have a COMPAT_FREEBSD1, just use COMPAT_FREEBSD4. Also fix the Linuxolator to build without the setdomainname() routine by just making it call userland_sysctl on kern.domainname. Also replace the setdomainname()'s implementation to use this approach, because we're duplicating code with sysctl_domainname(). I wasn't able to keep these three routines working in our COMPAT_FREEBSD32, because that would require yet another keyword for syscalls.master (COMPAT4+NOPROTO). Because this routine is probably unused already, this won't be a problem in practice. If it turns out to be a problem, we'll just restore this functionality. Reviewed by: rdivacky, kib
Notes
Notes: svn path=/head/; revision=184789
Diffstat (limited to 'lib/libc/arm')
-rw-r--r--lib/libc/arm/sys/Makefile.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/arm/sys/Makefile.inc b/lib/libc/arm/sys/Makefile.inc
index 6c38e7de02f1..1a58eae551d4 100644
--- a/lib/libc/arm/sys/Makefile.inc
+++ b/lib/libc/arm/sys/Makefile.inc
@@ -3,8 +3,7 @@
MDASM= Ovfork.S brk.S cerror.S pipe.S ptrace.S sbrk.S shmat.S sigreturn.S syscall.S
# Don't generate default code for these syscalls:
-NOASM= break.o exit.o getdomainname.o getlogin.o openbsd_poll.o \
- setdomainname.o sstk.o uname.o vfork.o yield.o
+NOASM= break.o exit.o getlogin.o openbsd_poll.o sstk.o vfork.o yield.o
PSEUDO= _exit.o _getlogin.o
.if !defined(WITHOUT_SYSCALL_COMPAT)