Fix whitespace snafu in tc-riscv.c
[binutils-gdb.git] / sim / common / target-newlib-syscall.h
blob971432a742093a5e5262349cb12e11dc3ee4365c
1 /* Target syscall mappings for newlib/libgloss environment.
2 Copyright 1995-2023 Free Software Foundation, Inc.
3 Contributed by Mike Frysinger.
5 This file is part of simulators.
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.
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.
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/>. */
20 #ifndef TARGET_NEWLIB_SYSCALL_H
21 #define TARGET_NEWLIB_SYSCALL_H
23 /* For CB_TARGET_DEFS_MAP. */
24 #include "sim/callback.h"
26 /* This file is kept up-to-date via the gennltvals.py script. Do not edit
27 anything between the START & END comment blocks below. */
29 /* gennltvals: START */
30 extern CB_TARGET_DEFS_MAP cb_cr16_syscall_map[];
31 #define TARGET_NEWLIB_CR16_SYS_ARG 24
32 #define TARGET_NEWLIB_CR16_SYS_chdir 12
33 #define TARGET_NEWLIB_CR16_SYS_chmod 15
34 #define TARGET_NEWLIB_CR16_SYS_chown 16
35 #define TARGET_NEWLIB_CR16_SYS_close 0x402
36 #define TARGET_NEWLIB_CR16_SYS_create 8
37 #define TARGET_NEWLIB_CR16_SYS_execv 11
38 #define TARGET_NEWLIB_CR16_SYS_execve 59
39 #define TARGET_NEWLIB_CR16_SYS_exit 0x410
40 #define TARGET_NEWLIB_CR16_SYS_fork 2
41 #define TARGET_NEWLIB_CR16_SYS_fstat 22
42 #define TARGET_NEWLIB_CR16_SYS_getpid 20
43 #define TARGET_NEWLIB_CR16_SYS_isatty 21
44 #define TARGET_NEWLIB_CR16_SYS_kill 60
45 #define TARGET_NEWLIB_CR16_SYS_link 9
46 #define TARGET_NEWLIB_CR16_SYS_lseek 0x405
47 #define TARGET_NEWLIB_CR16_SYS_mknod 14
48 #define TARGET_NEWLIB_CR16_SYS_open 0x401
49 #define TARGET_NEWLIB_CR16_SYS_pipe 42
50 #define TARGET_NEWLIB_CR16_SYS_read 0x403
51 #define TARGET_NEWLIB_CR16_SYS_rename 0x406
52 #define TARGET_NEWLIB_CR16_SYS_stat 38
53 #define TARGET_NEWLIB_CR16_SYS_time 0x300
54 #define TARGET_NEWLIB_CR16_SYS_unlink 0x407
55 #define TARGET_NEWLIB_CR16_SYS_utime 201
56 #define TARGET_NEWLIB_CR16_SYS_wait 202
57 #define TARGET_NEWLIB_CR16_SYS_wait4 7
58 #define TARGET_NEWLIB_CR16_SYS_write 0x404
60 extern CB_TARGET_DEFS_MAP cb_d10v_syscall_map[];
61 #define TARGET_NEWLIB_D10V_SYS_ARG 24
62 #define TARGET_NEWLIB_D10V_SYS_chdir 12
63 #define TARGET_NEWLIB_D10V_SYS_chmod 15
64 #define TARGET_NEWLIB_D10V_SYS_chown 16
65 #define TARGET_NEWLIB_D10V_SYS_close 6
66 #define TARGET_NEWLIB_D10V_SYS_creat 8
67 #define TARGET_NEWLIB_D10V_SYS_execv 11
68 #define TARGET_NEWLIB_D10V_SYS_execve 59
69 #define TARGET_NEWLIB_D10V_SYS_exit 1
70 #define TARGET_NEWLIB_D10V_SYS_fork 2
71 #define TARGET_NEWLIB_D10V_SYS_fstat 22
72 #define TARGET_NEWLIB_D10V_SYS_getpid 20
73 #define TARGET_NEWLIB_D10V_SYS_isatty 21
74 #define TARGET_NEWLIB_D10V_SYS_kill 60
75 #define TARGET_NEWLIB_D10V_SYS_link 9
76 #define TARGET_NEWLIB_D10V_SYS_lseek 19
77 #define TARGET_NEWLIB_D10V_SYS_mknod 14
78 #define TARGET_NEWLIB_D10V_SYS_open 5
79 #define TARGET_NEWLIB_D10V_SYS_pipe 42
80 #define TARGET_NEWLIB_D10V_SYS_read 3
81 #define TARGET_NEWLIB_D10V_SYS_stat 38
82 #define TARGET_NEWLIB_D10V_SYS_time 23
83 #define TARGET_NEWLIB_D10V_SYS_unlink 10
84 #define TARGET_NEWLIB_D10V_SYS_utime 201
85 #define TARGET_NEWLIB_D10V_SYS_wait 202
86 #define TARGET_NEWLIB_D10V_SYS_wait4 7
87 #define TARGET_NEWLIB_D10V_SYS_write 4
89 extern CB_TARGET_DEFS_MAP cb_mcore_syscall_map[];
90 #define TARGET_NEWLIB_MCORE_SYS_access 33
91 #define TARGET_NEWLIB_MCORE_SYS_close 6
92 #define TARGET_NEWLIB_MCORE_SYS_creat 8
93 #define TARGET_NEWLIB_MCORE_SYS_link 9
94 #define TARGET_NEWLIB_MCORE_SYS_lseek 19
95 #define TARGET_NEWLIB_MCORE_SYS_open 5
96 #define TARGET_NEWLIB_MCORE_SYS_read 3
97 #define TARGET_NEWLIB_MCORE_SYS_time 13
98 #define TARGET_NEWLIB_MCORE_SYS_times 43
99 #define TARGET_NEWLIB_MCORE_SYS_unlink 10
100 #define TARGET_NEWLIB_MCORE_SYS_write 4
102 extern CB_TARGET_DEFS_MAP cb_riscv_syscall_map[];
103 #define TARGET_NEWLIB_RISCV_SYS_access 1033
104 #define TARGET_NEWLIB_RISCV_SYS_brk 214
105 #define TARGET_NEWLIB_RISCV_SYS_chdir 49
106 #define TARGET_NEWLIB_RISCV_SYS_clock_gettime64 403
107 #define TARGET_NEWLIB_RISCV_SYS_close 57
108 #define TARGET_NEWLIB_RISCV_SYS_dup 23
109 #define TARGET_NEWLIB_RISCV_SYS_exit 93
110 #define TARGET_NEWLIB_RISCV_SYS_exit_group 94
111 #define TARGET_NEWLIB_RISCV_SYS_faccessat 48
112 #define TARGET_NEWLIB_RISCV_SYS_fcntl 25
113 #define TARGET_NEWLIB_RISCV_SYS_fstat 80
114 #define TARGET_NEWLIB_RISCV_SYS_fstatat 79
115 #define TARGET_NEWLIB_RISCV_SYS_getcwd 17
116 #define TARGET_NEWLIB_RISCV_SYS_getdents 61
117 #define TARGET_NEWLIB_RISCV_SYS_getegid 177
118 #define TARGET_NEWLIB_RISCV_SYS_geteuid 175
119 #define TARGET_NEWLIB_RISCV_SYS_getgid 176
120 #define TARGET_NEWLIB_RISCV_SYS_getmainvars 2011
121 #define TARGET_NEWLIB_RISCV_SYS_getpid 172
122 #define TARGET_NEWLIB_RISCV_SYS_gettimeofday 169
123 #define TARGET_NEWLIB_RISCV_SYS_getuid 174
124 #define TARGET_NEWLIB_RISCV_SYS_kill 129
125 #define TARGET_NEWLIB_RISCV_SYS_link 1025
126 #define TARGET_NEWLIB_RISCV_SYS_lseek 62
127 #define TARGET_NEWLIB_RISCV_SYS_lstat 1039
128 #define TARGET_NEWLIB_RISCV_SYS_mkdir 1030
129 #define TARGET_NEWLIB_RISCV_SYS_mmap 222
130 #define TARGET_NEWLIB_RISCV_SYS_mremap 216
131 #define TARGET_NEWLIB_RISCV_SYS_munmap 215
132 #define TARGET_NEWLIB_RISCV_SYS_open 1024
133 #define TARGET_NEWLIB_RISCV_SYS_openat 56
134 #define TARGET_NEWLIB_RISCV_SYS_pread 67
135 #define TARGET_NEWLIB_RISCV_SYS_pwrite 68
136 #define TARGET_NEWLIB_RISCV_SYS_read 63
137 #define TARGET_NEWLIB_RISCV_SYS_rt_sigaction 134
138 #define TARGET_NEWLIB_RISCV_SYS_stat 1038
139 #define TARGET_NEWLIB_RISCV_SYS_time 1062
140 #define TARGET_NEWLIB_RISCV_SYS_times 153
141 #define TARGET_NEWLIB_RISCV_SYS_uname 160
142 #define TARGET_NEWLIB_RISCV_SYS_unlink 1026
143 #define TARGET_NEWLIB_RISCV_SYS_write 64
144 #define TARGET_NEWLIB_RISCV_SYS_writev 66
146 extern CB_TARGET_DEFS_MAP cb_sh_syscall_map[];
147 #define TARGET_NEWLIB_SH_SYS_ARG 24
148 #define TARGET_NEWLIB_SH_SYS_argc 172
149 #define TARGET_NEWLIB_SH_SYS_argn 174
150 #define TARGET_NEWLIB_SH_SYS_argnlen 173
151 #define TARGET_NEWLIB_SH_SYS_chdir 12
152 #define TARGET_NEWLIB_SH_SYS_chmod 15
153 #define TARGET_NEWLIB_SH_SYS_chown 16
154 #define TARGET_NEWLIB_SH_SYS_close 6
155 #define TARGET_NEWLIB_SH_SYS_creat 8
156 #define TARGET_NEWLIB_SH_SYS_execv 11
157 #define TARGET_NEWLIB_SH_SYS_execve 59
158 #define TARGET_NEWLIB_SH_SYS_exit 1
159 #define TARGET_NEWLIB_SH_SYS_fork 2
160 #define TARGET_NEWLIB_SH_SYS_fstat 22
161 #define TARGET_NEWLIB_SH_SYS_ftruncate 130
162 #define TARGET_NEWLIB_SH_SYS_getpid 20
163 #define TARGET_NEWLIB_SH_SYS_isatty 21
164 #define TARGET_NEWLIB_SH_SYS_link 9
165 #define TARGET_NEWLIB_SH_SYS_lseek 19
166 #define TARGET_NEWLIB_SH_SYS_mknod 14
167 #define TARGET_NEWLIB_SH_SYS_open 5
168 #define TARGET_NEWLIB_SH_SYS_pipe 42
169 #define TARGET_NEWLIB_SH_SYS_read 3
170 #define TARGET_NEWLIB_SH_SYS_stat 38
171 #define TARGET_NEWLIB_SH_SYS_time 23
172 #define TARGET_NEWLIB_SH_SYS_truncate 129
173 #define TARGET_NEWLIB_SH_SYS_unlink 10
174 #define TARGET_NEWLIB_SH_SYS_utime 201
175 #define TARGET_NEWLIB_SH_SYS_wait 202
176 #define TARGET_NEWLIB_SH_SYS_wait4 7
177 #define TARGET_NEWLIB_SH_SYS_write 4
179 extern CB_TARGET_DEFS_MAP cb_v850_syscall_map[];
180 #define TARGET_NEWLIB_V850_SYS_ARG 24
181 #define TARGET_NEWLIB_V850_SYS_chdir 12
182 #define TARGET_NEWLIB_V850_SYS_chmod 15
183 #define TARGET_NEWLIB_V850_SYS_chown 16
184 #define TARGET_NEWLIB_V850_SYS_close 6
185 #define TARGET_NEWLIB_V850_SYS_creat 8
186 #define TARGET_NEWLIB_V850_SYS_execv 11
187 #define TARGET_NEWLIB_V850_SYS_execve 59
188 #define TARGET_NEWLIB_V850_SYS_exit 1
189 #define TARGET_NEWLIB_V850_SYS_fork 2
190 #define TARGET_NEWLIB_V850_SYS_fstat 22
191 #define TARGET_NEWLIB_V850_SYS_getpid 20
192 #define TARGET_NEWLIB_V850_SYS_gettimeofday 116
193 #define TARGET_NEWLIB_V850_SYS_isatty 21
194 #define TARGET_NEWLIB_V850_SYS_link 9
195 #define TARGET_NEWLIB_V850_SYS_lseek 19
196 #define TARGET_NEWLIB_V850_SYS_mknod 14
197 #define TARGET_NEWLIB_V850_SYS_open 5
198 #define TARGET_NEWLIB_V850_SYS_pipe 42
199 #define TARGET_NEWLIB_V850_SYS_read 3
200 #define TARGET_NEWLIB_V850_SYS_rename 134
201 #define TARGET_NEWLIB_V850_SYS_stat 38
202 #define TARGET_NEWLIB_V850_SYS_time 23
203 #define TARGET_NEWLIB_V850_SYS_times 43
204 #define TARGET_NEWLIB_V850_SYS_unlink 10
205 #define TARGET_NEWLIB_V850_SYS_utime 201
206 #define TARGET_NEWLIB_V850_SYS_wait 202
207 #define TARGET_NEWLIB_V850_SYS_wait4 7
208 #define TARGET_NEWLIB_V850_SYS_write 4
210 extern CB_TARGET_DEFS_MAP cb_init_syscall_map[];
211 #define TARGET_NEWLIB_SYS_argc 22
212 #define TARGET_NEWLIB_SYS_argn 24
213 #define TARGET_NEWLIB_SYS_argnlen 23
214 #define TARGET_NEWLIB_SYS_argv 13
215 #define TARGET_NEWLIB_SYS_argvlen 12
216 #define TARGET_NEWLIB_SYS_chdir 14
217 #define TARGET_NEWLIB_SYS_chmod 16
218 #define TARGET_NEWLIB_SYS_close 3
219 #define TARGET_NEWLIB_SYS_exit 1
220 #define TARGET_NEWLIB_SYS_fstat 10
221 #define TARGET_NEWLIB_SYS_getpid 8
222 #define TARGET_NEWLIB_SYS_gettimeofday 19
223 #define TARGET_NEWLIB_SYS_kill 9
224 #define TARGET_NEWLIB_SYS_link 21
225 #define TARGET_NEWLIB_SYS_lseek 6
226 #define TARGET_NEWLIB_SYS_open 2
227 #define TARGET_NEWLIB_SYS_read 4
228 #define TARGET_NEWLIB_SYS_reconfig 25
229 #define TARGET_NEWLIB_SYS_stat 15
230 #define TARGET_NEWLIB_SYS_time 18
231 #define TARGET_NEWLIB_SYS_times 20
232 #define TARGET_NEWLIB_SYS_unlink 7
233 #define TARGET_NEWLIB_SYS_utime 17
234 #define TARGET_NEWLIB_SYS_write 5
235 /* gennltvals: END */
237 #endif