blob: 57e877af18fd3a51ca7d617285cda45e7aad0911 [file] [log] [blame]
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001/*
2 * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3 * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $Id$
29 */
30#include "dummy.h"
31
32int sys_nosys();
33int sys_nullsys();
34int sys_errsys();
35
36/* 1.1 processes and protection */
37int sys_gethostid(),sys_sethostname(),sys_gethostname(),sys_getpid();
38int sys_setdomainname(),sys_getdomainname();
39int sys_fork(),sys_exit(),sys_execv(),sys_execve(),sys_wait4();
40int sys_getuid(),sys_setreuid(),sys_getgid(),sys_getgroups(),sys_setregid(),sys_setgroups();
41int sys_getpgrp(),sys_setpgrp();
42int sys_sys_setsid(), sys_setpgid();
43int sys_uname();
44
45/* 1.2 memory management */
46int sys_brk(),sys_sbrk(),sys_sstk();
47int sys_getpagesize(),sys_mmap(),sys_mctl(),sys_munmap(),sys_mprotect(),sys_mincore();
48int sys_omsync(),sys_omadvise();
49
50/* 1.3 signals */
51int sys_sigvec(),sys_sigblock(),sys_sigsetmask(),sys_sigpause(),sys_sigstack(),sys_sigcleanup();
52int sys_kill(), sys_killpg(), sys_sigpending();
53
54/* 1.4 timing and statistics */
55int sys_gettimeofday(),sys_settimeofday();
56int sys_adjtime();
57int sys_getitimer(),sys_setitimer();
58
59/* 1.5 descriptors */
60int sys_getdtablesize(),sys_dup(),sys_dup2(),sys_close();
61int sys_select(),sys_getdopt(),sys_setdopt(),sys_fcntl(),sys_flock();
62
63/* 1.6 resource controls */
64int sys_getpriority(),sys_setpriority(),sys_getrusage(),sys_getrlimit(),sys_setrlimit();
65int sys_oldquota(), sys_quotactl();
66int sys_rtschedule();
67
68/* 1.7 system operation support */
69int sys_mount(),sys_unmount(),sys_swapon();
70int sys_sync(),sys_reboot();
71int sys_sysacct();
72int sys_auditsys();
73
74/* 2.1 generic operations */
75int sys_read(),sys_write(),sys_readv(),sys_writev(),sys_ioctl();
76
77/* 2.1.1 asynch operations */
78int sys_aioread(), sys_aiowrite(), sys_aiowait(), sys_aiocancel();
79
80/* 2.2 file system */
81int sys_chdir(),sys_chroot();
82int sys_fchdir(),sys_fchroot();
83int sys_mkdir(),sys_rmdir(),sys_getdirentries(), sys_getdents();
84int sys_creat(),sys_open(),sys_mknod(),sys_unlink(),sys_stat(),sys_fstat(),sys_lstat();
85int sys_chown(),sys_fchown(),sys_chmod(),sys_fchmod(),sys_utimes();
86int sys_link(),sys_symlink(),sys_readlink(),sys_rename();
87int sys_lseek(),sys_truncate(),sys_ftruncate(),sys_access(),sys_fsync();
88int sys_statfs(),sys_fstatfs();
89
90/* 2.3 communications */
91int sys_socket(),sys_bind(),sys_listen(),sys_accept(),sys_connect();
92int sys_socketpair(),sys_sendto(),sys_send(),sys_recvfrom(),sys_recv();
93int sys_sendmsg(),sys_recvmsg(),sys_shutdown(),sys_setsockopt(),sys_getsockopt();
94int sys_getsockname(),sys_getpeername(),sys_pipe();
95
96int sys_umask(); /* XXX */
97
98/* 2.3.1 SystemV-compatible IPC */
99int sys_semsys(), sys_semctl(), sys_semget();
100#define SYS_semsys_subcall 200
101#define SYS_semsys_nsubcalls 3
102#define SYS_semctl (SYS_semsys_subcall + 0)
103#define SYS_semget (SYS_semsys_subcall + 1)
104#define SYS_semop (SYS_semsys_subcall + 2)
105int sys_msgsys(), sys_msgget(), sys_msgctl(), sys_msgrcv(), sys_msgsnd();
106#define SYS_msgsys_subcall 203
107#define SYS_msgsys_nsubcalls 4
108#define SYS_msgget (SYS_msgsys_subcall + 0)
109#define SYS_msgctl (SYS_msgsys_subcall + 1)
110#define SYS_msgrcv (SYS_msgsys_subcall + 2)
111#define SYS_msgsnd (SYS_msgsys_subcall + 3)
112int sys_shmsys(), sys_shmat(), sys_shmctl(), sys_shmdt(), sys_shmget();
113#define SYS_shmsys_subcall 207
114#define SYS_shmsys_nsubcalls 4
115#define SYS_shmat (SYS_shmsys_subcall + 0)
116#define SYS_shmctl (SYS_shmsys_subcall + 1)
117#define SYS_shmdt (SYS_shmsys_subcall + 2)
118#define SYS_shmget (SYS_shmsys_subcall + 3)
119
120/* 2.4 processes */
121int sys_ptrace();
122
123/* 2.5 terminals */
124
125/* emulations for backwards compatibility */
126int sys_otime(); /* now use gettimeofday */
127int sys_ostime(); /* now use settimeofday */
128int sys_oalarm(); /* now use setitimer */
129int sys_outime(); /* now use utimes */
130int sys_opause(); /* now use sigpause */
131int sys_onice(); /* now use setpriority,getpriority */
132int sys_oftime(); /* now use gettimeofday */
133int sys_osetpgrp(); /* ??? */
134int sys_otimes(); /* now use getrusage */
135int sys_ossig(); /* now use sigvec, etc */
136int sys_ovlimit(); /* now use setrlimit,getrlimit */
137int sys_ovtimes(); /* now use getrusage */
138int sys_osetuid(); /* now use setreuid */
139int sys_osetgid(); /* now use setregid */
140int sys_ostat(); /* now use stat */
141int sys_ofstat(); /* now use fstat */
142
143/* BEGIN JUNK */
144int sys_profil(); /* 'cuz sys calls are interruptible */
145int sys_vhangup(); /* should just do in sys_exit() */
146int sys_vfork(); /* XXX - was awaiting fork w/ copy on write */
147int sys_ovadvise(); /* awaiting new madvise */
148int sys_indir(); /* indirect system call */
149int sys_ustat(); /* System V compatibility */
150int sys_owait(); /* should use wait4 interface */
151int sys_owait3(); /* should use wait4 interface */
152int sys_umount(); /* still more Sys V (and 4.2?) compatibility */
153int sys_pathconf(); /* posix */
154int sys_fpathconf(); /* posix */
155int sys_sysconf(); /* posix */
156
157int sys_debug();
158/* END JUNK */
159
160int sys_vtrace(); /* kernel event tracing */
161
162/* nfs */
163int sys_async_daemon(); /* client async daemon */
164int sys_nfs_svc(); /* run nfs server */
165int sys_nfs_getfh(); /* get file handle */
166int sys_exportfs(); /* export file systems */
167
168int sys_rfssys(); /* RFS-related calls */
169
170int sys_getmsg();
171int sys_putmsg();
172int sys_poll();
173
174int sys_vpixsys(); /* VP/ix system calls */
175