OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [sparc64/] [sys/] [syscall.h] - Blame information for rev 262

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#ifndef _SYSCALL_H_
2
#define _SYSCALL_H_
3
 
4
/*
5
 * This file defines the system calls for SPARC.
6
 *
7
 * WARNING: This file can be included by assembler files.
8
 */
9
 
10
#define SYS_exit        1
11
#define SYS_fork        2
12
#define SYS_read        3
13
#define SYS_write       4
14
#define SYS_open        5
15
#define SYS_close       6
16
#define SYS_wait4       7
17
#define SYS_creat       8
18
#define SYS_link        9
19
#define SYS_unlink      10
20
#define SYS_execv       11
21
#define SYS_chdir       12
22
#ifdef __svr4__
23
#define SYS_time        13      /* old time in sunos4 */
24
#endif
25
#define SYS_mknod       14
26
#define SYS_chmod       15
27
#define SYS_chown       16
28
#define SYS_brk         17
29
#ifdef __svr4__
30
#define SYS_stat        18      /* old stat in sunos4 */
31
#endif
32
#define SYS_lseek       19
33
#define SYS_getpid      20
34
#ifdef __svr4__
35
#define SYS_mount       21      /* old mount in sunos4 */
36
#define SYS_umount      22      /* old umount in sunos4 */
37
#define SYS_setuid      23      /* old setuid in sunos4 */
38
#endif
39
#define SYS_getuid      24
40
#ifdef __svr4__
41
#define SYS_stime       25      /* old stime in sunos4 */
42
#endif
43
#define SYS_ptrace      26
44
#ifdef __svr4__
45
#define SYS_alarm       27      /* old alarm in sunos4 */
46
#define SYS_fstat       28      /* old fstat in sunos4 */
47
#define SYS_pause       29      /* old pause in sunos4 */
48
#define SYS_utime       30      /* old utime in sunos4 */
49
#define SYS_stty        31      /* old stty in sunos4 */
50
#define SYS_gtty        32      /* old gtty in sunos4 */
51
#endif
52
#define SYS_access      33
53
#ifdef __svr4__
54
#define SYS_nice        34      /* old nice in sunos4 */
55
#define SYS_statfs      35      /* old ftime in sunos4 */
56
#endif
57
#define SYS_sync        36
58
#define SYS_kill        37
59
#ifdef __svr4__
60
#define SYS_fstatfs     38
61
#define SYS_pgrpsys     39      /* old setpgrp in sunos4 */
62
#define SYS_xenix       40
63
#else
64
#define SYS_stat        38
65
#define SYS_lstat       40
66
#endif
67
#define SYS_dup         41
68
#define SYS_pipe        42
69
#define SYS_times       43      /* times is obsolete in sunos4, used anyway */
70
#define SYS_profil      44
71
#ifdef __svr4__
72
#define SYS_plock       45      /* unused in sunos4 */
73
#define SYS_setgid      46      /* old setgid in sunos4 */
74
#endif
75
#define SYS_getgid      47
76
#ifdef __svr4__
77
#define SYS_signal      48      /* old sigsys in sunos4 */
78
#define SYS_msgsys      49      /* unused in sunos4 */
79
#define SYS_sun         50      /* unused in sunos4 */
80
#endif
81
#define SYS_acct        51
82
#ifdef __svr4__
83
#define SYS_shmsys      52      /* old phys in sunos4 */
84
#define SYS_semsys      53
85
#else
86
#define SYS_mctl        53
87
#endif
88
#define SYS_ioctl       54
89
#ifdef __svr4__
90
#define SYS_uadmin      55
91
#else
92
#define SYS_reboot      55
93
#endif
94
                                /* 56 is old: mpxchan (reserved in sunos5) */
95
#ifdef __svr4__
96
#define SYS_utssys      57
97
#define SYS_fsync       58
98
#else
99
#define SYS_symlink     57
100
#define SYS_readlink    58
101
#endif
102
#define SYS_execve      59
103
#define SYS_umask       60
104
#define SYS_chroot      61
105
#ifdef __svr4__
106
#define SYS_fcntl       62
107
#define SYS_ulimit      63      /* unused in sunos4 */
108
                                /* 64-77 unused/reserved in sunos5 */
109
#else
110
#define SYS_fstat       62
111
#define SYS_getpagesize 64
112
#define SYS_msync       65
113
                                /* 66 is old: vfork */
114
                                /* 67 is old: vread */
115
                                /* 68 is old: vwrite */
116
#define SYS_sbrk        69
117
#define SYS_sstk        70
118
#define SYS_mmap        71
119
#define SYS_vadvise     72
120
#define SYS_munmap      73
121
#define SYS_mprotect    74
122
#define SYS_madvise     75
123
#define SYS_vhangup     76
124
                                /* 77 is old: vlimit */
125
#endif
126
 
127
#ifdef __svr4__
128
#define SYS_rfsys       78
129
#define SYS_rmdir       79
130
#define SYS_mkdir       80
131
#define SYS_getdents    81
132
                                /* 82 not used, was libattach */
133
                                /* 83 not used, was libdetach */
134
#define SYS_sysfs       84
135
#define SYS_getmsg      85
136
#define SYS_putmsg      86
137
#define SYS_poll        87
138
#define SYS_lstat       88
139
#define SYS_symlink     89
140
#define SYS_readlink    90
141
#define SYS_setgroups   91
142
#define SYS_getgroups   92
143
#define SYS_fchmod      93
144
#define SYS_fchown      94
145
#define SYS_sigprocmask 95
146
#define SYS_sigsuspend  96
147
#define SYS_sigaltstack 97
148
#define SYS_sigaction   98
149
#define SYS_sigpending  99
150
#define SYS_context     100
151
#define SYS_evsys       101
152
#define SYS_evtrapret   102
153
#define SYS_statvfs     103
154
#define SYS_fstatvfs    104
155
                                /* 105 reserved */
156
#define SYS_nfssys      106
157
#define SYS_waitsys     107
158
#define SYS_sigsendsys  108
159
#define SYS_hrtsys      109
160
#define SYS_acancel     110
161
#define SYS_async       111
162
#define SYS_priocntlsys 112
163
#define SYS_pathconf    113
164
#define SYS_mincore     114
165
#define SYS_mmap        115
166
#define SYS_mprotect    116
167
#define SYS_munmap      117
168
#define SYS_fpathconf   118
169
#define SYS_vfork       119
170
#define SYS_fchdir      120
171
#define SYS_readv       121
172
#define SYS_writev      122
173
#define SYS_xstat       123
174
#define SYS_lxstat      124
175
#define SYS_fxstat      125
176
#define SYS_xmknod      126
177
#define SYS_clocal      127
178
#define SYS_setrlimit   128
179
#define SYS_getrlimit   129
180
#define SYS_lchown      130
181
#define SYS_memcntl     131
182
#define SYS_getpmsg     132
183
#define SYS_putpmsg     133
184
#define SYS_rename      134
185
#define SYS_uname       135
186
#define SYS_setegid     136
187
#define SYS_sysconfig   137
188
#define SYS_adjtime     138
189
#define SYS_systeminfo  139
190
#define SYS_seteuid     141
191
#define SYS_vtrace      142
192
#define SYS_fork1       143
193
#define SYS_sigwait     144
194
#define SYS_lwp_info    145
195
#define SYS_yield       146
196
#define SYS_lwp_sema_p  147
197
#define SYS_lwp_sema_v  148
198
#define SYS_modctl      152
199
#define SYS_fchroot     153
200
#define SYS_utimes      154
201
#define SYS_vhangup     155
202
#define SYS_gettimeofday        156
203
#define SYS_getitimer           157
204
#define SYS_setitimer           158
205
#define SYS_lwp_create          159
206
#define SYS_lwp_exit            160
207
#define SYS_lwp_suspend         161
208
#define SYS_lwp_continue        162
209
#define SYS_lwp_kill            163
210
#define SYS_lwp_self            164
211
#define SYS_lwp_setprivate      165
212
#define SYS_lwp_getprivate      166
213
#define SYS_lwp_wait            167
214
#define SYS_lwp_mutex_unlock    168
215
#define SYS_lwp_mutex_lock      169
216
#define SYS_lwp_cond_wait       170
217
#define SYS_lwp_cond_signal     171
218
#define SYS_lwp_cond_broadcast  172
219
#define SYS_pread               173
220
#define SYS_pwrite              174
221
#define SYS_llseek              175
222
#define SYS_inst_sync           176
223
#define SYS_auditsys            186
224
#else
225
#define SYS_mincore     78
226
#define SYS_getgroups   79
227
#define SYS_setgroups   80
228
#define SYS_getpgrp     81
229
#define SYS_setpgrp     82
230
#define SYS_setitimer   83
231
                                /* 84 is old: wait & wait3 */
232
#define SYS_swapon      85
233
#define SYS_getitimer   86
234
#define SYS_gethostname 87
235
#define SYS_sethostname 88
236
#define SYS_getdtablesize 89
237
#define SYS_dup2        90
238
#define SYS_getdopt     91
239
#define SYS_fcntl       92
240
#define SYS_select      93
241
#define SYS_setdopt     94
242
#define SYS_fsync       95
243
#define SYS_setpriority 96
244
#define SYS_socket      97
245
#define SYS_connect     98
246
#define SYS_accept      99
247
#define SYS_getpriority 100
248
#define SYS_send        101
249
#define SYS_recv        102
250
                                /* 103 was socketaddr */
251
#define SYS_bind        104
252
#define SYS_setsockopt  105
253
#define SYS_listen      106
254
                                /* 107 was vtimes */
255
#define SYS_sigvec      108
256
#define SYS_sigblock    109
257
#define SYS_sigsetmask  110
258
#define SYS_sigpause    111
259
#define SYS_sigstack    112
260
#define SYS_recvmsg     113
261
#define SYS_sendmsg     114
262
#define SYS_vtrace      115
263
#define SYS_gettimeofday 116
264
#define SYS_getrusage   117
265
#define SYS_getsockopt  118
266
                                /* 119 is old resuba */
267
#define SYS_readv       120
268
#define SYS_writev      121
269
#define SYS_settimeofday 122
270
#define SYS_fchown      123
271
#define SYS_fchmod      124
272
#define SYS_recvfrom    125
273
#define SYS_setreuid    126
274
#define SYS_setregid    127
275
#define SYS_rename      128
276
#define SYS_truncate    129
277
#define SYS_ftruncate   130
278
#define SYS_flock       131
279
                                /* 132 is unused */
280
#define SYS_sendto      133
281
#define SYS_shutdown    134
282
#define SYS_socketpair  135
283
#define SYS_mkdir       136
284
#define SYS_rmdir       137
285
#define SYS_utimes      138
286
                                /* 139 is unused */
287
#define SYS_adjtime     140
288
#define SYS_getpeername 141
289
#define SYS_gethostid   142
290
                                /* 143 is old: sethostid */
291
#define SYS_getrlimit   144
292
#define SYS_setrlimit   145
293
#define SYS_killpg      146
294
                                /* 147 is unused */
295
                                /* 148 is old: setquota */
296
                                /* 149 is old: quota */
297
#define SYS_getsockname 150
298
#define SYS_getmsg      151
299
#define SYS_putmsg      152
300
#define SYS_poll        153
301
                                /* 154 is old: nfs_mount */
302
#define SYS_nfssvc      155
303
#define SYS_getdirentries 156
304
#define SYS_statfs      157
305
#define SYS_fstatfs     158
306
#define SYS_unmount     159
307
#define SYS_async_daemon 160
308
#define SYS_getfh       161
309
#define SYS_getdomainname 162
310
#define SYS_setdomainname 163
311
                                /* 164 is old: pcfs_mount */
312
#define SYS_quotactl    165
313
#define SYS_exportfs    166
314
#define SYS_mount       167
315
#define SYS_ustat       168
316
#define SYS_semsys      169
317
#define SYS_msgsys      170
318
#define SYS_shmsys      171
319
#define SYS_auditsys    172
320
#define SYS_rfssys      173
321
#define SYS_getdents    174
322
#define SYS_setsid      175
323
#define SYS_fchdir      176
324
#define SYS_fchroot     177
325
#define SYS_vpixsys     178
326
 
327
#define SYS_aioread     179
328
#define SYS_aiowrite    180
329
#define SYS_aiowait     181
330
#define SYS_aiocancel   182
331
 
332
#define SYS_sigpending  183
333
                                /* 184 is available */
334
#define SYS_setpgid     185
335
#define SYS_pathconf    186
336
#define SYS_fpathconf   187
337
#define SYS_sysconf     188
338
 
339
#define SYS_uname       189
340
 
341
#endif /* ! __svr4__ */
342
 
343
#endif /* _SYSCALL_H_ */
344
 
345
 
346
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.