aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-12-05 17:41:15 +0000
committerAndreas Jaeger <aj@suse.de>2000-12-05 17:41:15 +0000
commit9fbbbe69dcaef8978ad6d7f49fada1963ff1cc07 (patch)
treef74b597c5f08c5866d3c899417349ac981f185bc
parent48896b9dba83e158691073b248cbcdd68e0752f6 (diff)
downloadglibc-9fbbbe69dcaef8978ad6d7f49fada1963ff1cc07.tar.xz
glibc-9fbbbe69dcaef8978ad6d7f49fada1963ff1cc07.zip
Update.
* sysdeps/unix/sysv/linux/mips/sysdep.h: New file. * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed. * sysdeps/unix/mips/sysdep.h: Use SYS_ify. Patches by "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>.
-rw-r--r--ChangeLog7
-rw-r--r--sysdeps/unix/mips/sysdep.h4
-rw-r--r--sysdeps/unix/sysv/linux/mips/sys/syscall.h1226
-rw-r--r--sysdeps/unix/sysv/linux/mips/sysdep.h36
4 files changed, 45 insertions, 1228 deletions
diff --git a/ChangeLog b/ChangeLog
index 11d373136d..fd57cdf432 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2000-12-05 Andreas Jaeger <aj@suse.de>
+ * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
+
+ * sysdeps/unix/sysv/linux/mips/sys/syscall.h: Removed.
+
+ * sysdeps/unix/mips/sysdep.h: Use SYS_ify.
+ Patches by "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>.
+
* elf/dl-misc.c (_dl_sysdep_read_whole_file): Mark as
internal_function.
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
diff --git a/sysdeps/unix/mips/sysdep.h b/sysdeps/unix/mips/sysdep.h
index 2ba1dea897..a5a3e5589e 100644
--- a/sysdeps/unix/mips/sysdep.h
+++ b/sysdeps/unix/mips/sysdep.h
@@ -40,7 +40,7 @@
ENTRY(name) \
.set noreorder; \
.cpload t9; \
- li v0, SYS_##syscall_name; \
+ li v0, SYS_ify(syscall_name); \
syscall; \
.set reorder; \
bne a3, zero, 99b; \
@@ -52,7 +52,7 @@ syse1:
99: j __syscall_error; \
ENTRY(name) \
.set noreorder; \
- li v0, SYS_##syscall_name; \
+ li v0, SYS_ify(syscall_name); \
syscall; \
.set reorder; \
bne a3, zero, 99b; \
diff --git a/sysdeps/unix/sysv/linux/mips/sys/syscall.h b/sysdeps/unix/sysv/linux/mips/sys/syscall.h
deleted file mode 100644
index fbfe128ec5..0000000000
--- a/sysdeps/unix/sysv/linux/mips/sys/syscall.h
+++ /dev/null
@@ -1,1226 +0,0 @@
-/* Copyright (C) 1995,1996,1997,1998,2000 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with the GNU C Library; see the file COPYING.LIB. If not,
- write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-#ifndef _SYSCALL_H
-#define _SYSCALL_H 1
-
-/* This file should list the numbers of the system the system knows.
- But instead of duplicating this we use the information available
- from the kernel sources. */
-#include <asm/unistd.h>
-
-/* The Linux kernel header file defines macros `__NR_<name>', but some
- programs expect the traditional form `SYS_<name>'. So in building libc
- we scan the kernel's list and produce <bits/syscall.h> with macros for
- all the `SYS_' names. On MIPS the program which generates <bits/syscalls.h>
- on the other ports fails, so do this manually. */
-
-
-/*
- * SVR4 syscalls are in the range from 1 to 999
- */
-#define SYS_SVR4 0
-#define SYS_SVR4_syscall (SYS_SVR4 + 0)
-#define SYS_SVR4_exit (SYS_SVR4 + 1)
-#define SYS_SVR4_fork (SYS_SVR4 + 2)
-#define SYS_SVR4_read (SYS_SVR4 + 3)
-#define SYS_SVR4_write (SYS_SVR4 + 4)
-#define SYS_SVR4_open (SYS_SVR4 + 5)
-#define SYS_SVR4_close (SYS_SVR4 + 6)
-#define SYS_SVR4_wait (SYS_SVR4 + 7)
-#define SYS_SVR4_creat (SYS_SVR4 + 8)
-#define SYS_SVR4_link (SYS_SVR4 + 9)
-#define SYS_SVR4_unlink (SYS_SVR4 + 10)
-#define SYS_SVR4_exec (SYS_SVR4 + 11)
-#define SYS_SVR4_chdir (SYS_SVR4 + 12)
-#define SYS_SVR4_gtime (SYS_SVR4 + 13)
-#define SYS_SVR4_mknod (SYS_SVR4 + 14)
-#define SYS_SVR4_chmod (SYS_SVR4 + 15)
-#define SYS_SVR4_chown (SYS_SVR4 + 16)
-#define SYS_SVR4_sbreak (SYS_SVR4 + 17)
-#define SYS_SVR4_stat (SYS_SVR4 + 18)
-#define SYS_SVR4_lseek (SYS_SVR4 + 19)
-#define SYS_SVR4_getpid (SYS_SVR4 + 20)
-#define SYS_SVR4_mount (SYS_SVR4 + 21)
-#define SYS_SVR4_umount (SYS_SVR4 + 22)
-#define SYS_SVR4_setuid (SYS_SVR4 + 23)
-#define SYS_SVR4_getuid (SYS_SVR4 + 24)
-#define SYS_SVR4_stime (SYS_SVR4 + 25)
-#define SYS_SVR4_ptrace (SYS_SVR4 + 26)
-#define SYS_SVR4_alarm (SYS_SVR4 + 27)
-#define SYS_SVR4_fstat (SYS_SVR4 + 28)
-#define SYS_SVR4_pause (SYS_SVR4 + 29)
-#define SYS_SVR4_utime (SYS_SVR4 + 30)
-#define SYS_SVR4_stty (SYS_SVR4 + 31)
-#define SYS_SVR4_gtty (SYS_SVR4 + 32)
-#define SYS_SVR4_access (SYS_SVR4 + 33)
-#define SYS_SVR4_nice (SYS_SVR4 + 34)
-#define SYS_SVR4_statfs (SYS_SVR4 + 35)
-#define SYS_SVR4_sync (SYS_SVR4 + 36)
-#define SYS_SVR4_kill (SYS_SVR4 + 37)
-#define SYS_SVR4_fstatfs (SYS_SVR4 + 38)
-#define SYS_SVR4_setpgrp (SYS_SVR4 + 39)
-#define SYS_SVR4_cxenix (SYS_SVR4 + 40)
-#define SYS_SVR4_dup (SYS_SVR4 + 41)
-#define SYS_SVR4_pipe (SYS_SVR4 + 42)
-#define SYS_SVR4_times (SYS_SVR4 + 43)
-#define SYS_SVR4_profil (SYS_SVR4 + 44)
-#define SYS_SVR4_plock (SYS_SVR4 + 45)
-#define SYS_SVR4_setgid (SYS_SVR4 + 46)
-#define SYS_SVR4_getgid (SYS_SVR4 + 47)
-#define SYS_SVR4_sig (SYS_SVR4 + 48)
-#define SYS_SVR4_msgsys (SYS_SVR4 + 49)
-#define SYS_SVR4_sysmips (SYS_SVR4 + 50)
-#define SYS_SVR4_sysacct (SYS_SVR4 + 51)
-#define SYS_SVR4_shmsys (SYS_SVR4 + 52)
-#define SYS_SVR4_semsys (SYS_SVR4 + 53)
-#define SYS_SVR4_ioctl (SYS_SVR4 + 54)
-#define SYS_SVR4_uadmin (SYS_SVR4 + 55)
-#define SYS_SVR4_exch (SYS_SVR4 + 56)
-#define SYS_SVR4_utssys (SYS_SVR4 + 57)
-#define SYS_SVR4_fsync (SYS_SVR4 + 58)
-#define SYS_SVR4_exece (SYS_SVR4 + 59)
-#define SYS_SVR4_umask (SYS_SVR4 + 60)
-#define SYS_SVR4_chroot (SYS_SVR4 + 61)
-#define SYS_SVR4_fcntl (SYS_SVR4 + 62)
-#define SYS_SVR4_ulimit (SYS_SVR4 + 63)
-#define SYS_SVR4_reserved1 (SYS_SVR4 + 64)
-#define SYS_SVR4_reserved2 (SYS_SVR4 + 65)
-#define SYS_SVR4_reserved3 (SYS_SVR4 + 66)
-#define SYS_SVR4_reserved4 (SYS_SVR4 + 67)
-#define SYS_SVR4_reserved5 (SYS_SVR4 + 68)
-#define SYS_SVR4_reserved6 (SYS_SVR4 + 69)
-#define SYS_SVR4_advfs (SYS_SVR4 + 70)
-#define SYS_SVR4_unadvfs (SYS_SVR4 + 71)
-#define SYS_SVR4_unused1 (SYS_SVR4 + 72)
-#define SYS_SVR4_unused2 (SYS_SVR4 + 73)
-#define SYS_SVR4_rfstart (SYS_SVR4 + 74)
-#define SYS_SVR4_unused3 (SYS_SVR4 + 75)
-#define SYS_SVR4_rdebug (SYS_SVR4 + 76)
-#define SYS_SVR4_rfstop (SYS_SVR4 + 77)
-#define SYS_SVR4_rfsys (SYS_SVR4 + 78)
-#define SYS_SVR4_rmdir (SYS_SVR4 + 79)
-#define SYS_SVR4_mkdir (SYS_SVR4 + 80)
-#define SYS_SVR4_getdents (SYS_SVR4 + 81)
-#define SYS_SVR4_libattach (SYS_SVR4 + 82)
-#define SYS_SVR4_libdetach (SYS_SVR4 + 83)
-#define SYS_SVR4_sysfs (SYS_SVR4 + 84)
-#define SYS_SVR4_getmsg (SYS_SVR4 + 85)
-#define SYS_SVR4_putmsg (SYS_SVR4 + 86)
-#define SYS_SVR4_poll (SYS_SVR4 + 87)
-#define SYS_SVR4_lstat (SYS_SVR4 + 88)
-#define SYS_SVR4_symlink (SYS_SVR4 + 89)
-#define SYS_SVR4_readlink (SYS_SVR4 + 90)
-#define SYS_SVR4_setgroups (SYS_SVR4 + 91)
-#define SYS_SVR4_getgroups (SYS_SVR4 + 92)
-#define SYS_SVR4_fchmod (SYS_SVR4 + 93)
-#define SYS_SVR4_fchown (SYS_SVR4 + 94)
-#define SYS_SVR4_sigprocmask (SYS_SVR4 + 95)
-#define SYS_SVR4_sigsuspend (SYS_SVR4 + 96)
-#define SYS_SVR4_sigaltstack (SYS_SVR4 + 97)
-#define SYS_SVR4_sigaction (SYS_SVR4 + 98)
-#define SYS_SVR4_sigpending (SYS_SVR4 + 99)
-#define SYS_SVR4_setcontext (SYS_SVR4 + 100)
-#define SYS_SVR4_evsys (SYS_SVR4 + 101)
-#define SYS_SVR4_evtrapret (SYS_SVR4 + 102)
-#define SYS_SVR4_statvfs (SYS_SVR4 + 103)
-#define SYS_SVR4_fstatvfs (SYS_SVR4 + 104)
-#define SYS_SVR4_reserved7 (SYS_SVR4 + 105)
-#define SYS_SVR4_nfssys (SYS_SVR4 + 106)
-#define SYS_SVR4_waitid (SYS_SVR4 + 107)
-#define SYS_SVR4_sigsendset (SYS_SVR4 + 108)
-#define SYS_SVR4_hrtsys (SYS_SVR4 + 109)
-#define SYS_SVR4_acancel (SYS_SVR4 + 110)
-#define SYS_SVR4_async (SYS_SVR4 + 111)
-#define SYS_SVR4_priocntlset (SYS_SVR4 + 112)
-#define SYS_SVR4_pathconf (SYS_SVR4 + 113)
-#define SYS_SVR4_mincore (SYS_SVR4 + 114)
-#define SYS_SVR4_mmap (SYS_SVR4 + 115)
-#define SYS_SVR4_mprotect (SYS_SVR4 + 116)
-#define SYS_SVR4_munmap (SYS_SVR4 + 117)
-#define SYS_SVR4_fpathconf (SYS_SVR4 + 118)
-#define SYS_SVR4_vfork (SYS_SVR4 + 119)
-#define SYS_SVR4_fchdir (SYS_SVR4 + 120)
-#define SYS_SVR4_readv (SYS_SVR4 + 121)
-#define SYS_SVR4_writev (SYS_SVR4 + 122)
-#define SYS_SVR4_xstat (SYS_SVR4 + 123)
-#define SYS_SVR4_lxstat (SYS_SVR4 + 124)
-#define SYS_SVR4_fxstat (SYS_SVR4 + 125)
-#define SYS_SVR4_xmknod (SYS_SVR4 + 126)
-#define SYS_SVR4_clocal (SYS_SVR4 + 127)
-#define SYS_SVR4_setrlimit (SYS_SVR4 + 128)
-#define SYS_SVR4_getrlimit (SYS_SVR4 + 129)
-#define SYS_SVR4_lchown (SYS_SVR4 + 130)
-#define SYS_SVR4_memcntl (SYS_SVR4 + 131)
-#define SYS_SVR4_getpmsg (SYS_SVR4 + 132)
-#define SYS_SVR4_putpmsg (SYS_SVR4 + 133)
-#define SYS_SVR4_rename (SYS_SVR4 + 134)
-#define SYS_SVR4_nuname (SYS_SVR4 + 135)
-#define SYS_SVR4_setegid (SYS_SVR4 + 136)
-#define SYS_SVR4_sysconf (SYS_SVR4 + 137)
-#define SYS_SVR4_adjtime (SYS_SVR4 + 138)
-#define SYS_SVR4_sysinfo (SYS_SVR4 + 139)
-#define SYS_SVR4_reserved8 (SYS_SVR4 + 140)
-#define SYS_SVR4_seteuid (SYS_SVR4 + 141)
-#define SYS_SVR4_PYRAMID_statis (SYS_SVR4 + 142)
-#define SYS_SVR4_PYRAMID_tuning (SYS_SVR4 + 143)
-#define SYS_SVR4_PYRAMID_forcerr (SYS_SVR4 + 144)
-#define SYS_SVR4_PYRAMID_mpcntl (SYS_SVR4 + 145)
-#define SYS_SVR4_reserved9 (SYS_SVR4 + 146)
-#define SYS_SVR4_reserved10 (SYS_SVR4 + 147)
-#define SYS_SVR4_reserved11 (SYS_SVR4 + 148)
-#define SYS_SVR4_reserved12 (SYS_SVR4 + 149)
-#define SYS_SVR4_reserved13 (SYS_SVR4 + 150)
-#define SYS_SVR4_reserved14 (SYS_SVR4 + 151)
-#define SYS_SVR4_reserved15 (SYS_SVR4 + 152)
-#define SYS_SVR4_reserved16 (SYS_SVR4 + 153)
-#define SYS_SVR4_reserved17 (SYS_SVR4 + 154)
-#define SYS_SVR4_reserved18 (SYS_SVR4 + 155)
-#define SYS_SVR4_reserved19 (SYS_SVR4 + 156)
-#define SYS_SVR4_reserved20 (SYS_SVR4 + 157)
-#define SYS_SVR4_reserved21 (SYS_SVR4 + 158)
-#define SYS_SVR4_reserved22 (SYS_SVR4 + 159)
-#define SYS_SVR4_reserved23 (SYS_SVR4 + 160)
-#define SYS_SVR4_reserved24 (SYS_SVR4 + 161)
-#define SYS_SVR4_reserved25 (SYS_SVR4 + 162)
-#define SYS_SVR4_reserved26 (SYS_SVR4 + 163)
-#define SYS_SVR4_reserved27 (SYS_SVR4 + 164)
-#define SYS_SVR4_reserved28 (SYS_SVR4 + 165)
-#define SYS_SVR4_reserved29 (SYS_SVR4 + 166)
-#define SYS_SVR4_reserved30 (SYS_SVR4 + 167)
-#define SYS_SVR4_reserved31 (SYS_SVR4 + 168)
-#define SYS_SVR4_reserved32 (SYS_SVR4 + 169)
-#define SYS_SVR4_reserved33 (SYS_SVR4 + 170)
-#define SYS_SVR4_reserved34 (SYS_SVR4 + 171)
-#define SYS_SVR4_reserved35 (SYS_SVR4 + 172)
-#define SYS_SVR4_reserved36 (SYS_SVR4 + 173)
-#define SYS_SVR4_reserved37 (SYS_SVR4 + 174)
-#define SYS_SVR4_reserved38 (SYS_SVR4 + 175)
-#define SYS_SVR4_reserved39 (SYS_SVR4 + 176)
-#define SYS_SVR4_reserved40 (SYS_SVR4 + 177)
-#define SYS_SVR4_reserved41 (SYS_SVR4 + 178)
-#define SYS_SVR4_reserved42 (SYS_SVR4 + 179)
-#define SYS_SVR4_reserved43 (SYS_SVR4 + 180)
-#define SYS_SVR4_reserved44 (SYS_SVR4 + 181)
-#define SYS_SVR4_reserved45 (SYS_SVR4 + 182)
-#define SYS_SVR4_reserved46 (SYS_SVR4 + 183)
-#define SYS_SVR4_reserved47 (SYS_SVR4 + 184)
-#define SYS_SVR4_reserved48 (SYS_SVR4 + 185)
-#define SYS_SVR4_reserved49 (SYS_SVR4 + 186)
-#define SYS_SVR4_reserved50 (SYS_SVR4 + 187)
-#define SYS_SVR4_reserved51 (SYS_SVR4 + 188)
-#define SYS_SVR4_reserved52 (SYS_SVR4 + 189)
-#define SYS_SVR4_reserved53 (SYS_SVR4 + 190)
-#define SYS_SVR4_reserved54 (SYS_SVR4 + 191)
-#define SYS_SVR4_reserved55 (SYS_SVR4 + 192)
-#define SYS_SVR4_reserved56 (SYS_SVR4 + 193)
-#define SYS_SVR4_reserved57 (SYS_SVR4 + 194)
-#define SYS_SVR4_reserved58 (SYS_SVR4 + 195)
-#define SYS_SVR4_reserved59 (SYS_SVR4 + 196)
-#define SYS_SVR4_reserved60 (SYS_SVR4 + 197)
-#define SYS_SVR4_reserved61 (SYS_SVR4 + 198)
-#define SYS_SVR4_reserved62 (SYS_SVR4 + 199)
-#define SYS_SVR4_reserved63 (SYS_SVR4 + 200)
-#define SYS_SVR4_aread (SYS_SVR4 + 201)
-#define SYS_SVR4_awrite (SYS_SVR4 + 202)
-#define SYS_SVR4_listio (SYS_SVR4 + 203)
-#define SYS_SVR4_mips_acancel (SYS_SVR4 + 204)
-#define SYS_SVR4_astatus (SYS_SVR4 + 205)
-#define SYS_SVR4_await (SYS_SVR4 + 206)
-#define SYS_SVR4_areadv (SYS_SVR4 + 207)
-#define SYS_SVR4_awritev (SYS_SVR4 + 208)
-#define SYS_SVR4_MIPS_reserved1 (SYS_SVR4 + 209)
-#define SYS_SVR4_MIPS_reserved2 (SYS_SVR4 + 210)
-#define SYS_SVR4_MIPS_reserved3 (SYS_SVR4 + 211)
-#define SYS_SVR4_MIPS_reserved4 (SYS_SVR4 + 212)
-#define SYS_SVR4_MIPS_reserved5 (SYS_SVR4 + 213)
-#define SYS_SVR4_MIPS_reserved6 (SYS_SVR4 + 214)
-#define SYS_SVR4_MIPS_reserved7 (SYS_SVR4 + 215)
-#define SYS_SVR4_MIPS_reserved8 (SYS_SVR4 + 216)
-#define SYS_SVR4_MIPS_reserved9 (SYS_SVR4 + 217)
-#define SYS_SVR4_MIPS_reserved10 (SYS_SVR4 + 218)
-#define SYS_SVR4_MIPS_reserved11 (SYS_SVR4 + 219)
-#define SYS_SVR4_MIPS_reserved12 (SYS_SVR4 + 220)
-#define SYS_SVR4_CDC_reserved1 (SYS_SVR4 + 221)
-#define SYS_SVR4_CDC_reserved2 (SYS_SVR4 + 222)
-#define SYS_SVR4_CDC_reserved3 (SYS_SVR4 + 223)
-#define SYS_SVR4_CDC_reserved4 (SYS_SVR4 + 224)
-#define SYS_SVR4_CDC_reserved5 (SYS_SVR4 + 225)
-#define SYS_SVR4_CDC_reserved6 (SYS_SVR4 + 226)
-#define SYS_SVR4_CDC_reserved7 (SYS_SVR4 + 227)
-#define SYS_SVR4_CDC_reserved8 (SYS_SVR4 + 228)
-#define SYS_SVR4_CDC_reserved9 (SYS_SVR4 + 229)
-#define SYS_SVR4_CDC_reserved10 (SYS_SVR4 + 230)
-#define SYS_SVR4_CDC_reserved11 (SYS_SVR4 + 231)
-#define SYS_SVR4_CDC_reserved12 (SYS_SVR4 + 232)
-#define SYS_SVR4_CDC_reserved13 (SYS_SVR4 + 233)
-#define SYS_SVR4_CDC_reserved14 (SYS_SVR4 + 234)
-#define SYS_SVR4_CDC_reserved15 (SYS_SVR4 + 235)
-#define SYS_SVR4_CDC_reserved16 (SYS_SVR4 + 236)
-#define SYS_SVR4_CDC_reserved17 (SYS_SVR4 + 237)
-#define SYS_SVR4_CDC_reserved18 (SYS_SVR4 + 238)
-#define SYS_SVR4_CDC_reserved19 (SYS_SVR4 + 239)
-#define SYS_SVR4_CDC_reserved20 (SYS_SVR4 + 240)
-
-/*
- * SYS V syscalls are in the range from 1000 to 1999
- */
-#define SYS_SYSV 1000
-#define SYS_SYSV_syscall (SYS_SYSV + 0)
-#define SYS_SYSV_exit (SYS_SYSV + 1)
-#define SYS_SYSV_fork (SYS_SYSV + 2)
-#define SYS_SYSV_read (SYS_SYSV + 3)
-#define SYS_SYSV_write (SYS_SYSV + 4)
-#define SYS_SYSV_open (SYS_SYSV + 5)
-#define SYS_SYSV_close (SYS_SYSV + 6)
-#define SYS_SYSV_wait (SYS_SYSV + 7)
-#define SYS_SYSV_creat (SYS_SYSV + 8)
-#define SYS_SYSV_link (SYS_SYSV + 9)
-#define SYS_SYSV_unlink (SYS_SYSV + 10)
-#define SYS_SYSV_execv (SYS_SYSV + 11)
-#define SYS_SYSV_chdir (SYS_SYSV + 12)
-#define SYS_SYSV_time (SYS_SYSV + 13)
-#define SYS_SYSV_mknod (SYS_SYSV + 14)
-#define SYS_SYSV_chmod (SYS_SYSV + 15)
-#define SYS_SYSV_chown (SYS_SYSV + 16)
-#define SYS_SYSV_brk (SYS_SYSV + 17)
-#define SYS_SYSV_stat (SYS_SYSV + 18)
-#define SYS_SYSV_lseek (SYS_SYSV + 19)
-#define SYS_SYSV_getpid (SYS_SYSV + 20)
-#define SYS_SYSV_mount (SYS_SYSV + 21)
-#define SYS_SYSV_umount (SYS_SYSV + 22)
-#define SYS_SYSV_setuid (SYS_SYSV + 23)
-#define SYS_SYSV_getuid (SYS_SYSV + 24)
-#define SYS_SYSV_stime (SYS_SYSV + 25)
-#define SYS_SYSV_ptrace (SYS_SYSV + 26)
-#define SYS_SYSV_alarm (SYS_SYSV + 27)
-#define SYS_SYSV_fstat (SYS_SYSV + 28)
-#define SYS_SYSV_pause (SYS_SYSV + 29)
-#define SYS_SYSV_utime (SYS_SYSV + 30)
-#define SYS_SYSV_stty (SYS_SYSV + 31)
-#define SYS_SYSV_gtty (SYS_SYSV + 32)
-#define SYS_SYSV_access (SYS_SYSV + 33)
-#define SYS_SYSV_nice (SYS_SYSV + 34)
-#define SYS_SYSV_statfs (SYS_SYSV + 35)
-#define SYS_SYSV_sync (SYS_SYSV + 36)
-#define SYS_SYSV_kill (SYS_SYSV + 37)
-#define SYS_SYSV_fstatfs (SYS_SYSV + 38)
-#define SYS_SYSV_setpgrp (SYS_SYSV + 39)
-#define SYS_SYSV_syssgi (SYS_SYSV + 40)
-#define SYS_SYSV_dup (SYS_SYSV + 41)
-#define SYS_SYSV_pipe (SYS_SYSV + 42)
-#define SYS_SYSV_times (SYS_SYSV + 43)
-#define SYS_SYSV_profil (SYS_SYSV + 44)
-#define SYS_SYSV_plock (SYS_SYSV + 45)
-#define SYS_SYSV_setgid (SYS_SYSV + 46)
-#define SYS_SYSV_getgid (SYS_SYSV + 47)
-#define SYS_SYSV_sig (SYS_SYSV + 48)
-#define SYS_SYSV_msgsys (SYS_SYSV + 49)
-#define SYS_SYSV_sysmips (SYS_SYSV + 50)
-#define SYS_SYSV_acct (SYS_SYSV + 51)
-#define SYS_SYSV_shmsys (SYS_SYSV + 52)
-#define SYS_SYSV_semsys (SYS_SYSV + 53)
-#define SYS_SYSV_ioctl (SYS_SYSV + 54)
-#define SYS_SYSV_uadmin (SYS_SYSV + 55)
-#define SYS_SYSV_sysmp (SYS_SYSV + 56)
-#define SYS_SYSV_utssys (SYS_SYSV + 57)
-#define SYS_SYSV_USG_reserved1 (SYS_SYSV + 58)
-#define SYS_SYSV_execve (SYS_SYSV + 59)
-#define SYS_SYSV_umask (SYS_SYSV + 60)
-#define SYS_SYSV_chroot (SYS_SYSV + 61)
-#define SYS_SYSV_fcntl (SYS_SYSV + 62)
-#define SYS_SYSV_ulimit (SYS_SYSV + 63)
-#define SYS_SYSV_SAFARI4_reserved1 (SYS_SYSV + 64)
-#define SYS_SYSV_SAFARI4_reserved2 (SYS_SYSV + 65)
-#define SYS_SYSV_SAFARI4_reserved3 (SYS_SYSV + 66)
-#define SYS_SYSV_SAFARI4_reserved4 (SYS_SYSV + 67)
-#define SYS_SYSV_SAFARI4_reserved5 (SYS_SYSV + 68)
-#define SYS_SYSV_SAFARI4_reserved6 (SYS_SYSV + 69)
-#define SYS_SYSV_advfs (SYS_SYSV + 70)
-#define SYS_SYSV_unadvfs (SYS_SYSV + 71)
-#define SYS_SYSV_rmount (SYS_SYSV + 72)
-#define SYS_SYSV_rumount (SYS_SYSV + 73)
-#define SYS_SYSV_rfstart (SYS_SYSV + 74)
-#define SYS_SYSV_getrlimit64 (SYS_SYSV + 75)
-#define SYS_SYSV_setrlimit64 (SYS_SYSV + 76)
-#define SYS_SYSV_nanosleep (SYS_SYSV + 77)
-#define SYS_SYSV_lseek64 (SYS_SYSV + 78)
-#define SYS_SYSV_rmdir (SYS_SYSV + 79)
-#define SYS_SYSV_mkdir (SYS_SYSV + 80)
-#define SYS_SYSV_getdents (SYS_SYSV + 81)
-#define SYS_SYSV_sginap (SYS_SYSV + 82)
-#define SYS_SYSV_sgikopt (SYS_SYSV + 83)
-#define SYS_SYSV_sysfs (SYS_SYSV + 84)
-#define SYS_SYSV_getmsg (SYS_SYSV + 85)
-#define SYS_SYSV_putmsg (SYS_SYSV + 86)
-#define SYS_SYSV_poll (SYS_SYSV + 87)
-#define SYS_SYSV_sigreturn (SYS_SYSV + 88)
-#define SYS_SYSV_accept (SYS_SYSV + 89)
-#define SYS_SYSV_bind (SYS_SYSV + 90)
-#define SYS_SYSV_connect (SYS_SYSV + 91)
-#define SYS_SYSV_gethostid (SYS_SYSV + 92)
-#define SYS_SYSV_getpeername (SYS_SYSV + 93)
-#define SYS_SYSV_getsockname (SYS_SYSV + 94)
-#define SYS_SYSV_getsockopt (SYS_SYSV + 95)
-#define SYS_SYSV_listen (SYS_SYSV + 96)
-#define SYS_SYSV_recv (SYS_SYSV + 97)
-#define SYS_SYSV_recvfrom (SYS_SYSV + 98)
-#define SYS_SYSV_recvmsg (SYS_SYSV + 99)
-#define SYS_SYSV_select (SYS_SYSV + 100)
-#define SYS_SYSV_send (SYS_SYSV + 101)
-#define SYS_SYSV_sendmsg (SYS_SYSV + 102)
-#define SYS_SYSV_sendto (SYS_SYSV + 103)
-#define SYS_SYSV_sethostid (SYS_SYSV + 104)
-#define SYS_SYSV_setsockopt (SYS_SYSV + 105)
-#define SYS_SYSV_shutdown (SYS_SYSV + 106)
-#define SYS_SYSV_socket (SYS_SYSV + 107)
-#define SYS_SYSV_gethostname (SYS_SYSV + 108)
-#define SYS_SYSV_sethostname (SYS_SYSV + 109)
-#define SYS_SYSV_getdomainname (SYS_SYSV + 110)
-#define SYS_SYSV_setdomainname (SYS_SYSV + 111)
-#define SYS_SYSV_truncate (SYS_SYSV + 112)
-#define SYS_SYSV_ftruncate (SYS_SYSV + 113)
-#define SYS_SYSV_rename (SYS_SYSV + 114)
-#define SYS_SYSV_symlink (SYS_SYSV + 115)
-#define SYS_SYSV_readlink (SYS_SYSV + 116)
-#define SYS_SYSV_lstat (SYS_SYSV + 117)
-#define SYS_SYSV_nfsmount (SYS_SYSV + 118)
-#define SYS_SYSV_nfssvc (SYS_SYSV + 119)
-#define SYS_SYSV_getfh (SYS_SYSV + 120)
-#define SYS_SYSV_async_daemon (SYS_SYSV + 121)
-#define SYS_SYSV_exportfs (SYS_SYSV + 122)
-#define SYS_SYSV_setregid (SYS_SYSV + 123)
-#define SYS_SYSV_setreuid (SYS_SYSV + 124)
-#define SYS_SYSV_getitimer (SYS_SYSV + 125)
-#define SYS_SYSV_setitimer (SYS_SYSV + 126)
-#define SYS_SYSV_adjtime (SYS_SYSV + 127)
-#define SYS_SYSV_BSD_getime (SYS_SYSV + 128)
-#define SYS_SYSV_sproc (SYS_SYSV + 129)
-#define SYS_SYSV_prctl (SYS_SYSV + 130)
-#define SYS_SYSV_procblk (SYS_SYSV + 131)
-#define SYS_SYSV_sprocsp (SYS_SYSV + 132)
-#define SYS_SYSV_sgigsc (SYS_SYSV + 133)
-#define SYS_SYSV_mmap (SYS_SYSV + 134)
-#define SYS_SYSV_munmap (SYS_SYSV + 135)
-#define SYS_SYSV_mprotect (SYS_SYSV + 136)
-#define SYS_SYSV_msync (SYS_SYSV + 137)
-#define SYS_SYSV_madvise (SYS_SYSV + 138)
-#define SYS_SYSV_pagelock (SYS_SYSV + 139)
-#define SYS_SYSV_getpagesize (SYS_SYSV + 140)
-#define SYS_SYSV_quotactl (SYS_SYSV + 141)
-#define SYS_SYSV_libdetach (SYS_SYSV + 142)
-#define SYS_SYSV_BSDgetpgrp (SYS_SYSV + 143)
-#define SYS_SYSV_BSDsetpgrp (SYS_SYSV + 144)
-#define SYS_SYSV_vhangup (SYS_SYSV + 145)
-#define SYS_SYSV_fsync (SYS_SYSV + 146)
-#define SYS_SYSV_fchdir (SYS_SYSV + 147)
-#define SYS_SYSV_getrlimit (SYS_SYSV + 148)
-#define SYS_SYSV_setrlimit (SYS_SYSV + 149)
-#define SYS_SYSV_cacheflush (SYS_SYSV + 150)
-#define SYS_SYSV_cachectl (SYS_SYSV + 151)
-#define SYS_SYSV_fchown (SYS_SYSV + 152)
-#define SYS_SYSV_fchmod (SYS_SYSV + 153)
-#define SYS_SYSV_wait3 (SYS_SYSV + 154)
-#define SYS_SYSV_socketpair (SYS_SYSV + 155)
-#define SYS_SYSV_sysinfo (SYS_SYSV + 156)
-#define SYS_SYSV_nuname (SYS_SYSV + 157)
-#define SYS_SYSV_xstat (SYS_SYSV + 158)
-#define SYS_SYSV_lxstat (SYS_SYSV + 159)
-#define SYS_SYSV_fxstat (SYS_SYSV + 160)
-#define SYS_SYSV_xmknod (SYS_SYSV + 161)
-#define SYS_SYSV_ksigaction (SYS_SYSV + 162)
-#define SYS_SYSV_sigpending (SYS_SYSV + 163)
-#define SYS_SYSV_sigprocmask (SYS_SYSV + 164)
-#define SYS_SYSV_sigsuspend (SYS_SYSV + 165)
-#define SYS_SYSV_sigpoll (SYS_SYSV + 166)
-#define SYS_SYSV_swapctl (SYS_SYSV + 167)
-#define SYS_SYSV_getcontext (SYS_SYSV + 168)
-#define SYS_SYSV_setcontext (SYS_SYSV + 169)
-#define SYS_SYSV_waitsys (SYS_SYSV + 170)
-#define SYS_SYSV_sigstack (SYS_SYSV + 171)
-#define SYS_SYSV_sigaltstack (SYS_SYSV + 172)
-#define SYS_SYSV_sigsendset (SYS_SYSV + 173)
-#define SYS_SYSV_statvfs (SYS_SYSV + 174)
-#define SYS_SYSV_fstatvfs (SYS_SYSV + 175)
-#define SYS_SYSV_getpmsg (SYS_SYSV + 176)
-#define SYS_SYSV_putpmsg (SYS_SYSV + 177)
-#define SYS_SYSV_lchown (SYS_SYSV + 178)
-#define SYS_SYSV_priocntl (SYS_SYSV + 179)
-#define SYS_SYSV_ksigqueue (SYS_SYSV + 180)
-#define SYS_SYSV_readv (SYS_SYSV + 181)
-#define SYS_SYSV_writev (SYS_SYSV + 182)
-#define SYS_SYSV_truncate64 (SYS_SYSV + 183)
-#define SYS_SYSV_ftruncate64 (SYS_SYSV + 184)
-#define SYS_SYSV_mmap64 (SYS_SYSV + 185)
-#define SYS_SYSV_dmi (SYS_SYSV + 186)
-#define SYS_SYSV_pread (SYS_SYSV + 187)
-#define SYS_SYSV_pwrite (SYS_SYSV + 188)
-
-/*
- * BSD 4.3 syscalls are in the range from 2000 to 2999
- */
-#define SYS_BSD43 2000
-#define SYS_BSD43_syscall (SYS_BSD43 + 0)
-#define SYS_BSD43_exit (SYS_BSD43 + 1)
-#define SYS_BSD43_fork (SYS_BSD43 + 2)
-#define SYS_BSD43_read (SYS_BSD43 + 3)
-#define SYS_BSD43_write (SYS_BSD43 + 4)
-#define SYS_BSD43_open (SYS_BSD43 + 5)
-#define SYS_BSD43_close (SYS_BSD43 + 6)
-#define SYS_BSD43_wait (SYS_BSD43 + 7)
-#define SYS_BSD43_creat (SYS_BSD43 + 8)
-#define SYS_BSD43_link (SYS_BSD43 + 9)
-#define SYS_BSD43_unlink (SYS_BSD43 + 10)
-#define SYS_BSD43_exec (SYS_BSD43 + 11)
-#define SYS_BSD43_chdir (SYS_BSD43 + 12)
-#define SYS_BSD43_time (SYS_BSD43 + 13)
-#define SYS_BSD43_mknod (SYS_BSD43 + 14)
-#define SYS_BSD43_chmod (SYS_BSD43 + 15)
-#define SYS_BSD43_chown (SYS_BSD43 + 16)
-#define SYS_BSD43_sbreak (SYS_BSD43 + 17)
-#define SYS_BSD43_oldstat (SYS_BSD43 + 18)
-#define SYS_BSD43_lseek (SYS_BSD43 + 19)
-#define SYS_BSD43_getpid (SYS_BSD43 + 20)
-#define SYS_BSD43_oldmount (SYS_BSD43 + 21)
-#define SYS_BSD43_umount (SYS_BSD43 + 22)
-#define SYS_BSD43_setuid (SYS_BSD43 + 23)
-#define SYS_BSD43_getuid (SYS_BSD43 + 24)
-#define SYS_BSD43_stime (SYS_BSD43 + 25)
-#define SYS_BSD43_ptrace (SYS_BSD43 + 26)
-#define SYS_BSD43_alarm (SYS_BSD43 + 27)
-#define SYS_BSD43_oldfstat (SYS_BSD43 + 28)
-#define SYS_BSD43_pause (SYS_BSD43 + 29)
-#define SYS_BSD43_utime (SYS_BSD43 + 30)
-#define SYS_BSD43_stty (SYS_BSD43 + 31)
-#define SYS_BSD43_gtty (SYS_BSD43 + 32)
-#define SYS_BSD43_access (SYS_BSD43 + 33)
-#define SYS_BSD43_nice (SYS_BSD43 + 34)
-#define SYS_BSD43_ftime (SYS_BSD43 + 35)
-#define SYS_BSD43_sync (SYS_BSD43 + 36)
-#define SYS_BSD43_kill (SYS_BSD43 + 37)
-#define SYS_BSD43_stat (SYS_BSD43 + 38)
-#define SYS_BSD43_oldsetpgrp (SYS_BSD43 + 39)
-#define SYS_BSD43_lstat (SYS_BSD43 + 40)
-#define SYS_BSD43_dup (SYS_BSD43 + 41)
-#define SYS_BSD43_pipe (SYS_BSD43 + 42)
-#define SYS_BSD43_times (SYS_BSD43 + 43)
-#define SYS_BSD43_profil (SYS_BSD43 + 44)
-#define SYS_BSD43_msgsys (SYS_BSD43 + 45)
-#define SYS_BSD43_setgid (SYS_BSD43 + 46)
-#define SYS_BSD43_getgid (SYS_BSD43 + 47)
-#define SYS_BSD43_ssig (SYS_BSD43 + 48)
-#define SYS_BSD43_reserved1 (SYS_BSD43 + 49)
-#define SYS_BSD43_reserved2 (SYS_BSD43 + 50)
-#define SYS_BSD43_sysacct (SYS_BSD43 + 51)
-#define SYS_BSD43_phys (SYS_BSD43 + 52)