summaryrefslogtreecommitdiffstats
path: root/lib/libc/alpha/sys
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2001-01-29 03:23:46 +0000
committerdeischen <deischen@FreeBSD.org>2001-01-29 03:23:46 +0000
commitca55abf319c2f815cb2c84655b25482829c1646d (patch)
treeffdfffc17ec6466cc6f96dfd93691c69a11f422c /lib/libc/alpha/sys
parent99d951b8404ce6f969ceda268a00bfe5f17d43e2 (diff)
downloadFreeBSD-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.inc5
-rw-r--r--lib/libc/alpha/sys/Ovfork.S6
-rw-r--r--lib/libc/alpha/sys/fork.S6
-rw-r--r--lib/libc/alpha/sys/pipe.S6
-rw-r--r--lib/libc/alpha/sys/sigreturn.S4
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)
OpenPOWER on IntegriCloud