]> Git Repo - binutils.git/blob - sim/common/target-newlib-syscall.c
Automatic date update in version.in
[binutils.git] / sim / common / target-newlib-syscall.c
1 /* Target syscall mappings for newlib/libgloss environment.
2    Copyright 1995-2022 Free Software Foundation, Inc.
3    Contributed by Mike Frysinger.
4
5    This file is part of simulators.
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 3 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19
20 /* This must come before any other includes.  */
21 #include "defs.h"
22
23 #include "sim/callback.h"
24
25 #include "target-newlib-syscall.h"
26
27 /* This file is kept up-to-date via the gennltvals.py script.  Do not edit
28    anything between the START & END comment blocks below.  */
29
30   /* gennltvals: START */
31 CB_TARGET_DEFS_MAP cb_cr16_syscall_map[] = {
32 #ifdef CB_SYS_ARG
33   { "ARG", CB_SYS_ARG, TARGET_NEWLIB_CR16_SYS_ARG },
34 #endif
35 #ifdef CB_SYS_chdir
36   { "chdir", CB_SYS_chdir, TARGET_NEWLIB_CR16_SYS_chdir },
37 #endif
38 #ifdef CB_SYS_chmod
39   { "chmod", CB_SYS_chmod, TARGET_NEWLIB_CR16_SYS_chmod },
40 #endif
41 #ifdef CB_SYS_chown
42   { "chown", CB_SYS_chown, TARGET_NEWLIB_CR16_SYS_chown },
43 #endif
44 #ifdef CB_SYS_close
45   { "close", CB_SYS_close, TARGET_NEWLIB_CR16_SYS_close },
46 #endif
47 #ifdef CB_SYS_create
48   { "create", CB_SYS_create, TARGET_NEWLIB_CR16_SYS_create },
49 #endif
50 #ifdef CB_SYS_execv
51   { "execv", CB_SYS_execv, TARGET_NEWLIB_CR16_SYS_execv },
52 #endif
53 #ifdef CB_SYS_execve
54   { "execve", CB_SYS_execve, TARGET_NEWLIB_CR16_SYS_execve },
55 #endif
56 #ifdef CB_SYS_exit
57   { "exit", CB_SYS_exit, TARGET_NEWLIB_CR16_SYS_exit },
58 #endif
59 #ifdef CB_SYS_fork
60   { "fork", CB_SYS_fork, TARGET_NEWLIB_CR16_SYS_fork },
61 #endif
62 #ifdef CB_SYS_fstat
63   { "fstat", CB_SYS_fstat, TARGET_NEWLIB_CR16_SYS_fstat },
64 #endif
65 #ifdef CB_SYS_getpid
66   { "getpid", CB_SYS_getpid, TARGET_NEWLIB_CR16_SYS_getpid },
67 #endif
68 #ifdef CB_SYS_isatty
69   { "isatty", CB_SYS_isatty, TARGET_NEWLIB_CR16_SYS_isatty },
70 #endif
71 #ifdef CB_SYS_kill
72   { "kill", CB_SYS_kill, TARGET_NEWLIB_CR16_SYS_kill },
73 #endif
74 #ifdef CB_SYS_link
75   { "link", CB_SYS_link, TARGET_NEWLIB_CR16_SYS_link },
76 #endif
77 #ifdef CB_SYS_lseek
78   { "lseek", CB_SYS_lseek, TARGET_NEWLIB_CR16_SYS_lseek },
79 #endif
80 #ifdef CB_SYS_mknod
81   { "mknod", CB_SYS_mknod, TARGET_NEWLIB_CR16_SYS_mknod },
82 #endif
83 #ifdef CB_SYS_open
84   { "open", CB_SYS_open, TARGET_NEWLIB_CR16_SYS_open },
85 #endif
86 #ifdef CB_SYS_pipe
87   { "pipe", CB_SYS_pipe, TARGET_NEWLIB_CR16_SYS_pipe },
88 #endif
89 #ifdef CB_SYS_read
90   { "read", CB_SYS_read, TARGET_NEWLIB_CR16_SYS_read },
91 #endif
92 #ifdef CB_SYS_rename
93   { "rename", CB_SYS_rename, TARGET_NEWLIB_CR16_SYS_rename },
94 #endif
95 #ifdef CB_SYS_stat
96   { "stat", CB_SYS_stat, TARGET_NEWLIB_CR16_SYS_stat },
97 #endif
98 #ifdef CB_SYS_time
99   { "time", CB_SYS_time, TARGET_NEWLIB_CR16_SYS_time },
100 #endif
101 #ifdef CB_SYS_unlink
102   { "unlink", CB_SYS_unlink, TARGET_NEWLIB_CR16_SYS_unlink },
103 #endif
104 #ifdef CB_SYS_utime
105   { "utime", CB_SYS_utime, TARGET_NEWLIB_CR16_SYS_utime },
106 #endif
107 #ifdef CB_SYS_wait
108   { "wait", CB_SYS_wait, TARGET_NEWLIB_CR16_SYS_wait },
109 #endif
110 #ifdef CB_SYS_wait4
111   { "wait4", CB_SYS_wait4, TARGET_NEWLIB_CR16_SYS_wait4 },
112 #endif
113 #ifdef CB_SYS_write
114   { "write", CB_SYS_write, TARGET_NEWLIB_CR16_SYS_write },
115 #endif
116   {NULL, -1, -1},
117 };
118
119 CB_TARGET_DEFS_MAP cb_d10v_syscall_map[] = {
120 #ifdef CB_SYS_ARG
121   { "ARG", CB_SYS_ARG, TARGET_NEWLIB_D10V_SYS_ARG },
122 #endif
123 #ifdef CB_SYS_chdir
124   { "chdir", CB_SYS_chdir, TARGET_NEWLIB_D10V_SYS_chdir },
125 #endif
126 #ifdef CB_SYS_chmod
127   { "chmod", CB_SYS_chmod, TARGET_NEWLIB_D10V_SYS_chmod },
128 #endif
129 #ifdef CB_SYS_chown
130   { "chown", CB_SYS_chown, TARGET_NEWLIB_D10V_SYS_chown },
131 #endif
132 #ifdef CB_SYS_close
133   { "close", CB_SYS_close, TARGET_NEWLIB_D10V_SYS_close },
134 #endif
135 #ifdef CB_SYS_creat
136   { "creat", CB_SYS_creat, TARGET_NEWLIB_D10V_SYS_creat },
137 #endif
138 #ifdef CB_SYS_execv
139   { "execv", CB_SYS_execv, TARGET_NEWLIB_D10V_SYS_execv },
140 #endif
141 #ifdef CB_SYS_execve
142   { "execve", CB_SYS_execve, TARGET_NEWLIB_D10V_SYS_execve },
143 #endif
144 #ifdef CB_SYS_exit
145   { "exit", CB_SYS_exit, TARGET_NEWLIB_D10V_SYS_exit },
146 #endif
147 #ifdef CB_SYS_fork
148   { "fork", CB_SYS_fork, TARGET_NEWLIB_D10V_SYS_fork },
149 #endif
150 #ifdef CB_SYS_fstat
151   { "fstat", CB_SYS_fstat, TARGET_NEWLIB_D10V_SYS_fstat },
152 #endif
153 #ifdef CB_SYS_getpid
154   { "getpid", CB_SYS_getpid, TARGET_NEWLIB_D10V_SYS_getpid },
155 #endif
156 #ifdef CB_SYS_isatty
157   { "isatty", CB_SYS_isatty, TARGET_NEWLIB_D10V_SYS_isatty },
158 #endif
159 #ifdef CB_SYS_kill
160   { "kill", CB_SYS_kill, TARGET_NEWLIB_D10V_SYS_kill },
161 #endif
162 #ifdef CB_SYS_link
163   { "link", CB_SYS_link, TARGET_NEWLIB_D10V_SYS_link },
164 #endif
165 #ifdef CB_SYS_lseek
166   { "lseek", CB_SYS_lseek, TARGET_NEWLIB_D10V_SYS_lseek },
167 #endif
168 #ifdef CB_SYS_mknod
169   { "mknod", CB_SYS_mknod, TARGET_NEWLIB_D10V_SYS_mknod },
170 #endif
171 #ifdef CB_SYS_open
172   { "open", CB_SYS_open, TARGET_NEWLIB_D10V_SYS_open },
173 #endif
174 #ifdef CB_SYS_pipe
175   { "pipe", CB_SYS_pipe, TARGET_NEWLIB_D10V_SYS_pipe },
176 #endif
177 #ifdef CB_SYS_read
178   { "read", CB_SYS_read, TARGET_NEWLIB_D10V_SYS_read },
179 #endif
180 #ifdef CB_SYS_stat
181   { "stat", CB_SYS_stat, TARGET_NEWLIB_D10V_SYS_stat },
182 #endif
183 #ifdef CB_SYS_time
184   { "time", CB_SYS_time, TARGET_NEWLIB_D10V_SYS_time },
185 #endif
186 #ifdef CB_SYS_unlink
187   { "unlink", CB_SYS_unlink, TARGET_NEWLIB_D10V_SYS_unlink },
188 #endif
189 #ifdef CB_SYS_utime
190   { "utime", CB_SYS_utime, TARGET_NEWLIB_D10V_SYS_utime },
191 #endif
192 #ifdef CB_SYS_wait
193   { "wait", CB_SYS_wait, TARGET_NEWLIB_D10V_SYS_wait },
194 #endif
195 #ifdef CB_SYS_wait4
196   { "wait4", CB_SYS_wait4, TARGET_NEWLIB_D10V_SYS_wait4 },
197 #endif
198 #ifdef CB_SYS_write
199   { "write", CB_SYS_write, TARGET_NEWLIB_D10V_SYS_write },
200 #endif
201   {NULL, -1, -1},
202 };
203
204 CB_TARGET_DEFS_MAP cb_mcore_syscall_map[] = {
205 #ifdef CB_SYS_access
206   { "access", CB_SYS_access, TARGET_NEWLIB_MCORE_SYS_access },
207 #endif
208 #ifdef CB_SYS_close
209   { "close", CB_SYS_close, TARGET_NEWLIB_MCORE_SYS_close },
210 #endif
211 #ifdef CB_SYS_creat
212   { "creat", CB_SYS_creat, TARGET_NEWLIB_MCORE_SYS_creat },
213 #endif
214 #ifdef CB_SYS_link
215   { "link", CB_SYS_link, TARGET_NEWLIB_MCORE_SYS_link },
216 #endif
217 #ifdef CB_SYS_lseek
218   { "lseek", CB_SYS_lseek, TARGET_NEWLIB_MCORE_SYS_lseek },
219 #endif
220 #ifdef CB_SYS_open
221   { "open", CB_SYS_open, TARGET_NEWLIB_MCORE_SYS_open },
222 #endif
223 #ifdef CB_SYS_read
224   { "read", CB_SYS_read, TARGET_NEWLIB_MCORE_SYS_read },
225 #endif
226 #ifdef CB_SYS_time
227   { "time", CB_SYS_time, TARGET_NEWLIB_MCORE_SYS_time },
228 #endif
229 #ifdef CB_SYS_times
230   { "times", CB_SYS_times, TARGET_NEWLIB_MCORE_SYS_times },
231 #endif
232 #ifdef CB_SYS_unlink
233   { "unlink", CB_SYS_unlink, TARGET_NEWLIB_MCORE_SYS_unlink },
234 #endif
235 #ifdef CB_SYS_write
236   { "write", CB_SYS_write, TARGET_NEWLIB_MCORE_SYS_write },
237 #endif
238   {NULL, -1, -1},
239 };
240
241 CB_TARGET_DEFS_MAP cb_riscv_syscall_map[] = {
242 #ifdef CB_SYS_access
243   { "access", CB_SYS_access, TARGET_NEWLIB_RISCV_SYS_access },
244 #endif
245 #ifdef CB_SYS_brk
246   { "brk", CB_SYS_brk, TARGET_NEWLIB_RISCV_SYS_brk },
247 #endif
248 #ifdef CB_SYS_chdir
249   { "chdir", CB_SYS_chdir, TARGET_NEWLIB_RISCV_SYS_chdir },
250 #endif
251 #ifdef CB_SYS_clock_gettime64
252   { "clock_gettime64", CB_SYS_clock_gettime64, TARGET_NEWLIB_RISCV_SYS_clock_gettime64 },
253 #endif
254 #ifdef CB_SYS_close
255   { "close", CB_SYS_close, TARGET_NEWLIB_RISCV_SYS_close },
256 #endif
257 #ifdef CB_SYS_dup
258   { "dup", CB_SYS_dup, TARGET_NEWLIB_RISCV_SYS_dup },
259 #endif
260 #ifdef CB_SYS_exit
261   { "exit", CB_SYS_exit, TARGET_NEWLIB_RISCV_SYS_exit },
262 #endif
263 #ifdef CB_SYS_exit_group
264   { "exit_group", CB_SYS_exit_group, TARGET_NEWLIB_RISCV_SYS_exit_group },
265 #endif
266 #ifdef CB_SYS_faccessat
267   { "faccessat", CB_SYS_faccessat, TARGET_NEWLIB_RISCV_SYS_faccessat },
268 #endif
269 #ifdef CB_SYS_fcntl
270   { "fcntl", CB_SYS_fcntl, TARGET_NEWLIB_RISCV_SYS_fcntl },
271 #endif
272 #ifdef CB_SYS_fstat
273   { "fstat", CB_SYS_fstat, TARGET_NEWLIB_RISCV_SYS_fstat },
274 #endif
275 #ifdef CB_SYS_fstatat
276   { "fstatat", CB_SYS_fstatat, TARGET_NEWLIB_RISCV_SYS_fstatat },
277 #endif
278 #ifdef CB_SYS_getcwd
279   { "getcwd", CB_SYS_getcwd, TARGET_NEWLIB_RISCV_SYS_getcwd },
280 #endif
281 #ifdef CB_SYS_getdents
282   { "getdents", CB_SYS_getdents, TARGET_NEWLIB_RISCV_SYS_getdents },
283 #endif
284 #ifdef CB_SYS_getegid
285   { "getegid", CB_SYS_getegid, TARGET_NEWLIB_RISCV_SYS_getegid },
286 #endif
287 #ifdef CB_SYS_geteuid
288   { "geteuid", CB_SYS_geteuid, TARGET_NEWLIB_RISCV_SYS_geteuid },
289 #endif
290 #ifdef CB_SYS_getgid
291   { "getgid", CB_SYS_getgid, TARGET_NEWLIB_RISCV_SYS_getgid },
292 #endif
293 #ifdef CB_SYS_getmainvars
294   { "getmainvars", CB_SYS_getmainvars, TARGET_NEWLIB_RISCV_SYS_getmainvars },
295 #endif
296 #ifdef CB_SYS_getpid
297   { "getpid", CB_SYS_getpid, TARGET_NEWLIB_RISCV_SYS_getpid },
298 #endif
299 #ifdef CB_SYS_gettimeofday
300   { "gettimeofday", CB_SYS_gettimeofday, TARGET_NEWLIB_RISCV_SYS_gettimeofday },
301 #endif
302 #ifdef CB_SYS_getuid
303   { "getuid", CB_SYS_getuid, TARGET_NEWLIB_RISCV_SYS_getuid },
304 #endif
305 #ifdef CB_SYS_kill
306   { "kill", CB_SYS_kill, TARGET_NEWLIB_RISCV_SYS_kill },
307 #endif
308 #ifdef CB_SYS_link
309   { "link", CB_SYS_link, TARGET_NEWLIB_RISCV_SYS_link },
310 #endif
311 #ifdef CB_SYS_lseek
312   { "lseek", CB_SYS_lseek, TARGET_NEWLIB_RISCV_SYS_lseek },
313 #endif
314 #ifdef CB_SYS_lstat
315   { "lstat", CB_SYS_lstat, TARGET_NEWLIB_RISCV_SYS_lstat },
316 #endif
317 #ifdef CB_SYS_mkdir
318   { "mkdir", CB_SYS_mkdir, TARGET_NEWLIB_RISCV_SYS_mkdir },
319 #endif
320 #ifdef CB_SYS_mmap
321   { "mmap", CB_SYS_mmap, TARGET_NEWLIB_RISCV_SYS_mmap },
322 #endif
323 #ifdef CB_SYS_mremap
324   { "mremap", CB_SYS_mremap, TARGET_NEWLIB_RISCV_SYS_mremap },
325 #endif
326 #ifdef CB_SYS_munmap
327   { "munmap", CB_SYS_munmap, TARGET_NEWLIB_RISCV_SYS_munmap },
328 #endif
329 #ifdef CB_SYS_open
330   { "open", CB_SYS_open, TARGET_NEWLIB_RISCV_SYS_open },
331 #endif
332 #ifdef CB_SYS_openat
333   { "openat", CB_SYS_openat, TARGET_NEWLIB_RISCV_SYS_openat },
334 #endif
335 #ifdef CB_SYS_pread
336   { "pread", CB_SYS_pread, TARGET_NEWLIB_RISCV_SYS_pread },
337 #endif
338 #ifdef CB_SYS_pwrite
339   { "pwrite", CB_SYS_pwrite, TARGET_NEWLIB_RISCV_SYS_pwrite },
340 #endif
341 #ifdef CB_SYS_read
342   { "read", CB_SYS_read, TARGET_NEWLIB_RISCV_SYS_read },
343 #endif
344 #ifdef CB_SYS_rt_sigaction
345   { "rt_sigaction", CB_SYS_rt_sigaction, TARGET_NEWLIB_RISCV_SYS_rt_sigaction },
346 #endif
347 #ifdef CB_SYS_stat
348   { "stat", CB_SYS_stat, TARGET_NEWLIB_RISCV_SYS_stat },
349 #endif
350 #ifdef CB_SYS_time
351   { "time", CB_SYS_time, TARGET_NEWLIB_RISCV_SYS_time },
352 #endif
353 #ifdef CB_SYS_times
354   { "times", CB_SYS_times, TARGET_NEWLIB_RISCV_SYS_times },
355 #endif
356 #ifdef CB_SYS_uname
357   { "uname", CB_SYS_uname, TARGET_NEWLIB_RISCV_SYS_uname },
358 #endif
359 #ifdef CB_SYS_unlink
360   { "unlink", CB_SYS_unlink, TARGET_NEWLIB_RISCV_SYS_unlink },
361 #endif
362 #ifdef CB_SYS_write
363   { "write", CB_SYS_write, TARGET_NEWLIB_RISCV_SYS_write },
364 #endif
365 #ifdef CB_SYS_writev
366   { "writev", CB_SYS_writev, TARGET_NEWLIB_RISCV_SYS_writev },
367 #endif
368   {NULL, -1, -1},
369 };
370
371 CB_TARGET_DEFS_MAP cb_sh_syscall_map[] = {
372 #ifdef CB_SYS_ARG
373   { "ARG", CB_SYS_ARG, TARGET_NEWLIB_SH_SYS_ARG },
374 #endif
375 #ifdef CB_SYS_argc
376   { "argc", CB_SYS_argc, TARGET_NEWLIB_SH_SYS_argc },
377 #endif
378 #ifdef CB_SYS_argn
379   { "argn", CB_SYS_argn, TARGET_NEWLIB_SH_SYS_argn },
380 #endif
381 #ifdef CB_SYS_argnlen
382   { "argnlen", CB_SYS_argnlen, TARGET_NEWLIB_SH_SYS_argnlen },
383 #endif
384 #ifdef CB_SYS_chdir
385   { "chdir", CB_SYS_chdir, TARGET_NEWLIB_SH_SYS_chdir },
386 #endif
387 #ifdef CB_SYS_chmod
388   { "chmod", CB_SYS_chmod, TARGET_NEWLIB_SH_SYS_chmod },
389 #endif
390 #ifdef CB_SYS_chown
391   { "chown", CB_SYS_chown, TARGET_NEWLIB_SH_SYS_chown },
392 #endif
393 #ifdef CB_SYS_close
394   { "close", CB_SYS_close, TARGET_NEWLIB_SH_SYS_close },
395 #endif
396 #ifdef CB_SYS_creat
397   { "creat", CB_SYS_creat, TARGET_NEWLIB_SH_SYS_creat },
398 #endif
399 #ifdef CB_SYS_execv
400   { "execv", CB_SYS_execv, TARGET_NEWLIB_SH_SYS_execv },
401 #endif
402 #ifdef CB_SYS_execve
403   { "execve", CB_SYS_execve, TARGET_NEWLIB_SH_SYS_execve },
404 #endif
405 #ifdef CB_SYS_exit
406   { "exit", CB_SYS_exit, TARGET_NEWLIB_SH_SYS_exit },
407 #endif
408 #ifdef CB_SYS_fork
409   { "fork", CB_SYS_fork, TARGET_NEWLIB_SH_SYS_fork },
410 #endif
411 #ifdef CB_SYS_fstat
412   { "fstat", CB_SYS_fstat, TARGET_NEWLIB_SH_SYS_fstat },
413 #endif
414 #ifdef CB_SYS_ftruncate
415   { "ftruncate", CB_SYS_ftruncate, TARGET_NEWLIB_SH_SYS_ftruncate },
416 #endif
417 #ifdef CB_SYS_getpid
418   { "getpid", CB_SYS_getpid, TARGET_NEWLIB_SH_SYS_getpid },
419 #endif
420 #ifdef CB_SYS_isatty
421   { "isatty", CB_SYS_isatty, TARGET_NEWLIB_SH_SYS_isatty },
422 #endif
423 #ifdef CB_SYS_link
424   { "link", CB_SYS_link, TARGET_NEWLIB_SH_SYS_link },
425 #endif
426 #ifdef CB_SYS_lseek
427   { "lseek", CB_SYS_lseek, TARGET_NEWLIB_SH_SYS_lseek },
428 #endif
429 #ifdef CB_SYS_mknod
430   { "mknod", CB_SYS_mknod, TARGET_NEWLIB_SH_SYS_mknod },
431 #endif
432 #ifdef CB_SYS_open
433   { "open", CB_SYS_open, TARGET_NEWLIB_SH_SYS_open },
434 #endif
435 #ifdef CB_SYS_pipe
436   { "pipe", CB_SYS_pipe, TARGET_NEWLIB_SH_SYS_pipe },
437 #endif
438 #ifdef CB_SYS_read
439   { "read", CB_SYS_read, TARGET_NEWLIB_SH_SYS_read },
440 #endif
441 #ifdef CB_SYS_stat
442   { "stat", CB_SYS_stat, TARGET_NEWLIB_SH_SYS_stat },
443 #endif
444 #ifdef CB_SYS_time
445   { "time", CB_SYS_time, TARGET_NEWLIB_SH_SYS_time },
446 #endif
447 #ifdef CB_SYS_truncate
448   { "truncate", CB_SYS_truncate, TARGET_NEWLIB_SH_SYS_truncate },
449 #endif
450 #ifdef CB_SYS_unlink
451   { "unlink", CB_SYS_unlink, TARGET_NEWLIB_SH_SYS_unlink },
452 #endif
453 #ifdef CB_SYS_utime
454   { "utime", CB_SYS_utime, TARGET_NEWLIB_SH_SYS_utime },
455 #endif
456 #ifdef CB_SYS_wait
457   { "wait", CB_SYS_wait, TARGET_NEWLIB_SH_SYS_wait },
458 #endif
459 #ifdef CB_SYS_wait4
460   { "wait4", CB_SYS_wait4, TARGET_NEWLIB_SH_SYS_wait4 },
461 #endif
462 #ifdef CB_SYS_write
463   { "write", CB_SYS_write, TARGET_NEWLIB_SH_SYS_write },
464 #endif
465   {NULL, -1, -1},
466 };
467
468 CB_TARGET_DEFS_MAP cb_v850_syscall_map[] = {
469 #ifdef CB_SYS_ARG
470   { "ARG", CB_SYS_ARG, TARGET_NEWLIB_V850_SYS_ARG },
471 #endif
472 #ifdef CB_SYS_chdir
473   { "chdir", CB_SYS_chdir, TARGET_NEWLIB_V850_SYS_chdir },
474 #endif
475 #ifdef CB_SYS_chmod
476   { "chmod", CB_SYS_chmod, TARGET_NEWLIB_V850_SYS_chmod },
477 #endif
478 #ifdef CB_SYS_chown
479   { "chown", CB_SYS_chown, TARGET_NEWLIB_V850_SYS_chown },
480 #endif
481 #ifdef CB_SYS_close
482   { "close", CB_SYS_close, TARGET_NEWLIB_V850_SYS_close },
483 #endif
484 #ifdef CB_SYS_creat
485   { "creat", CB_SYS_creat, TARGET_NEWLIB_V850_SYS_creat },
486 #endif
487 #ifdef CB_SYS_execv
488   { "execv", CB_SYS_execv, TARGET_NEWLIB_V850_SYS_execv },
489 #endif
490 #ifdef CB_SYS_execve
491   { "execve", CB_SYS_execve, TARGET_NEWLIB_V850_SYS_execve },
492 #endif
493 #ifdef CB_SYS_exit
494   { "exit", CB_SYS_exit, TARGET_NEWLIB_V850_SYS_exit },
495 #endif
496 #ifdef CB_SYS_fork
497   { "fork", CB_SYS_fork, TARGET_NEWLIB_V850_SYS_fork },
498 #endif
499 #ifdef CB_SYS_fstat
500   { "fstat", CB_SYS_fstat, TARGET_NEWLIB_V850_SYS_fstat },
501 #endif
502 #ifdef CB_SYS_getpid
503   { "getpid", CB_SYS_getpid, TARGET_NEWLIB_V850_SYS_getpid },
504 #endif
505 #ifdef CB_SYS_gettimeofday
506   { "gettimeofday", CB_SYS_gettimeofday, TARGET_NEWLIB_V850_SYS_gettimeofday },
507 #endif
508 #ifdef CB_SYS_isatty
509   { "isatty", CB_SYS_isatty, TARGET_NEWLIB_V850_SYS_isatty },
510 #endif
511 #ifdef CB_SYS_link
512   { "link", CB_SYS_link, TARGET_NEWLIB_V850_SYS_link },
513 #endif
514 #ifdef CB_SYS_lseek
515   { "lseek", CB_SYS_lseek, TARGET_NEWLIB_V850_SYS_lseek },
516 #endif
517 #ifdef CB_SYS_mknod
518   { "mknod", CB_SYS_mknod, TARGET_NEWLIB_V850_SYS_mknod },
519 #endif
520 #ifdef CB_SYS_open
521   { "open", CB_SYS_open, TARGET_NEWLIB_V850_SYS_open },
522 #endif
523 #ifdef CB_SYS_pipe
524   { "pipe", CB_SYS_pipe, TARGET_NEWLIB_V850_SYS_pipe },
525 #endif
526 #ifdef CB_SYS_read
527   { "read", CB_SYS_read, TARGET_NEWLIB_V850_SYS_read },
528 #endif
529 #ifdef CB_SYS_rename
530   { "rename", CB_SYS_rename, TARGET_NEWLIB_V850_SYS_rename },
531 #endif
532 #ifdef CB_SYS_stat
533   { "stat", CB_SYS_stat, TARGET_NEWLIB_V850_SYS_stat },
534 #endif
535 #ifdef CB_SYS_time
536   { "time", CB_SYS_time, TARGET_NEWLIB_V850_SYS_time },
537 #endif
538 #ifdef CB_SYS_times
539   { "times", CB_SYS_times, TARGET_NEWLIB_V850_SYS_times },
540 #endif
541 #ifdef CB_SYS_unlink
542   { "unlink", CB_SYS_unlink, TARGET_NEWLIB_V850_SYS_unlink },
543 #endif
544 #ifdef CB_SYS_utime
545   { "utime", CB_SYS_utime, TARGET_NEWLIB_V850_SYS_utime },
546 #endif
547 #ifdef CB_SYS_wait
548   { "wait", CB_SYS_wait, TARGET_NEWLIB_V850_SYS_wait },
549 #endif
550 #ifdef CB_SYS_wait4
551   { "wait4", CB_SYS_wait4, TARGET_NEWLIB_V850_SYS_wait4 },
552 #endif
553 #ifdef CB_SYS_write
554   { "write", CB_SYS_write, TARGET_NEWLIB_V850_SYS_write },
555 #endif
556   {NULL, -1, -1},
557 };
558
559 CB_TARGET_DEFS_MAP cb_init_syscall_map[] = {
560 #ifdef CB_SYS_argc
561   { "argc", CB_SYS_argc, TARGET_NEWLIB_SYS_argc },
562 #endif
563 #ifdef CB_SYS_argn
564   { "argn", CB_SYS_argn, TARGET_NEWLIB_SYS_argn },
565 #endif
566 #ifdef CB_SYS_argnlen
567   { "argnlen", CB_SYS_argnlen, TARGET_NEWLIB_SYS_argnlen },
568 #endif
569 #ifdef CB_SYS_argv
570   { "argv", CB_SYS_argv, TARGET_NEWLIB_SYS_argv },
571 #endif
572 #ifdef CB_SYS_argvlen
573   { "argvlen", CB_SYS_argvlen, TARGET_NEWLIB_SYS_argvlen },
574 #endif
575 #ifdef CB_SYS_chdir
576   { "chdir", CB_SYS_chdir, TARGET_NEWLIB_SYS_chdir },
577 #endif
578 #ifdef CB_SYS_chmod
579   { "chmod", CB_SYS_chmod, TARGET_NEWLIB_SYS_chmod },
580 #endif
581 #ifdef CB_SYS_close
582   { "close", CB_SYS_close, TARGET_NEWLIB_SYS_close },
583 #endif
584 #ifdef CB_SYS_exit
585   { "exit", CB_SYS_exit, TARGET_NEWLIB_SYS_exit },
586 #endif
587 #ifdef CB_SYS_fstat
588   { "fstat", CB_SYS_fstat, TARGET_NEWLIB_SYS_fstat },
589 #endif
590 #ifdef CB_SYS_getpid
591   { "getpid", CB_SYS_getpid, TARGET_NEWLIB_SYS_getpid },
592 #endif
593 #ifdef CB_SYS_gettimeofday
594   { "gettimeofday", CB_SYS_gettimeofday, TARGET_NEWLIB_SYS_gettimeofday },
595 #endif
596 #ifdef CB_SYS_kill
597   { "kill", CB_SYS_kill, TARGET_NEWLIB_SYS_kill },
598 #endif
599 #ifdef CB_SYS_link
600   { "link", CB_SYS_link, TARGET_NEWLIB_SYS_link },
601 #endif
602 #ifdef CB_SYS_lseek
603   { "lseek", CB_SYS_lseek, TARGET_NEWLIB_SYS_lseek },
604 #endif
605 #ifdef CB_SYS_open
606   { "open", CB_SYS_open, TARGET_NEWLIB_SYS_open },
607 #endif
608 #ifdef CB_SYS_read
609   { "read", CB_SYS_read, TARGET_NEWLIB_SYS_read },
610 #endif
611 #ifdef CB_SYS_reconfig
612   { "reconfig", CB_SYS_reconfig, TARGET_NEWLIB_SYS_reconfig },
613 #endif
614 #ifdef CB_SYS_stat
615   { "stat", CB_SYS_stat, TARGET_NEWLIB_SYS_stat },
616 #endif
617 #ifdef CB_SYS_time
618   { "time", CB_SYS_time, TARGET_NEWLIB_SYS_time },
619 #endif
620 #ifdef CB_SYS_times
621   { "times", CB_SYS_times, TARGET_NEWLIB_SYS_times },
622 #endif
623 #ifdef CB_SYS_unlink
624   { "unlink", CB_SYS_unlink, TARGET_NEWLIB_SYS_unlink },
625 #endif
626 #ifdef CB_SYS_utime
627   { "utime", CB_SYS_utime, TARGET_NEWLIB_SYS_utime },
628 #endif
629 #ifdef CB_SYS_write
630   { "write", CB_SYS_write, TARGET_NEWLIB_SYS_write },
631 #endif
632   {NULL, -1, -1},
633 };
634   /* gennltvals: END */
This page took 0.063513 seconds and 4 git commands to generate.