Initial revision
This commit is contained in:
parent
318e1bfec8
commit
4ffb6fe8bd
131
mach/vax4/libbsd4_2/LIST
Normal file
131
mach/vax4/libbsd4_2/LIST
Normal file
|
@ -0,0 +1,131 @@
|
|||
libmon_s.a
|
||||
accept.s
|
||||
access.s
|
||||
acct.s
|
||||
alarm.c
|
||||
bind.s
|
||||
brk.s
|
||||
cerror.s
|
||||
chdir.s
|
||||
chmod.s
|
||||
chown.s
|
||||
chroot.s
|
||||
close.s
|
||||
connect.s
|
||||
creat.s
|
||||
dup.s
|
||||
dup2.s
|
||||
execl.s
|
||||
execle.s
|
||||
exect.s
|
||||
execv.s
|
||||
execve.s
|
||||
exit.c
|
||||
_exit.s
|
||||
cleanup.c
|
||||
fchmod.s
|
||||
fchown.s
|
||||
fcntl.s
|
||||
flock.s
|
||||
fork.s
|
||||
fstat.s
|
||||
fsync.s
|
||||
ftime.c
|
||||
ftruncate.s
|
||||
getdtabsz.s
|
||||
getegid.s
|
||||
geteuid.s
|
||||
getgid.s
|
||||
getgroups.s
|
||||
gethostid.s
|
||||
gethostnam.s
|
||||
getitimer.s
|
||||
getpagesiz.s
|
||||
getpeernam.s
|
||||
getpgrp.s
|
||||
getpid.s
|
||||
getppid.s
|
||||
getrlimit.s
|
||||
getsocknam.s
|
||||
getsockopt.s
|
||||
getuid.s
|
||||
gtty.c
|
||||
kill.s
|
||||
killpg.s
|
||||
link.s
|
||||
listen.s
|
||||
lstat.s
|
||||
mkdir.s
|
||||
mknod.s
|
||||
mount.s
|
||||
nice.c
|
||||
getprio.s
|
||||
open.s
|
||||
pause.c
|
||||
pipe.s
|
||||
profil.s
|
||||
ptrace.s
|
||||
quota.s
|
||||
read.s
|
||||
readlink.s
|
||||
readv.s
|
||||
reboot.s
|
||||
recv.s
|
||||
recvfrom.s
|
||||
recvmsg.s
|
||||
rename.s
|
||||
rmdir.s
|
||||
select.s
|
||||
send.s
|
||||
sendmsg.s
|
||||
sendto.s
|
||||
setgid.c
|
||||
setgroups.s
|
||||
sethostid.s
|
||||
sethostnam.s
|
||||
setitimer.s
|
||||
setpgrp.s
|
||||
setprio.s
|
||||
setquota.s
|
||||
setregid.s
|
||||
setrlimit.s
|
||||
setsockopt.s
|
||||
setuid.c
|
||||
setreuid.s
|
||||
shutdown.s
|
||||
sigblock.s
|
||||
signal.c
|
||||
sigpause.s
|
||||
sigsetmask.s
|
||||
sigstack.s
|
||||
sigvec.s
|
||||
socket.s
|
||||
socketpair.s
|
||||
stat.s
|
||||
stime.c
|
||||
settimday.s
|
||||
stty.c
|
||||
ioctl.s
|
||||
swapon.s
|
||||
symlink.s
|
||||
sync.s
|
||||
syscall.s
|
||||
tell.c
|
||||
lseek.s
|
||||
time.c
|
||||
gettimday.s
|
||||
times.c
|
||||
getrusage.s
|
||||
truncate.s
|
||||
umask.s
|
||||
umount.s
|
||||
unlink.s
|
||||
utime.c
|
||||
utimes.s
|
||||
vadvise.s
|
||||
vfork.s
|
||||
vhangup.s
|
||||
wait.s
|
||||
wait3.s
|
||||
write.s
|
||||
writev.s
|
3
mach/vax4/libbsd4_2/_exit.s
Normal file
3
mach/vax4/libbsd4_2/_exit.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(__exit)
|
||||
SYSTEM(SYS_exit)
|
3
mach/vax4/libbsd4_2/accept.s
Normal file
3
mach/vax4/libbsd4_2/accept.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_accept)
|
||||
SYSTEM(SYS_accept)
|
3
mach/vax4/libbsd4_2/access.s
Normal file
3
mach/vax4/libbsd4_2/access.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_access)
|
||||
SYSTEM(SYS_access)
|
3
mach/vax4/libbsd4_2/acct.s
Normal file
3
mach/vax4/libbsd4_2/acct.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_acct)
|
||||
SYSTEM(SYS_acct)
|
13
mach/vax4/libbsd4_2/alarm.c
Normal file
13
mach/vax4/libbsd4_2/alarm.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
unsigned
|
||||
alarm(n)
|
||||
unsigned n;
|
||||
{
|
||||
struct { long l1,l2,l3,l4; } t1,t2;
|
||||
t1.l1 = 0;
|
||||
t1.l2 = 0;
|
||||
t1.l4 = 0;
|
||||
t1.l3 = n;
|
||||
if (setitimer(0,&t1,&t2) < 0) return -1;
|
||||
if (t2.l4) t2.l3++;
|
||||
return t2.l3;
|
||||
}
|
3
mach/vax4/libbsd4_2/bind.s
Normal file
3
mach/vax4/libbsd4_2/bind.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_bind)
|
||||
SYSTEM(SYS_bind)
|
29
mach/vax4/libbsd4_2/brk.s
Normal file
29
mach/vax4/libbsd4_2/brk.s
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include "syscall.h"
|
||||
.globl _end
|
||||
DEFINE(_brk)
|
||||
cmpl 4(ap),min
|
||||
bgeq ok
|
||||
movl min,4(ap)
|
||||
ok:
|
||||
chmk $17
|
||||
bcs err
|
||||
movl 4(ap),cur
|
||||
clrl r0
|
||||
ret
|
||||
err:
|
||||
jmp cerror
|
||||
|
||||
DEFINE(_sbrk)
|
||||
addl3 cur,4(ap),-(sp)
|
||||
bcs err
|
||||
pushl $1
|
||||
movl ap,r3
|
||||
movl sp,ap
|
||||
chmk $17
|
||||
bcs err
|
||||
movl cur,r0
|
||||
addl2 4(r3),cur
|
||||
ret
|
||||
.data
|
||||
min: .long _end
|
||||
cur: .long _end
|
5
mach/vax4/libbsd4_2/cerror.s
Normal file
5
mach/vax4/libbsd4_2/cerror.s
Normal file
|
@ -0,0 +1,5 @@
|
|||
.globl _errno
|
||||
cerror:
|
||||
movl r0,_errno
|
||||
mnegl $1,r0
|
||||
ret
|
3
mach/vax4/libbsd4_2/chdir.s
Normal file
3
mach/vax4/libbsd4_2/chdir.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_chdir)
|
||||
SYSTEM(SYS_chdir)
|
3
mach/vax4/libbsd4_2/chmod.s
Normal file
3
mach/vax4/libbsd4_2/chmod.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_chmod)
|
||||
SYSTEM(SYS_chmod)
|
3
mach/vax4/libbsd4_2/chown.s
Normal file
3
mach/vax4/libbsd4_2/chown.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_chwon)
|
||||
SYSTEM(SYS_chwon)
|
3
mach/vax4/libbsd4_2/chroot.s
Normal file
3
mach/vax4/libbsd4_2/chroot.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_chroot)
|
||||
SYSTEM(SYS_chroot)
|
1
mach/vax4/libbsd4_2/cleanup.c
Normal file
1
mach/vax4/libbsd4_2/cleanup.c
Normal file
|
@ -0,0 +1 @@
|
|||
_cleanup() { }
|
3
mach/vax4/libbsd4_2/close.s
Normal file
3
mach/vax4/libbsd4_2/close.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_close)
|
||||
SYSTEM(SYS_close)
|
3
mach/vax4/libbsd4_2/connect.s
Normal file
3
mach/vax4/libbsd4_2/connect.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_connect)
|
||||
SYSTEM(SYS_connect)
|
3
mach/vax4/libbsd4_2/creat.s
Normal file
3
mach/vax4/libbsd4_2/creat.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_creat)
|
||||
SYSTEM(SYS_creat)
|
3
mach/vax4/libbsd4_2/dup.s
Normal file
3
mach/vax4/libbsd4_2/dup.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_dup)
|
||||
SYSTEM(SYS_dup)
|
3
mach/vax4/libbsd4_2/dup2.s
Normal file
3
mach/vax4/libbsd4_2/dup2.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_dup2)
|
||||
SYSTEM(SYS_dup2)
|
8
mach/vax4/libbsd4_2/execl.s
Normal file
8
mach/vax4/libbsd4_2/execl.s
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "syscall.h"
|
||||
.globl _environ
|
||||
DEFINE(_execl)
|
||||
pushl _environ
|
||||
pushab 8(ap)
|
||||
pushl 4(ap)
|
||||
calls $3,_execve
|
||||
ret
|
8
mach/vax4/libbsd4_2/execle.s
Normal file
8
mach/vax4/libbsd4_2/execle.s
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_execle)
|
||||
movl (ap),r0
|
||||
pushl (ap)[r0]
|
||||
pushab 8(ap)
|
||||
pushl 4(ap)
|
||||
calls $3,_execve
|
||||
ret
|
5
mach/vax4/libbsd4_2/exect.s
Normal file
5
mach/vax4/libbsd4_2/exect.s
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_exect)
|
||||
bispsw $16
|
||||
chmk $SYS_execve
|
||||
jmp cerror
|
8
mach/vax4/libbsd4_2/execv.s
Normal file
8
mach/vax4/libbsd4_2/execv.s
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "syscall.h"
|
||||
.globl _environ
|
||||
DEFINE(_execv)
|
||||
pushl _environ
|
||||
pushl 8(ap)
|
||||
pushl 4(ap)
|
||||
calls $3,_execve
|
||||
ret
|
3
mach/vax4/libbsd4_2/execve.s
Normal file
3
mach/vax4/libbsd4_2/execve.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_execve)
|
||||
SYSTEM(SYS_execve)
|
5
mach/vax4/libbsd4_2/exit.c
Normal file
5
mach/vax4/libbsd4_2/exit.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
exit(n)
|
||||
{
|
||||
_cleanup();
|
||||
_exit(n);
|
||||
}
|
3
mach/vax4/libbsd4_2/fchmod.s
Normal file
3
mach/vax4/libbsd4_2/fchmod.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_fchmod)
|
||||
SYSTEM(SYS_fchmod)
|
3
mach/vax4/libbsd4_2/fchown.s
Normal file
3
mach/vax4/libbsd4_2/fchown.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_fchown)
|
||||
SYSTEM(SYS_fchown)
|
3
mach/vax4/libbsd4_2/fcntl.s
Normal file
3
mach/vax4/libbsd4_2/fcntl.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_fcntl)
|
||||
SYSTEM(SYS_fcntl)
|
3
mach/vax4/libbsd4_2/flock.s
Normal file
3
mach/vax4/libbsd4_2/flock.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_flock)
|
||||
SYSTEM(SYS_flock)
|
10
mach/vax4/libbsd4_2/fork.s
Normal file
10
mach/vax4/libbsd4_2/fork.s
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_fork)
|
||||
chmk $SYS_fork
|
||||
bcs err
|
||||
jlbc r1,parent
|
||||
clrl r0
|
||||
parent:
|
||||
ret
|
||||
err:
|
||||
jmp cerror
|
3
mach/vax4/libbsd4_2/fstat.s
Normal file
3
mach/vax4/libbsd4_2/fstat.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_fstat)
|
||||
SYSTEM(SYS_fstat)
|
3
mach/vax4/libbsd4_2/fsync.s
Normal file
3
mach/vax4/libbsd4_2/fsync.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_fsync)
|
||||
SYSTEM(SYS_fsync)
|
15
mach/vax4/libbsd4_2/ftime.c
Normal file
15
mach/vax4/libbsd4_2/ftime.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <sys/types.h>
|
||||
|
||||
ftime(p)
|
||||
struct { time_t time; unsigned short millitm;
|
||||
short timezone; short dstflag; } *p;
|
||||
{
|
||||
struct { long l1,l2; } t1,t2;
|
||||
|
||||
if (gettimeofday(&t1,&t2) < 0) return -1;
|
||||
p->time = t1.l1;
|
||||
p->millitm = t1.l2/1000;
|
||||
p->dstflag = t2.l2;
|
||||
p->timezone = t2.l1;
|
||||
return 0;
|
||||
}
|
3
mach/vax4/libbsd4_2/ftruncate.s
Normal file
3
mach/vax4/libbsd4_2/ftruncate.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_ftruncate)
|
||||
SYSTEM(SYS_ftruncate)
|
3
mach/vax4/libbsd4_2/getdtabsz.s
Normal file
3
mach/vax4/libbsd4_2/getdtabsz.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getdtablesize)
|
||||
SYSTEM(SYS_getdtablesize)
|
5
mach/vax4/libbsd4_2/getegid.s
Normal file
5
mach/vax4/libbsd4_2/getegid.s
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getegid)
|
||||
SYSNORET(SYS_getgid)
|
||||
movl r1,r0
|
||||
ret
|
5
mach/vax4/libbsd4_2/geteuid.s
Normal file
5
mach/vax4/libbsd4_2/geteuid.s
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_geteuid)
|
||||
SYSNORET(SYS_getuid)
|
||||
movl r1,r0
|
||||
ret
|
3
mach/vax4/libbsd4_2/getgid.s
Normal file
3
mach/vax4/libbsd4_2/getgid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getgid)
|
||||
SYSTEM(SYS_getgid)
|
3
mach/vax4/libbsd4_2/getgroups.s
Normal file
3
mach/vax4/libbsd4_2/getgroups.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getgroups)
|
||||
SYSTEM(SYS_getgroups)
|
3
mach/vax4/libbsd4_2/gethostid.s
Normal file
3
mach/vax4/libbsd4_2/gethostid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_gethostid)
|
||||
SYSTEM(SYS_gethostid)
|
3
mach/vax4/libbsd4_2/gethostnam.s
Normal file
3
mach/vax4/libbsd4_2/gethostnam.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_gethostname)
|
||||
SYSTEM(SYS_gethostname)
|
3
mach/vax4/libbsd4_2/getitimer.s
Normal file
3
mach/vax4/libbsd4_2/getitimer.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getitimer)
|
||||
SYSTEM(SYS_getitimer)
|
3
mach/vax4/libbsd4_2/getpagesiz.s
Normal file
3
mach/vax4/libbsd4_2/getpagesiz.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getpagesize)
|
||||
SYSTEM(SYS_getpagesize)
|
3
mach/vax4/libbsd4_2/getpeernam.s
Normal file
3
mach/vax4/libbsd4_2/getpeernam.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getpeername)
|
||||
SYSTEM(SYS_getpeername)
|
3
mach/vax4/libbsd4_2/getpgrp.s
Normal file
3
mach/vax4/libbsd4_2/getpgrp.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getpgrp)
|
||||
SYSTEM(SYS_getpgrp)
|
3
mach/vax4/libbsd4_2/getpid.s
Normal file
3
mach/vax4/libbsd4_2/getpid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getpid)
|
||||
SYSTEM(SYS_getpid)
|
5
mach/vax4/libbsd4_2/getppid.s
Normal file
5
mach/vax4/libbsd4_2/getppid.s
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getppid)
|
||||
SYSNORET(SYS_getpid)
|
||||
movl r1,r0
|
||||
ret
|
3
mach/vax4/libbsd4_2/getprio.s
Normal file
3
mach/vax4/libbsd4_2/getprio.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getpriority)
|
||||
SYSTEM(SYS_getpriority)
|
3
mach/vax4/libbsd4_2/getrlimit.s
Normal file
3
mach/vax4/libbsd4_2/getrlimit.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getrlimit)
|
||||
SYSTEM(SYS_getrlimit)
|
3
mach/vax4/libbsd4_2/getrusage.s
Normal file
3
mach/vax4/libbsd4_2/getrusage.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getrusage)
|
||||
SYSTEM(SYS_getrusage)
|
3
mach/vax4/libbsd4_2/getsocknam.s
Normal file
3
mach/vax4/libbsd4_2/getsocknam.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getsockname)
|
||||
SYSTEM(SYS_getsockname)
|
3
mach/vax4/libbsd4_2/getsockopt.s
Normal file
3
mach/vax4/libbsd4_2/getsockopt.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getsockopt)
|
||||
SYSTEM(SYS_getsockopt)
|
3
mach/vax4/libbsd4_2/gettimday.s
Normal file
3
mach/vax4/libbsd4_2/gettimday.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_gettimeofday)
|
||||
SYSTEM(SYS_gettimeofday)
|
3
mach/vax4/libbsd4_2/getuid.s
Normal file
3
mach/vax4/libbsd4_2/getuid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_getuid)
|
||||
SYSTEM(SYS_getuid)
|
7
mach/vax4/libbsd4_2/gtty.c
Normal file
7
mach/vax4/libbsd4_2/gtty.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include <sgtty.h>
|
||||
int gtty(fildes,argp)
|
||||
int fildes ;
|
||||
struct sgttyb *argp ;
|
||||
{
|
||||
return ioctl(fildes,TIOCGETP,argp) ;
|
||||
}
|
3
mach/vax4/libbsd4_2/ioctl.s
Normal file
3
mach/vax4/libbsd4_2/ioctl.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_ioctl)
|
||||
SYSTEM(SYS_ioctl)
|
3
mach/vax4/libbsd4_2/kill.s
Normal file
3
mach/vax4/libbsd4_2/kill.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_kill)
|
||||
SYSTEM(SYS_kill)
|
3
mach/vax4/libbsd4_2/killpg.s
Normal file
3
mach/vax4/libbsd4_2/killpg.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_killpg)
|
||||
SYSTEM(SYS_killpg)
|
3
mach/vax4/libbsd4_2/link.s
Normal file
3
mach/vax4/libbsd4_2/link.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_link)
|
||||
SYSTEM(SYS_link)
|
3
mach/vax4/libbsd4_2/listen.s
Normal file
3
mach/vax4/libbsd4_2/listen.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_listen)
|
||||
SYSTEM(SYS_listen)
|
3
mach/vax4/libbsd4_2/lseek.s
Normal file
3
mach/vax4/libbsd4_2/lseek.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_lseek)
|
||||
SYSTEM(SYS_lseek)
|
3
mach/vax4/libbsd4_2/lstat.s
Normal file
3
mach/vax4/libbsd4_2/lstat.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_lstat)
|
||||
SYSTEM(SYS_lstat)
|
3
mach/vax4/libbsd4_2/mkdir.s
Normal file
3
mach/vax4/libbsd4_2/mkdir.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_mkdir)
|
||||
SYSTEM(SYS_mkdir)
|
3
mach/vax4/libbsd4_2/mknod.s
Normal file
3
mach/vax4/libbsd4_2/mknod.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_mknod)
|
||||
SYSTEM(SYS_mknod)
|
5
mach/vax4/libbsd4_2/mount.s
Normal file
5
mach/vax4/libbsd4_2/mount.s
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_mount)
|
||||
SYSNORET(SYS_mount)
|
||||
clrl r0
|
||||
ret
|
13
mach/vax4/libbsd4_2/nice.c
Normal file
13
mach/vax4/libbsd4_2/nice.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
nice(incr)
|
||||
{
|
||||
extern int errno;
|
||||
int sav = errno;
|
||||
int prio;
|
||||
|
||||
errno = 0;
|
||||
prio = getpriority(0,0);
|
||||
if (prio == -1 && errno) return -1;
|
||||
if (setpriority(0,0,prio+incr) < 0) return -1;
|
||||
errno = sav;
|
||||
return 0;
|
||||
}
|
3
mach/vax4/libbsd4_2/open.s
Normal file
3
mach/vax4/libbsd4_2/open.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_open)
|
||||
SYSTEM(SYS_open)
|
3
mach/vax4/libbsd4_2/pause.c
Normal file
3
mach/vax4/libbsd4_2/pause.c
Normal file
|
@ -0,0 +1,3 @@
|
|||
pause() {
|
||||
sigpause(sigblock());
|
||||
}
|
8
mach/vax4/libbsd4_2/pipe.s
Normal file
8
mach/vax4/libbsd4_2/pipe.s
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_pipe)
|
||||
SYSNORET(SYS_pipe)
|
||||
movl 4(ap),r2
|
||||
movl r0,(r2)+
|
||||
movl r1,(r2)
|
||||
clrl r0
|
||||
ret
|
3
mach/vax4/libbsd4_2/profil.s
Normal file
3
mach/vax4/libbsd4_2/profil.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_profil)
|
||||
SYSTEM(SYS_profil)
|
4
mach/vax4/libbsd4_2/ptrace.s
Normal file
4
mach/vax4/libbsd4_2/ptrace.s
Normal file
|
@ -0,0 +1,4 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_ptrace)
|
||||
clrl _errno
|
||||
SYSTEM(SYS_ptrace)
|
3
mach/vax4/libbsd4_2/quota.s
Normal file
3
mach/vax4/libbsd4_2/quota.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_quota)
|
||||
SYSTEM(SYS_quota)
|
3
mach/vax4/libbsd4_2/read.s
Normal file
3
mach/vax4/libbsd4_2/read.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_read)
|
||||
SYSTEM(SYS_read)
|
3
mach/vax4/libbsd4_2/readlink.s
Normal file
3
mach/vax4/libbsd4_2/readlink.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_readlink)
|
||||
SYSTEM(SYS_readlink)
|
3
mach/vax4/libbsd4_2/readv.s
Normal file
3
mach/vax4/libbsd4_2/readv.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_readv)
|
||||
SYSTEM(SYS_readv)
|
4
mach/vax4/libbsd4_2/reboot.s
Normal file
4
mach/vax4/libbsd4_2/reboot.s
Normal file
|
@ -0,0 +1,4 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_reboot)
|
||||
SYSNORET(SYS_reboot)
|
||||
halt
|
3
mach/vax4/libbsd4_2/recv.s
Normal file
3
mach/vax4/libbsd4_2/recv.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_recv)
|
||||
SYSTEM(SYS_recv)
|
3
mach/vax4/libbsd4_2/recvfrom.s
Normal file
3
mach/vax4/libbsd4_2/recvfrom.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_recvfrom)
|
||||
SYSTEM(SYS_recvfrom)
|
3
mach/vax4/libbsd4_2/recvmsg.s
Normal file
3
mach/vax4/libbsd4_2/recvmsg.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_recvmsg)
|
||||
SYSTEM(SYS_recvmsg)
|
3
mach/vax4/libbsd4_2/rename.s
Normal file
3
mach/vax4/libbsd4_2/rename.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_rename)
|
||||
SYSTEM(SYS_rename)
|
3
mach/vax4/libbsd4_2/rmdir.s
Normal file
3
mach/vax4/libbsd4_2/rmdir.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_rmdir)
|
||||
SYSTEM(SYS_rmdir)
|
3
mach/vax4/libbsd4_2/select.s
Normal file
3
mach/vax4/libbsd4_2/select.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_select)
|
||||
SYSTEM(SYS_select)
|
3
mach/vax4/libbsd4_2/send.s
Normal file
3
mach/vax4/libbsd4_2/send.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_send)
|
||||
SYSTEM(SYS_send)
|
3
mach/vax4/libbsd4_2/sendmsg.s
Normal file
3
mach/vax4/libbsd4_2/sendmsg.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_sendmsg)
|
||||
SYSTEM(SYS_sendmsg)
|
3
mach/vax4/libbsd4_2/sendto.s
Normal file
3
mach/vax4/libbsd4_2/sendto.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_sendto)
|
||||
SYSTEM(SYS_sendto)
|
4
mach/vax4/libbsd4_2/setgid.c
Normal file
4
mach/vax4/libbsd4_2/setgid.c
Normal file
|
@ -0,0 +1,4 @@
|
|||
setgid(u)
|
||||
{
|
||||
return setregid(u,u);
|
||||
}
|
3
mach/vax4/libbsd4_2/setgroups.s
Normal file
3
mach/vax4/libbsd4_2/setgroups.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_setgroups)
|
||||
SYSTEM(SYS_setgroups)
|
3
mach/vax4/libbsd4_2/sethostid.s
Normal file
3
mach/vax4/libbsd4_2/sethostid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_sethostid)
|
||||
SYSTEM(SYS_sethostid)
|
3
mach/vax4/libbsd4_2/sethostnam.s
Normal file
3
mach/vax4/libbsd4_2/sethostnam.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_sethostname)
|
||||
SYSTEM(SYS_sethostname)
|
3
mach/vax4/libbsd4_2/setitimer.s
Normal file
3
mach/vax4/libbsd4_2/setitimer.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_setitimer)
|
||||
SYSTEM(SYS_setitimer)
|
3
mach/vax4/libbsd4_2/setpgrp.s
Normal file
3
mach/vax4/libbsd4_2/setpgrp.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_setpgrp)
|
||||
SYSTEM(SYS_setpgrp)
|
3
mach/vax4/libbsd4_2/setprio.s
Normal file
3
mach/vax4/libbsd4_2/setprio.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_setpriority)
|
||||
SYSTEM(SYS_setpriority)
|
3
mach/vax4/libbsd4_2/setquota.s
Normal file
3
mach/vax4/libbsd4_2/setquota.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_setquota)
|
||||
SYSTEM(SYS_setquota)
|
3
mach/vax4/libbsd4_2/setregid.s
Normal file
3
mach/vax4/libbsd4_2/setregid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_setregid)
|
||||
SYSTEM(SYS_setregid)
|
3
mach/vax4/libbsd4_2/setreuid.s
Normal file
3
mach/vax4/libbsd4_2/setreuid.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_setreuid)
|
||||
SYSTEM(SYS_setreuid)
|
3
mach/vax4/libbsd4_2/setrlimit.s
Normal file
3
mach/vax4/libbsd4_2/setrlimit.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_setrlimit)
|
||||
SYSTEM(SYS_setrlimit)
|
3
mach/vax4/libbsd4_2/setsockopt.s
Normal file
3
mach/vax4/libbsd4_2/setsockopt.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_setsockopt)
|
||||
SYSTEM(SYS_setsockopt)
|
3
mach/vax4/libbsd4_2/settimday.s
Normal file
3
mach/vax4/libbsd4_2/settimday.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_settimeofday)
|
||||
SYSTEM(SYS_settimeofday)
|
4
mach/vax4/libbsd4_2/setuid.c
Normal file
4
mach/vax4/libbsd4_2/setuid.c
Normal file
|
@ -0,0 +1,4 @@
|
|||
setuid(u)
|
||||
{
|
||||
return setreuid(u,u);
|
||||
}
|
3
mach/vax4/libbsd4_2/shutdown.s
Normal file
3
mach/vax4/libbsd4_2/shutdown.s
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "syscall.h"
|
||||
DEFINE(_shutdown)
|
||||
SYSTEM(SYS_shutdown)
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue