/[gxemul]/trunk/src/include/syscall_ultrix.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/src/include/syscall_ultrix.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (hide annotations)
Mon Oct 8 16:18:00 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: text/plain
File size: 13512 byte(s)
++ trunk/HISTORY	(local)
$Id: HISTORY,v 1.707 2005/04/27 16:37:33 debug Exp $
20050408	Some minor updates to the wdc. Linux now doesn't complain
		anymore if a disk is non-present.
20050409	Various minor fixes (a bintrans bug, and some other things).
		The wdc seems to work with Playstation2 emulation, but there
		is a _long_ annoying delay when disks are detected.
		Fixing a really important bintrans bug (when devices and RAM
		are mixed within 4KB pages), which was triggered with
		NetBSD/playstation2 kernels.
20050410	Adding a dummy dev_ps2_ether (just so that NetBSD doesn't
		complain as much during bootup).
		Symbols starting with '$' are now ignored.
		Renaming dev_ps2_ohci.c to dev_ohci.c, etc.
20050411	Moving the bintrans-cache-isolation check from cpu_mips.c to
		cpu_mips_coproc.c. (I thought this would give a speedup, but
		it's not noticable.)
		Better playstation2 sbus interrupt code.
		Skip ahead many ticks if the count register is read manually.
		(This increases the speed of delay-loops that simply read
		the count register.)
20050412	Updates to the playstation2 timer/interrupt code.
		Some other minor updates.
20050413	NetBSD/cobalt runs from a disk image :-) including userland;
		updating the documentation on how to install NetBSD/cobalt
		using NetBSD/pmax (!).
		Some minor bintrans updates (no real speed improvement) and
		other minor updates (playstation2 now uses the -o options).
20050414	Adding a dummy x86 (and AMD64) mode.
20050415	Adding some (32-bit and 16-bit) x86 instructions.
		Adding some initial support for non-SCSI, non-IDE floppy
		images. (The x86 mode can boot from these, more or less.)
		Moving the devices/ and include/ directories to src/devices/
		and src/include/, respectively.
20050416	Continuing on the x86 stuff. (Adding pc_bios.c and some simple
		support for software interrupts in 16-bit mode.)
20050417	Ripping out most of the x86 instruction decoding stuff, trying
		to rewrite it in a cleaner way.
		Disabling some of the least working CPU families in the
		configure script (sparc, x86, alpha, hppa), so that they are
		not enabled by default.
20050418	Trying to fix the bug which caused problems when turning on
		and off bintrans interactively, by flushing the bintrans cache
		whenever bintrans is manually (re)enabled.
20050419	Adding the 'lswi' ppc instruction.
		Minor updates to the x86 instruction decoding.
20050420	Renaming x86 register name indices from R_xx to X86_R_xx (this
		makes building on Tru64 nicer).
20050422	Adding a check for duplicate MIPS TLB entries on tlbwr/tlbwi.
20050427	Adding screenshots to guestoses.html.
		Some minor fixes and testing for the next release.

==============  RELEASE 0.3.2  ==============


1 dpavlin 4 /* gxemul: $Id: syscall_ultrix.h,v 1.2 2005/03/05 12:34:03 debug Exp $ */
2     /* $NetBSD: ultrix_syscall.h,v 1.44 2001/11/13 02:09:34 lukem Exp $ */
3    
4     /*
5     * System call numbers.
6     *
7     * DO NOT EDIT-- this file is automatically generated.
8     * created from NetBSD: syscalls.master,v 1.37 2001/05/30 11:37:33 mrg Exp
9     */
10    
11     /* syscall: "syscall" ret: "int" args: */
12     #define ULTRIX_SYS_syscall 0
13    
14     /* syscall: "exit" ret: "int" args: "int" */
15     #define ULTRIX_SYS_exit 1
16    
17     /* syscall: "fork" ret: "int" args: */
18     #define ULTRIX_SYS_fork 2
19    
20     /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
21     #define ULTRIX_SYS_read 3
22    
23     /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
24     #define ULTRIX_SYS_write 4
25    
26     /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
27     #define ULTRIX_SYS_open 5
28    
29     /* syscall: "close" ret: "int" args: "int" */
30     #define ULTRIX_SYS_close 6
31    
32     /* syscall: "owait" ret: "int" args: */
33     #define ULTRIX_SYS_owait 7
34    
35     /* syscall: "creat" ret: "int" args: "const char *" "int" */
36     #define ULTRIX_SYS_creat 8
37    
38     /* syscall: "link" ret: "int" args: "char *" "char *" */
39     #define ULTRIX_SYS_link 9
40    
41     /* syscall: "unlink" ret: "int" args: "char *" */
42     #define ULTRIX_SYS_unlink 10
43    
44     /* syscall: "execv" ret: "int" args: "const char *" "char **" */
45     #define ULTRIX_SYS_execv 11
46    
47     /* syscall: "chdir" ret: "int" args: "char *" */
48     #define ULTRIX_SYS_chdir 12
49    
50     /* 13 is obsolete time */
51     /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
52     #define ULTRIX_SYS_mknod 14
53    
54     /* syscall: "chmod" ret: "int" args: "char *" "int" */
55     #define ULTRIX_SYS_chmod 15
56    
57     /* syscall: "__posix_chown" ret: "int" args: "char *" "int" "int" */
58     #define ULTRIX_SYS___posix_chown 16
59    
60     /* syscall: "break" ret: "int" args: "char *" */
61     #define ULTRIX_SYS_break 17
62    
63     /* 18 is obsolete stat */
64     /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
65     #define ULTRIX_SYS_lseek 19
66    
67     /* syscall: "getpid" ret: "pid_t" args: */
68     #define ULTRIX_SYS_getpid 20
69    
70     /* syscall: "mount" ret: "int" args: "char *" "char *" "int" "int" "caddr_t" */
71     #define ULTRIX_SYS_mount 21
72    
73     /* 22 is obsolete sysV_unmount */
74     /* syscall: "setuid" ret: "int" args: "uid_t" */
75     #define ULTRIX_SYS_setuid 23
76    
77     /* syscall: "getuid" ret: "uid_t" args: */
78     #define ULTRIX_SYS_getuid 24
79    
80     /* 25 is obsolete v7 stime */
81     /* 26 is obsolete v7 ptrace */
82     /* 27 is obsolete v7 alarm */
83     /* 28 is obsolete v7 fstat */
84     /* 29 is obsolete v7 pause */
85     /* 30 is obsolete v7 utime */
86     /* 31 is obsolete v7 stty */
87     /* 32 is obsolete v7 gtty */
88     /* syscall: "access" ret: "int" args: "const char *" "int" */
89     #define ULTRIX_SYS_access 33
90    
91     /* 34 is obsolete v7 nice */
92     /* 35 is obsolete v7 ftime */
93     /* syscall: "sync" ret: "int" args: */
94     #define ULTRIX_SYS_sync 36
95    
96     /* syscall: "kill" ret: "int" args: "int" "int" */
97     #define ULTRIX_SYS_kill 37
98    
99     /* syscall: "stat43" ret: "int" args: "const char *" "struct stat43 *" */
100     #define ULTRIX_SYS_stat43 38
101    
102     /* 39 is obsolete v7 setpgrp */
103     /* syscall: "lstat43" ret: "int" args: "const char *" "struct stat43 *" */
104     #define ULTRIX_SYS_lstat43 40
105    
106     /* syscall: "dup" ret: "int" args: "u_int" */
107     #define ULTRIX_SYS_dup 41
108    
109     /* syscall: "pipe" ret: "int" args: */
110     #define ULTRIX_SYS_pipe 42
111    
112     /* 43 is obsolete v7 times */
113     /* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */
114     #define ULTRIX_SYS_profil 44
115    
116     /* 46 is obsolete v7 setgid */
117     /* syscall: "getgid" ret: "gid_t" args: */
118     #define ULTRIX_SYS_getgid 47
119    
120     /* syscall: "acct" ret: "int" args: "char *" */
121     #define ULTRIX_SYS_acct 51
122    
123     /* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
124     #define ULTRIX_SYS_ioctl 54
125    
126     /* syscall: "reboot" ret: "int" args: "int" */
127     #define ULTRIX_SYS_reboot 55
128    
129     /* syscall: "symlink" ret: "int" args: "char *" "char *" */
130     #define ULTRIX_SYS_symlink 57
131    
132     /* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
133     #define ULTRIX_SYS_readlink 58
134    
135     /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
136     #define ULTRIX_SYS_execve 59
137    
138     /* syscall: "umask" ret: "int" args: "int" */
139     #define ULTRIX_SYS_umask 60
140    
141     /* syscall: "chroot" ret: "int" args: "char *" */
142     #define ULTRIX_SYS_chroot 61
143    
144     /* syscall: "fstat" ret: "int" args: "int" "struct stat43 *" */
145     #define ULTRIX_SYS_fstat 62
146    
147     /* syscall: "getpagesize" ret: "int" args: */
148     #define ULTRIX_SYS_getpagesize 64
149    
150     /* syscall: "vfork" ret: "int" args: */
151     #define ULTRIX_SYS_vfork 66
152    
153     /* 67 is obsolete vread */
154     /* 68 is obsolete vwrite */
155     /* syscall: "sbrk" ret: "int" args: "intptr_t" */
156     #define ULTRIX_SYS_sbrk 69
157    
158     /* syscall: "sstk" ret: "int" args: "int" */
159     #define ULTRIX_SYS_sstk 70
160    
161     /* syscall: "mmap" ret: "int" args: "caddr_t" "size_t" "int" "u_int" "int" "long" */
162     #define ULTRIX_SYS_mmap 71
163    
164     /* syscall: "vadvise" ret: "int" args: "int" */
165     #define ULTRIX_SYS_vadvise 72
166    
167     /* syscall: "munmap" ret: "int" args: "caddr_t" "size_t" */
168     #define ULTRIX_SYS_munmap 73
169    
170     /* syscall: "mprotect" ret: "int" args: "caddr_t" "size_t" "int" */
171     #define ULTRIX_SYS_mprotect 74
172    
173     /* syscall: "madvise" ret: "int" args: "caddr_t" "size_t" "int" */
174     #define ULTRIX_SYS_madvise 75
175    
176     /* syscall: "vhangup" ret: "int" args: */
177     #define ULTRIX_SYS_vhangup 76
178    
179     /* syscall: "mincore" ret: "int" args: "caddr_t" "int" "char *" */
180     #define ULTRIX_SYS_mincore 78
181    
182     /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
183     #define ULTRIX_SYS_getgroups 79
184    
185     /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
186     #define ULTRIX_SYS_setgroups 80
187    
188     /* syscall: "getpgrp" ret: "int" args: */
189     #define ULTRIX_SYS_getpgrp 81
190    
191     /* syscall: "setpgrp" ret: "int" args: "int" "int" */
192     #define ULTRIX_SYS_setpgrp 82
193    
194     /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
195     #define ULTRIX_SYS_setitimer 83
196    
197     /* syscall: "wait3" ret: "int" args: "int *" "int" "struct rusage *" */
198     #define ULTRIX_SYS_wait3 84
199    
200     /* syscall: "swapon" ret: "int" args: "char *" */
201     #define ULTRIX_SYS_swapon 85
202    
203     /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
204     #define ULTRIX_SYS_getitimer 86
205    
206     /* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
207     #define ULTRIX_SYS_gethostname 87
208    
209     /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
210     #define ULTRIX_SYS_sethostname 88
211    
212     /* syscall: "getdtablesize" ret: "int" args: */
213     #define ULTRIX_SYS_getdtablesize 89
214    
215     /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
216     #define ULTRIX_SYS_dup2 90
217    
218     /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
219     #define ULTRIX_SYS_fcntl 92
220    
221     /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
222     #define ULTRIX_SYS_select 93
223    
224     /* syscall: "fsync" ret: "int" args: "int" */
225     #define ULTRIX_SYS_fsync 95
226    
227     /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
228     #define ULTRIX_SYS_setpriority 96
229    
230     /* syscall: "socket" ret: "int" args: "int" "int" "int" */
231     #define ULTRIX_SYS_socket 97
232    
233     /* syscall: "connect" ret: "int" args: "int" "caddr_t" "int" */
234     #define ULTRIX_SYS_connect 98
235    
236     /* syscall: "accept" ret: "int" args: "int" "caddr_t" "int *" */
237     #define ULTRIX_SYS_accept 99
238    
239     /* syscall: "getpriority" ret: "int" args: "int" "int" */
240     #define ULTRIX_SYS_getpriority 100
241    
242     /* syscall: "send" ret: "int" args: "int" "caddr_t" "int" "int" */
243     #define ULTRIX_SYS_send 101
244    
245     /* syscall: "recv" ret: "int" args: "int" "caddr_t" "int" "int" */
246     #define ULTRIX_SYS_recv 102
247    
248     /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
249     #define ULTRIX_SYS_sigreturn 103
250    
251     /* syscall: "bind" ret: "int" args: "int" "caddr_t" "int" */
252     #define ULTRIX_SYS_bind 104
253    
254     /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int" */
255     #define ULTRIX_SYS_setsockopt 105
256    
257     /* syscall: "listen" ret: "int" args: "int" "int" */
258     #define ULTRIX_SYS_listen 106
259    
260     /* syscall: "sigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
261     #define ULTRIX_SYS_sigvec 108
262    
263     /* syscall: "sigblock" ret: "int" args: "int" */
264     #define ULTRIX_SYS_sigblock 109
265    
266     /* syscall: "sigsetmask" ret: "int" args: "int" */
267     #define ULTRIX_SYS_sigsetmask 110
268    
269     /* syscall: "sigsuspend" ret: "int" args: "int" */
270     #define ULTRIX_SYS_sigsuspend 111
271    
272     /* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
273     #define ULTRIX_SYS_sigstack 112
274    
275     /* syscall: "recvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
276     #define ULTRIX_SYS_recvmsg 113
277    
278     /* syscall: "sendmsg" ret: "int" args: "int" "caddr_t" "int" */
279     #define ULTRIX_SYS_sendmsg 114
280    
281     /* 115 is obsolete vtrace */
282     /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
283     #define ULTRIX_SYS_gettimeofday 116
284    
285     /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
286     #define ULTRIX_SYS_getrusage 117
287    
288     /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int *" */
289     #define ULTRIX_SYS_getsockopt 118
290    
291     /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
292     #define ULTRIX_SYS_readv 120
293    
294     /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
295     #define ULTRIX_SYS_writev 121
296    
297     /* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
298     #define ULTRIX_SYS_settimeofday 122
299    
300     /* syscall: "__posix_fchown" ret: "int" args: "int" "int" "int" */
301     #define ULTRIX_SYS___posix_fchown 123
302    
303     /* syscall: "fchmod" ret: "int" args: "int" "int" */
304     #define ULTRIX_SYS_fchmod 124
305    
306     /* syscall: "recvfrom" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int *" */
307     #define ULTRIX_SYS_recvfrom 125
308    
309     /* syscall: "setreuid" ret: "int" args: "int" "int" */
310     #define ULTRIX_SYS_setreuid 126
311    
312     /* syscall: "setregid" ret: "int" args: "int" "int" */
313     #define ULTRIX_SYS_setregid 127
314    
315     /* syscall: "rename" ret: "int" args: "char *" "char *" */
316     #define ULTRIX_SYS_rename 128
317    
318     /* syscall: "truncate" ret: "int" args: "char *" "long" */
319     #define ULTRIX_SYS_truncate 129
320    
321     /* syscall: "ftruncate" ret: "int" args: "int" "long" */
322     #define ULTRIX_SYS_ftruncate 130
323    
324     /* syscall: "flock" ret: "int" args: "int" "int" */
325     #define ULTRIX_SYS_flock 131
326    
327     /* syscall: "sendto" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int" */
328     #define ULTRIX_SYS_sendto 133
329    
330     /* syscall: "shutdown" ret: "int" args: "int" "int" */
331     #define ULTRIX_SYS_shutdown 134
332    
333     /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
334     #define ULTRIX_SYS_socketpair 135
335    
336     /* syscall: "mkdir" ret: "int" args: "char *" "int" */
337     #define ULTRIX_SYS_mkdir 136
338    
339     /* syscall: "rmdir" ret: "int" args: "char *" */
340     #define ULTRIX_SYS_rmdir 137
341    
342     /* syscall: "utimes" ret: "int" args: "char *" "struct timeval *" */
343     #define ULTRIX_SYS_utimes 138
344    
345     /* syscall: "sigcleanup" ret: "int" args: "struct sigcontext *" */
346     #define ULTRIX_SYS_sigcleanup 139
347    
348     /* syscall: "adjtime" ret: "int" args: "struct timeval *" "struct timeval *" */
349     #define ULTRIX_SYS_adjtime 140
350    
351     /* syscall: "getpeername" ret: "int" args: "int" "caddr_t" "int *" */
352     #define ULTRIX_SYS_getpeername 141
353    
354     /* syscall: "gethostid" ret: "int" args: */
355     #define ULTRIX_SYS_gethostid 142
356    
357     /* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
358     #define ULTRIX_SYS_getrlimit 144
359    
360     /* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
361     #define ULTRIX_SYS_setrlimit 145
362    
363     /* syscall: "killpg" ret: "int" args: "int" "int" */
364     #define ULTRIX_SYS_killpg 146
365    
366     /* syscall: "getsockname" ret: "int" args: "int" "caddr_t" "int *" */
367     #define ULTRIX_SYS_getsockname 150
368    
369     /* syscall: "cacheflush" ret: "int" args: "char *" "int" "int" */
370     #define ULTRIX_SYS_cacheflush 152
371    
372     /* syscall: "cachectl" ret: "int" args: "char *" "int" "int" */
373     #define ULTRIX_SYS_cachectl 153
374    
375     /* syscall: "nfssvc" ret: "int" args: "int" */
376     #define ULTRIX_SYS_nfssvc 158
377    
378     /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
379     #define ULTRIX_SYS_getdirentries 159
380    
381     /* syscall: "statfs" ret: "int" args: "const char *" "struct ultrix_statfs *" */
382     #define ULTRIX_SYS_statfs 160
383    
384     /* syscall: "fstatfs" ret: "int" args: "int" "struct ultrix_statfs *" */
385     #define ULTRIX_SYS_fstatfs 161
386    
387     /* syscall: "async_daemon" ret: "int" args: */
388     #define ULTRIX_SYS_async_daemon 163
389    
390     /* syscall: "getfh" ret: "int" args: "char *" "fhandle_t *" */
391     #define ULTRIX_SYS_getfh 164
392    
393     /* syscall: "getdomainname" ret: "int" args: "char *" "int" */
394     #define ULTRIX_SYS_getdomainname 165
395    
396     /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
397     #define ULTRIX_SYS_setdomainname 166
398    
399     /* syscall: "quotactl" ret: "int" args: "int" "char *" "int" "caddr_t" */
400     #define ULTRIX_SYS_quotactl 168
401    
402     /* syscall: "exportfs" ret: "int" args: "char *" "char *" */
403     #define ULTRIX_SYS_exportfs 169
404    
405     /* syscall: "uname" ret: "int" args: "struct ultrix_utsname *" */
406     #define ULTRIX_SYS_uname 179
407    
408     /* syscall: "shmsys" ret: "int" args: "u_int" "u_int" "u_int" "u_int" */
409     #define ULTRIX_SYS_shmsys 180
410    
411     /* syscall: "ustat" ret: "int" args: "int" "struct ultrix_ustat *" */
412     #define ULTRIX_SYS_ustat 183
413    
414     /* syscall: "getmnt" ret: "int" args: "int *" "struct ultrix_fs_data *" "int" "int" "char *" */
415     #define ULTRIX_SYS_getmnt 184
416    
417     /* syscall: "sigpending" ret: "int" args: "int *" */
418     #define ULTRIX_SYS_sigpending 187
419    
420     /* syscall: "setsid" ret: "int" args: */
421     #define ULTRIX_SYS_setsid 188
422    
423     /* syscall: "waitpid" ret: "int" args: "int" "int *" "int" */
424     #define ULTRIX_SYS_waitpid 189
425    
426     /* syscall: "getsysinfo" ret: "int" args: "unsigned" "char *" "unsigned" "int *" "char *" */
427     #define ULTRIX_SYS_getsysinfo 256
428    
429     /* syscall: "setsysinfo" ret: "int" args: "unsigned" "char *" "unsigned" "unsigned" "unsigned" */
430     #define ULTRIX_SYS_setsysinfo 257
431    
432     #define ULTRIX_SYS_MAXSYSCALL 258

  ViewVC Help
Powered by ViewVC 1.1.26