diff options
author | deischen <deischen@FreeBSD.org> | 2001-01-29 03:23:46 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2001-01-29 03:23:46 +0000 |
commit | ca55abf319c2f815cb2c84655b25482829c1646d (patch) | |
tree | ffdfffc17ec6466cc6f96dfd93691c69a11f422c /lib/libc/alpha/sys | |
parent | 99d951b8404ce6f969ceda268a00bfe5f17d43e2 (diff) | |
download | FreeBSD-src-ca55abf319c2f815cb2c84655b25482829c1646d.zip FreeBSD-src-ca55abf319c2f815cb2c84655b25482829c1646d.tar.gz |
Clean up syscall generation in libc by removing HIDDEN_SYSCALLS
and treating (almost) all system calls the same way:
__sys_foo - actual syscall
foo, _foo - weak definitions to __sys_foo
Change PSEUDO syscalls (currently only _exit and _getlogin) to
be __sys_foo (T) and _foo (W).
Add $FreeBSD$ to a few files to satisfy commitprep.
Suggested by: bde
Diffstat (limited to 'lib/libc/alpha/sys')
-rw-r--r-- | lib/libc/alpha/sys/Makefile.inc | 5 | ||||
-rw-r--r-- | lib/libc/alpha/sys/Ovfork.S | 6 | ||||
-rw-r--r-- | lib/libc/alpha/sys/fork.S | 6 | ||||
-rw-r--r-- | lib/libc/alpha/sys/pipe.S | 6 | ||||
-rw-r--r-- | lib/libc/alpha/sys/sigreturn.S | 4 |
5 files changed, 16 insertions, 11 deletions
diff --git a/lib/libc/alpha/sys/Makefile.inc b/lib/libc/alpha/sys/Makefile.inc index b034900..f6a1490 100644 --- a/lib/libc/alpha/sys/Makefile.inc +++ b/lib/libc/alpha/sys/Makefile.inc @@ -10,8 +10,5 @@ NOASM= __semctl.o break.o exit.o ftruncate.o getdomainname.o getlogin.o \ semop.o setdomainname.o shmat.o shmctl.o shmdt.o shmget.o sstk.o \ truncate.o uname.o vfork.o yield.o -PSEUDO= _getlogin.o +PSEUDO= _getlogin.o _exit.o -# Pseudo syscalls that are renamed as __sys_{pseudo} so that libc_r -# can override them with replacements. -PSEUDOR= _exit.o diff --git a/lib/libc/alpha/sys/Ovfork.S b/lib/libc/alpha/sys/Ovfork.S index d8dd3e8..808a5a7 100644 --- a/lib/libc/alpha/sys/Ovfork.S +++ b/lib/libc/alpha/sys/Ovfork.S @@ -25,11 +25,13 @@ * * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. + * + * $FreeBSD$ */ #include "SYS.h" -PSYSCALL(vfork) +SYSCALL(vfork) cmovne a4, zero, v0 /* a4 (rv[1]) != 0, child */ RET -PEND(vfork) +END(vfork) diff --git a/lib/libc/alpha/sys/fork.S b/lib/libc/alpha/sys/fork.S index a8fa754..295e588 100644 --- a/lib/libc/alpha/sys/fork.S +++ b/lib/libc/alpha/sys/fork.S @@ -25,11 +25,13 @@ * * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. + * + * $FreeBSD$ */ #include "SYS.h" -PSYSCALL(fork) +SYSCALL(fork) cmovne a4, zero, v0 /* a4 (rv[1]) != 0, child */ RET -PEND(fork) +END(fork) diff --git a/lib/libc/alpha/sys/pipe.S b/lib/libc/alpha/sys/pipe.S index 76f44c2..188bfd4 100644 --- a/lib/libc/alpha/sys/pipe.S +++ b/lib/libc/alpha/sys/pipe.S @@ -25,13 +25,15 @@ * * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. + * + * $FreeBSD$ */ #include "SYS.h" -PSYSCALL(pipe) +SYSCALL(pipe) stl v0, 0(a0) stl a4, 4(a0) mov zero, v0 RET -PEND(pipe) +END(pipe) diff --git a/lib/libc/alpha/sys/sigreturn.S b/lib/libc/alpha/sys/sigreturn.S index a186be6..0931f50 100644 --- a/lib/libc/alpha/sys/sigreturn.S +++ b/lib/libc/alpha/sys/sigreturn.S @@ -25,6 +25,8 @@ * * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. + * + * $FreeBSD$ */ #include "SYS.h" @@ -35,4 +37,4 @@ * (XXX PROFILING) */ -PRSYSCALL(sigreturn) +RSYSCALL(sigreturn) |