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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [machine/] [spu/] [sys/] [linux_syscalls.h] - Blame information for rev 158

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/*
2
(C) Copyright IBM Corp. 2008
3
 
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 are met:
8
 
9
* Redistributions of source code must retain the above copyright notice,
10
this list of conditions and the following disclaimer.
11
* 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
* Neither the name of IBM nor the names of its contributors may be
15
used to endorse or promote products derived from this software without
16
specific prior written permission.
17
 
18
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
POSSIBILITY OF SUCH DAMAGE.
29
 
30
Author: Ken Werner <ken.werner@de.ibm.com>
31
*/
32
 
33
#ifndef __LINUX_SYSCALLS_H
34
#define __LINUX_SYSCALLS_H
35
#ifdef __cplusplus
36
extern "C" {
37
#endif
38
 
39
/* The system call numbers. See kernel source file
40
   arch/powerpc/include/asm/unistd.h.  */
41
#define __NR_read                   3
42
#define __NR_write                  4
43
#define __NR_open                   5
44
#define __NR_close                  6
45
#define __NR_waitpid                7
46
#define __NR_creat                  8
47
#define __NR_link                   9
48
#define __NR_unlink                 10
49
 
50
#define __NR_chdir                  12
51
#define __NR_time                   13
52
#define __NR_mkdod                  14
53
#define __NR_chmod                  15
54
#define __NR_lchown                 16
55
 
56
#define __NR_lseek                  19
57
#define __NR_getpid                 20
58
 
59
#define __NR_setuid                 23
60
#define __NR_getuid                 24
61
#define __NR_stime                  25
62
 
63
#define __NR_alarm                  27
64
 
65
#define __NR_access                 33
66
#define __NR_nice                   34
67
 
68
#define __NR_sync                   36
69
#define __NR_kill                   37
70
#define __NR_rename                 38
71
#define __NR_mkdir                  39
72
#define __NR_rmdir                  40
73
#define __NR_dup                    41
74
#define __NR_pipe                   42
75
#define __NR_times                  43
76
 
77
#define __NR_brk                    45
78
#define __NR_setgid                 46
79
#define __NR_getgid                 47
80
 
81
#define __NR_geteuid                49
82
#define __NR_getegid                50
83
 
84
#define __NR_ioctl                  54
85
#define __NR_fcntl                  55
86
 
87
#define __NR_setpgid                57
88
 
89
#define __NR_umask                  60
90
#define __NR_chroot                 61
91
 
92
#define __NR_dup2                   63
93
#define __NR_getppid                64
94
#define __NR_getpgrp                65
95
#define __NR_setsid                 66
96
 
97
#define __NR_sgetmask               68
98
#define __NR_ssetmask               69
99
#define __NR_setreuid               70
100
#define __NR_setregid               71
101
 
102
#define __NR_sethostname            74
103
#define __NR_setrlimit              75
104
 
105
#define __NR_getrusage              77
106
#define __NR_gettimeofday           78
107
#define __NR_settimeofday           79
108
#define __NR_getgroups              80
109
#define __NR_setgroups              81
110
 
111
#define __NR_symlink                83
112
 
113
#define __NR_readlink               85
114
 
115
#define __NR_mmap                   90
116
#define __NR_munmap                 91
117
#define __NR_truncate               92
118
#define __NR_ftruncate              93
119
#define __NR_fchmod                 94
120
#define __NR_fchown                 95
121
#define __NR_getpriority            96
122
#define __NR_setpriority            97
123
 
124
#define __NR_socketcall             102
125
#define __NR_syslog                 103
126
#define __NR_setitimer              104
127
#define __NR_getitimer              105
128
#define __NR_newstat                106
129
#define __NR_newlstat               107
130
#define __NR_newfstat               108
131
 
132
#define __NR_vhangup                111
133
 
134
#define __NR_wait4                  114
135
 
136
#define __NR_sysinfo                116
137
 
138
#define __NR_fsync                  118
139
 
140
#define __NR_setdomainname          121
141
#define __NR_newuname               122
142
 
143
#define __NR_adjtimex               124
144
#define __NR_mprotect               125
145
 
146
#define __NR_getpgid                132
147
#define __NR_fchdir                 133
148
#define __NR_bdflush                134
149
 
150
#define __NR_personality            136
151
 
152
#define __NR_setfsuid               138
153
#define __NR_setfsgid               139
154
#define __NR__llseek                140
155
#define __NR_getdents               141
156
#define __NR__newselect             142
157
#define __NR_flock                  143
158
#define __NR_msync                  144
159
#define __NR_readv                  145
160
#define __NR_writev                 146
161
#define __NR_getsid                 147
162
#define __NR_fdatasync              148
163
 
164
#define __NR_mlock                  150
165
#define __NR_munlock                151
166
#define __NR_mlockall               152
167
#define __NR_munlockall             153
168
#define __NR_sched_setparam         154
169
#define __NR_sched_getparam         155
170
#define __NR_sched_setscheduler     156
171
#define __NR_sched_getscheduler     157
172
#define __NR_sched_yield            158
173
#define __NR_sched_get_priority_max 159
174
#define __NR_sched_get_priority_min 160
175
#define __NR_sched_rr_get_interval  161
176
#define __NR_nanosleep              162
177
#define __NR_mremap                 163
178
#define __NR_setresuid              164
179
#define __NR_getresuid              165
180
 
181
#define __NR_poll                   167
182
 
183
#define __NR_setresgid              169
184
#define __NR_getresgid              170
185
#define __NR_prctl                  171
186
 
187
#define __NR_pread64                179
188
#define __NR_pwrite64               180
189
#define __NR_chown                  181
190
#define __NR_getcwd                 182
191
#define __NR_capget                 183
192
#define __NR_capset                 184
193
 
194
#define __NR_sendfile               185
195
 
196
#define __NR_getrlimit              190
197
#define __NR_readahead              191
198
 
199
#define __NR_getdents64             202
200
#define __NR_pivot_root             203
201
 
202
#define __NR_madvise                205
203
#define __NR_mincore                206
204
#define __NR_gettid                 207
205
#define __NR_tkill                  208
206
#define __NR_setxattr               209
207
#define __NR_lsetxattr              210
208
#define __NR_fsetxattr              211
209
#define __NR_getxattr               212
210
#define __NR_lgetxattr              213
211
#define __NR_fgetxattr              214
212
#define __NR_listxattr              215
213
#define __NR_llistxattr             216
214
#define __NR_flistxattr             217
215
#define __NR_removexattr            218
216
#define __NR_lremovexattr           219
217
#define __NR_fremovexattr           220
218
#define __NR_futex                  221
219
#define __NR_sched_setaffinity      222
220
#define __NR_sched_getaffinity      223
221
 
222
#define __NR_io_setup               227
223
#define __NR_io_destroy             228
224
#define __NR_io_getevents           229
225
#define __NR_io_submit              230
226
#define __NR_io_cancel              231
227
 
228
#define __NR_fadvise64              233
229
 
230
#define __NR_epoll_create           236
231
#define __NR_epoll_ctl              237
232
#define __NR_epoll_wait             238
233
#define __NR_remap_file_pages       239
234
#define __NR_timer_create           240
235
#define __NR_timer_settime          241
236
#define __NR_timer_gettime          242
237
#define __NR_timer_getoverrun       243
238
#define __NR_timer_delete           244
239
#define __NR_clock_settime          245
240
#define __NR_clock_gettime          246
241
#define __NR_clock_getres           247
242
#define __NR_clock_nanosleep        248
243
 
244
#define __NR_tgkill                 250
245
#define __NR_utimes                 251
246
#define __NR_statfs64               252
247
#define __NR_fstatfs64              253
248
 
249
#define __NR_rtas                   255
250
 
251
#define __NR_unshare                282
252
#define __NR_splice                 283
253
#define __NR_tee                    284
254
#define __NR_vmsplice               285
255
#define __NR_openat                 286
256
#define __NR_mkdirat                287
257
#define __NR_mknodat                288
258
#define __NR_fchownat               289
259
#define __NR_futimesat              290
260
#define __NR_fstatat64              291
261
#define __NR_unlinkat               292
262
#define __NR_renameat               293
263
#define __NR_linkat                 294
264
#define __NR_symlinkat              295
265
#define __NR_readlinkat             296
266
#define __NR_fchmodat               297
267
#define __NR_faccessat              298
268
#define __NR_get_robust_list        299
269
#define __NR_set_robust_list        300
270
#define __NR_move_pages             301
271
#define __NR_getcpu                 302
272
 
273
#define __NR_utimensat              304
274
#define __NR_signalfd               305
275
#define __NR_timerfd                306
276
#define __NR_eventfd                307
277
#define __NR_sync_file_range2       308
278
#define __NR_fallocate              309
279
#define __NR_subpage_prot           310
280
#define __NR_timerfd_settime        311
281
#define __NR_timerfd_gettime        312
282
#define __NR_signalfd4              313
283
#define __NR_eventfd2               314
284
#define __NR_epoll_create1          315
285
#define __NR_dup3                   316
286
#define __NR_pipe2                  317
287
#define __NR_inotify_init1          318
288
 
289
/* System callbacks from the SPU. See kernel source file
290
   arch/powerpc/include/asm/spu.h.  */
291
struct spu_syscall_block
292
{
293
  unsigned long long nr_ret;    /* System call nr and return value.  */
294
  unsigned long long parm[6];   /* System call arguments.  */
295
};
296
 
297
/* Issues a Linux system call.  */
298
int __linux_syscall (struct spu_syscall_block *s);
299
 
300
#ifdef __cplusplus
301
}
302
#endif
303
#endif

powered by: WebSVN 2.1.0

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