Debian Codegraph @

strace-4.6/sunos4/syscall.h

raw symbols SCIP
1 /*
2 * Copyright (c) 1991, 1992 Paul Kranenburg <[email protected]>
3 * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <[email protected]>
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
32 int sys_nosys();
33 int sys_nullsys();
34 int sys_errsys();
35
36 /* 1.1 processes and protection */
37 int sys_gethostid(),sys_sethostname(),sys_gethostname(),sys_getpid();
38 int sys_setdomainname(),sys_getdomainname();
39 int sys_fork(),sys_exit(),sys_execv(),sys_execve(),sys_wait4();
40 int sys_getuid(),sys_setreuid(),sys_getgid(),sys_getgroups(),sys_setregid(),sys_setgroups();
41 int sys_getpgrp(),sys_setpgrp();
42 int sys_sys_setsid(), sys_setpgid();
43 int sys_uname();
44
45 /* 1.2 memory management */
46 int sys_brk(),sys_sbrk(),sys_sstk();
47 int sys_getpagesize(),sys_mmap(),sys_mctl(),sys_munmap(),sys_mprotect(),sys_mincore();
48 int sys_omsync(),sys_omadvise();
49
50 /* 1.3 signals */
51 int sys_sigvec(),sys_sigblock(),sys_sigsetmask(),sys_sigpause(),sys_sigstack(),sys_sigcleanup();
52 int sys_kill(), sys_killpg(), sys_sigpending();
53
54 /* 1.4 timing and statistics */
55 int sys_gettimeofday(),sys_settimeofday();
56 int sys_adjtime();
57 int sys_getitimer(),sys_setitimer();
58
59 /* 1.5 descriptors */
60 int sys_getdtablesize(),sys_dup(),sys_dup2(),sys_close();
61 int sys_select(),sys_getdopt(),sys_setdopt(),sys_fcntl(),sys_flock();
62
63 /* 1.6 resource controls */
64 int sys_getpriority(),sys_setpriority(),sys_getrusage(),sys_getrlimit(),sys_setrlimit();
65 int sys_oldquota(), sys_quotactl();
66 int sys_rtschedule();
67
68 /* 1.7 system operation support */
69 int sys_mount(),sys_unmount(),sys_swapon();
70 int sys_sync(),sys_reboot();
71 int sys_sysacct();
72 int sys_auditsys();
73
74 /* 2.1 generic operations */
75 int sys_read(),sys_write(),sys_readv(),sys_writev(),sys_ioctl();
76
77 /* 2.1.1 asynch operations */
78 int sys_aioread(), sys_aiowrite(), sys_aiowait(), sys_aiocancel();
79
80 /* 2.2 file system */
81 int sys_chdir(),sys_chroot();
82 int sys_fchdir(),sys_fchroot();
83 int sys_mkdir(),sys_rmdir(),sys_getdirentries(), sys_getdents();
84 int sys_creat(),sys_open(),sys_mknod(),sys_unlink(),sys_stat(),sys_fstat(),sys_lstat();
85 int sys_chown(),sys_fchown(),sys_chmod(),sys_fchmod(),sys_utimes();
86 int sys_link(),sys_symlink(),sys_readlink(),sys_rename();
87 int sys_lseek(),sys_truncate(),sys_ftruncate(),sys_access(),sys_fsync();
88 int sys_statfs(),sys_fstatfs();
89
90 /* 2.3 communications */
91 int sys_socket(),sys_bind(),sys_listen(),sys_accept(),sys_connect();
92 int sys_socketpair(),sys_sendto(),sys_send(),sys_recvfrom(),sys_recv();
93 int sys_sendmsg(),sys_recvmsg(),sys_shutdown(),sys_setsockopt(),sys_getsockopt();
94 int sys_getsockname(),sys_getpeername(),sys_pipe();
95
96 int sys_umask(); /* XXX */
97
98 /* 2.3.1 SystemV-compatible IPC */
99 int 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)
105 int 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)
112 int 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 */
121 int sys_ptrace();
122
123 /* 2.5 terminals */
124
125 /* emulations for backwards compatibility */
126 int sys_otime(); /* now use gettimeofday */
127 int sys_ostime(); /* now use settimeofday */
128 int sys_oalarm(); /* now use setitimer */
129 int sys_outime(); /* now use utimes */
130 int sys_opause(); /* now use sigpause */
131 int sys_onice(); /* now use setpriority,getpriority */
132 int sys_oftime(); /* now use gettimeofday */
133 int sys_osetpgrp(); /* ??? */
134 int sys_otimes(); /* now use getrusage */
135 int sys_ossig(); /* now use sigvec, etc */
136 int sys_ovlimit(); /* now use setrlimit,getrlimit */
137 int sys_ovtimes(); /* now use getrusage */
138 int sys_osetuid(); /* now use setreuid */
139 int sys_osetgid(); /* now use setregid */
140 int sys_ostat(); /* now use stat */
141 int sys_ofstat(); /* now use fstat */
142
143 /* BEGIN JUNK */
144 int sys_profil(); /* 'cuz sys calls are interruptible */
145 int sys_vhangup(); /* should just do in sys_exit() */
146 int sys_vfork(); /* XXX - was awaiting fork w/ copy on write */
147 int sys_ovadvise(); /* awaiting new madvise */
148 int sys_indir(); /* indirect system call */
149 int sys_ustat(); /* System V compatibility */
150 int sys_owait(); /* should use wait4 interface */
151 int sys_owait3(); /* should use wait4 interface */
152 int sys_umount(); /* still more Sys V (and 4.2?) compatibility */
153 int sys_pathconf(); /* posix */
154 int sys_fpathconf(); /* posix */
155 int sys_sysconf(); /* posix */
156
157 int sys_debug();
158 /* END JUNK */
159
160 int sys_vtrace(); /* kernel event tracing */
161
162 /* nfs */
163 int sys_async_daemon(); /* client async daemon */
164 int sys_nfs_svc(); /* run nfs server */
165 int sys_nfs_getfh(); /* get file handle */
166 int sys_exportfs(); /* export file systems */
167
168 int sys_rfssys(); /* RFS-related calls */
169
170 int sys_getmsg();
171 int sys_putmsg();
172 int sys_poll();
173
174 int sys_vpixsys(); /* VP/ix system calls */