1 // Copyright (c) 2016-2017 Nuxi (https://nuxi.nl/) and contributors.
2 //
3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions
5 // are met:
6 // 1. Redistributions of source code must retain the above copyright
7 //    notice, this list of conditions and the following disclaimer.
8 // 2. Redistributions in binary form must reproduce the above copyright
9 //    notice, this list of conditions and the following disclaimer in the
10 //    documentation and/or other materials provided with the distribution.
11 //
12 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15 // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22 // SUCH DAMAGE.
23 //
24 // This file is automatically generated. Do not edit.
25 //
26 // Source: https://github.com/NuxiNL/cloudabi
27 
28 #ifndef CLOUDABI_SYSCALLS_INFO_H
29 #define CLOUDABI_SYSCALLS_INFO_H
30 
31 #define CLOUDABI_SYSCALL_NAMES(SYSCALL) \
32   SYSCALL(clock_res_get)                \
33   SYSCALL(clock_time_get)               \
34   SYSCALL(condvar_signal)               \
35   SYSCALL(fd_close)                     \
36   SYSCALL(fd_create1)                   \
37   SYSCALL(fd_create2)                   \
38   SYSCALL(fd_datasync)                  \
39   SYSCALL(fd_dup)                       \
40   SYSCALL(fd_pread)                     \
41   SYSCALL(fd_pwrite)                    \
42   SYSCALL(fd_read)                      \
43   SYSCALL(fd_replace)                   \
44   SYSCALL(fd_seek)                      \
45   SYSCALL(fd_stat_get)                  \
46   SYSCALL(fd_stat_put)                  \
47   SYSCALL(fd_sync)                      \
48   SYSCALL(fd_write)                     \
49   SYSCALL(file_advise)                  \
50   SYSCALL(file_allocate)                \
51   SYSCALL(file_create)                  \
52   SYSCALL(file_link)                    \
53   SYSCALL(file_open)                    \
54   SYSCALL(file_readdir)                 \
55   SYSCALL(file_readlink)                \
56   SYSCALL(file_rename)                  \
57   SYSCALL(file_stat_fget)               \
58   SYSCALL(file_stat_fput)               \
59   SYSCALL(file_stat_get)                \
60   SYSCALL(file_stat_put)                \
61   SYSCALL(file_symlink)                 \
62   SYSCALL(file_unlink)                  \
63   SYSCALL(lock_unlock)                  \
64   SYSCALL(mem_advise)                   \
65   SYSCALL(mem_map)                      \
66   SYSCALL(mem_protect)                  \
67   SYSCALL(mem_sync)                     \
68   SYSCALL(mem_unmap)                    \
69   SYSCALL(poll)                         \
70   SYSCALL(proc_exec)                    \
71   SYSCALL(proc_exit)                    \
72   SYSCALL(proc_fork)                    \
73   SYSCALL(proc_raise)                   \
74   SYSCALL(random_get)                   \
75   SYSCALL(sock_recv)                    \
76   SYSCALL(sock_send)                    \
77   SYSCALL(sock_shutdown)                \
78   SYSCALL(thread_create)                \
79   SYSCALL(thread_exit)                  \
80   SYSCALL(thread_yield)
81 
82 #define CLOUDABI_SYSCALL_PARAMETERS_clock_res_get \
83   cloudabi_clockid_t clock_id,                    \
84   cloudabi_timestamp_t *resolution
85 
86 #define CLOUDABI_SYSCALL_PARAMETERS_clock_time_get \
87   cloudabi_clockid_t clock_id,                     \
88   cloudabi_timestamp_t precision,                  \
89   cloudabi_timestamp_t *time
90 
91 #define CLOUDABI_SYSCALL_PARAMETERS_condvar_signal \
92   _Atomic(cloudabi_condvar_t) *condvar,            \
93   cloudabi_scope_t scope,                          \
94   cloudabi_nthreads_t nwaiters
95 
96 #define CLOUDABI_SYSCALL_PARAMETERS_fd_close \
97   cloudabi_fd_t fd
98 
99 #define CLOUDABI_SYSCALL_PARAMETERS_fd_create1 \
100   cloudabi_filetype_t type,                    \
101   cloudabi_fd_t *fd
102 
103 #define CLOUDABI_SYSCALL_PARAMETERS_fd_create2 \
104   cloudabi_filetype_t type,                    \
105   cloudabi_fd_t *fd1,                          \
106   cloudabi_fd_t *fd2
107 
108 #define CLOUDABI_SYSCALL_PARAMETERS_fd_datasync \
109   cloudabi_fd_t fd
110 
111 #define CLOUDABI_SYSCALL_PARAMETERS_fd_dup \
112   cloudabi_fd_t from,                      \
113   cloudabi_fd_t *fd
114 
115 #define CLOUDABI_SYSCALL_PARAMETERS_fd_pread \
116   cloudabi_fd_t fd,                          \
117   const cloudabi_iovec_t *iovs,              \
118   size_t iovs_len,                           \
119   cloudabi_filesize_t offset,                \
120   size_t *nread
121 
122 #define CLOUDABI_SYSCALL_PARAMETERS_fd_pwrite \
123   cloudabi_fd_t fd,                           \
124   const cloudabi_ciovec_t *iovs,              \
125   size_t iovs_len,                            \
126   cloudabi_filesize_t offset,                 \
127   size_t *nwritten
128 
129 #define CLOUDABI_SYSCALL_PARAMETERS_fd_read \
130   cloudabi_fd_t fd,                         \
131   const cloudabi_iovec_t *iovs,             \
132   size_t iovs_len,                          \
133   size_t *nread
134 
135 #define CLOUDABI_SYSCALL_PARAMETERS_fd_replace \
136   cloudabi_fd_t from,                          \
137   cloudabi_fd_t to
138 
139 #define CLOUDABI_SYSCALL_PARAMETERS_fd_seek \
140   cloudabi_fd_t fd,                         \
141   cloudabi_filedelta_t offset,              \
142   cloudabi_whence_t whence,                 \
143   cloudabi_filesize_t *newoffset
144 
145 #define CLOUDABI_SYSCALL_PARAMETERS_fd_stat_get \
146   cloudabi_fd_t fd,                             \
147   cloudabi_fdstat_t *buf
148 
149 #define CLOUDABI_SYSCALL_PARAMETERS_fd_stat_put \
150   cloudabi_fd_t fd,                             \
151   const cloudabi_fdstat_t *buf,                 \
152   cloudabi_fdsflags_t flags
153 
154 #define CLOUDABI_SYSCALL_PARAMETERS_fd_sync \
155   cloudabi_fd_t fd
156 
157 #define CLOUDABI_SYSCALL_PARAMETERS_fd_write \
158   cloudabi_fd_t fd,                          \
159   const cloudabi_ciovec_t *iovs,             \
160   size_t iovs_len,                           \
161   size_t *nwritten
162 
163 #define CLOUDABI_SYSCALL_PARAMETERS_file_advise \
164   cloudabi_fd_t fd,                             \
165   cloudabi_filesize_t offset,                   \
166   cloudabi_filesize_t len,                      \
167   cloudabi_advice_t advice
168 
169 #define CLOUDABI_SYSCALL_PARAMETERS_file_allocate \
170   cloudabi_fd_t fd,                               \
171   cloudabi_filesize_t offset,                     \
172   cloudabi_filesize_t len
173 
174 #define CLOUDABI_SYSCALL_PARAMETERS_file_create \
175   cloudabi_fd_t fd,                             \
176   const char *path,                             \
177   size_t path_len,                              \
178   cloudabi_filetype_t type
179 
180 #define CLOUDABI_SYSCALL_PARAMETERS_file_link \
181   cloudabi_lookup_t fd1,                      \
182   const char *path1,                          \
183   size_t path1_len,                           \
184   cloudabi_fd_t fd2,                          \
185   const char *path2,                          \
186   size_t path2_len
187 
188 #define CLOUDABI_SYSCALL_PARAMETERS_file_open \
189   cloudabi_lookup_t dirfd,                    \
190   const char *path,                           \
191   size_t path_len,                            \
192   cloudabi_oflags_t oflags,                   \
193   const cloudabi_fdstat_t *fds,               \
194   cloudabi_fd_t *fd
195 
196 #define CLOUDABI_SYSCALL_PARAMETERS_file_readdir \
197   cloudabi_fd_t fd,                              \
198   void *buf,                                     \
199   size_t buf_len,                                \
200   cloudabi_dircookie_t cookie,                   \
201   size_t *bufused
202 
203 #define CLOUDABI_SYSCALL_PARAMETERS_file_readlink \
204   cloudabi_fd_t fd,                               \
205   const char *path,                               \
206   size_t path_len,                                \
207   char *buf,                                      \
208   size_t buf_len,                                 \
209   size_t *bufused
210 
211 #define CLOUDABI_SYSCALL_PARAMETERS_file_rename \
212   cloudabi_fd_t fd1,                            \
213   const char *path1,                            \
214   size_t path1_len,                             \
215   cloudabi_fd_t fd2,                            \
216   const char *path2,                            \
217   size_t path2_len
218 
219 #define CLOUDABI_SYSCALL_PARAMETERS_file_stat_fget \
220   cloudabi_fd_t fd,                                \
221   cloudabi_filestat_t *buf
222 
223 #define CLOUDABI_SYSCALL_PARAMETERS_file_stat_fput \
224   cloudabi_fd_t fd,                                \
225   const cloudabi_filestat_t *buf,                  \
226   cloudabi_fsflags_t flags
227 
228 #define CLOUDABI_SYSCALL_PARAMETERS_file_stat_get \
229   cloudabi_lookup_t fd,                           \
230   const char *path,                               \
231   size_t path_len,                                \
232   cloudabi_filestat_t *buf
233 
234 #define CLOUDABI_SYSCALL_PARAMETERS_file_stat_put \
235   cloudabi_lookup_t fd,                           \
236   const char *path,                               \
237   size_t path_len,                                \
238   const cloudabi_filestat_t *buf,                 \
239   cloudabi_fsflags_t flags
240 
241 #define CLOUDABI_SYSCALL_PARAMETERS_file_symlink \
242   const char *path1,                             \
243   size_t path1_len,                              \
244   cloudabi_fd_t fd,                              \
245   const char *path2,                             \
246   size_t path2_len
247 
248 #define CLOUDABI_SYSCALL_PARAMETERS_file_unlink \
249   cloudabi_fd_t fd,                             \
250   const char *path,                             \
251   size_t path_len,                              \
252   cloudabi_ulflags_t flags
253 
254 #define CLOUDABI_SYSCALL_PARAMETERS_lock_unlock \
255   _Atomic(cloudabi_lock_t) *lock,               \
256   cloudabi_scope_t scope
257 
258 #define CLOUDABI_SYSCALL_PARAMETERS_mem_advise \
259   void *mapping,                               \
260   size_t mapping_len,                          \
261   cloudabi_advice_t advice
262 
263 #define CLOUDABI_SYSCALL_PARAMETERS_mem_map \
264   void *addr,                               \
265   size_t len,                               \
266   cloudabi_mprot_t prot,                    \
267   cloudabi_mflags_t flags,                  \
268   cloudabi_fd_t fd,                         \
269   cloudabi_filesize_t off,                  \
270   void **mem
271 
272 #define CLOUDABI_SYSCALL_PARAMETERS_mem_protect \
273   void *mapping,                                \
274   size_t mapping_len,                           \
275   cloudabi_mprot_t prot
276 
277 #define CLOUDABI_SYSCALL_PARAMETERS_mem_sync \
278   void *mapping,                             \
279   size_t mapping_len,                        \
280   cloudabi_msflags_t flags
281 
282 #define CLOUDABI_SYSCALL_PARAMETERS_mem_unmap \
283   void *mapping,                              \
284   size_t mapping_len
285 
286 #define CLOUDABI_SYSCALL_PARAMETERS_poll \
287   const cloudabi_subscription_t *in,     \
288   cloudabi_event_t *out,                 \
289   size_t nsubscriptions,                 \
290   size_t *nevents
291 
292 #define CLOUDABI_SYSCALL_PARAMETERS_proc_exec \
293   cloudabi_fd_t fd,                           \
294   const void *data,                           \
295   size_t data_len,                            \
296   const cloudabi_fd_t *fds,                   \
297   size_t fds_len
298 
299 #define CLOUDABI_SYSCALL_PARAMETERS_proc_exit \
300   cloudabi_exitcode_t rval
301 
302 #define CLOUDABI_SYSCALL_PARAMETERS_proc_fork \
303   cloudabi_fd_t *fd,                          \
304   cloudabi_tid_t *tid
305 
306 #define CLOUDABI_SYSCALL_PARAMETERS_proc_raise \
307   cloudabi_signal_t sig
308 
309 #define CLOUDABI_SYSCALL_PARAMETERS_random_get \
310   void *buf,                                   \
311   size_t buf_len
312 
313 #define CLOUDABI_SYSCALL_PARAMETERS_sock_recv \
314   cloudabi_fd_t sock,                         \
315   const cloudabi_recv_in_t *in,               \
316   cloudabi_recv_out_t *out
317 
318 #define CLOUDABI_SYSCALL_PARAMETERS_sock_send \
319   cloudabi_fd_t sock,                         \
320   const cloudabi_send_in_t *in,               \
321   cloudabi_send_out_t *out
322 
323 #define CLOUDABI_SYSCALL_PARAMETERS_sock_shutdown \
324   cloudabi_fd_t sock,                             \
325   cloudabi_sdflags_t how
326 
327 #define CLOUDABI_SYSCALL_PARAMETERS_thread_create \
328   cloudabi_threadattr_t *attr,                    \
329   cloudabi_tid_t *tid
330 
331 #define CLOUDABI_SYSCALL_PARAMETERS_thread_exit \
332   _Atomic(cloudabi_lock_t) *lock,               \
333   cloudabi_scope_t scope
334 
335 #define CLOUDABI_SYSCALL_PARAMETERS_thread_yield
336 
337 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_clock_res_get \
338   clock_id, resolution
339 
340 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_clock_time_get \
341   clock_id, precision, time
342 
343 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_condvar_signal \
344   condvar, scope, nwaiters
345 
346 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_close \
347   fd
348 
349 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_create1 \
350   type, fd
351 
352 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_create2 \
353   type, fd1, fd2
354 
355 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_datasync \
356   fd
357 
358 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_dup \
359   from, fd
360 
361 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_pread \
362   fd, iovs, iovs_len, offset, nread
363 
364 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_pwrite \
365   fd, iovs, iovs_len, offset, nwritten
366 
367 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_read \
368   fd, iovs, iovs_len, nread
369 
370 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_replace \
371   from, to
372 
373 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_seek \
374   fd, offset, whence, newoffset
375 
376 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_stat_get \
377   fd, buf
378 
379 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_stat_put \
380   fd, buf, flags
381 
382 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_sync \
383   fd
384 
385 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_fd_write \
386   fd, iovs, iovs_len, nwritten
387 
388 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_advise \
389   fd, offset, len, advice
390 
391 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_allocate \
392   fd, offset, len
393 
394 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_create \
395   fd, path, path_len, type
396 
397 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_link \
398   fd1, path1, path1_len, fd2, path2, path2_len
399 
400 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_open \
401   dirfd, path, path_len, oflags, fds, fd
402 
403 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_readdir \
404   fd, buf, buf_len, cookie, bufused
405 
406 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_readlink \
407   fd, path, path_len, buf, buf_len, bufused
408 
409 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_rename \
410   fd1, path1, path1_len, fd2, path2, path2_len
411 
412 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_stat_fget \
413   fd, buf
414 
415 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_stat_fput \
416   fd, buf, flags
417 
418 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_stat_get \
419   fd, path, path_len, buf
420 
421 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_stat_put \
422   fd, path, path_len, buf, flags
423 
424 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_symlink \
425   path1, path1_len, fd, path2, path2_len
426 
427 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_file_unlink \
428   fd, path, path_len, flags
429 
430 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_lock_unlock \
431   lock, scope
432 
433 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_mem_advise \
434   mapping, mapping_len, advice
435 
436 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_mem_map \
437   addr, len, prot, flags, fd, off, mem
438 
439 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_mem_protect \
440   mapping, mapping_len, prot
441 
442 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_mem_sync \
443   mapping, mapping_len, flags
444 
445 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_mem_unmap \
446   mapping, mapping_len
447 
448 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_poll \
449   in, out, nsubscriptions, nevents
450 
451 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_proc_exec \
452   fd, data, data_len, fds, fds_len
453 
454 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_proc_exit \
455   rval
456 
457 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_proc_fork \
458   fd, tid
459 
460 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_proc_raise \
461   sig
462 
463 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_random_get \
464   buf, buf_len
465 
466 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_sock_recv \
467   sock, in, out
468 
469 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_sock_send \
470   sock, in, out
471 
472 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_sock_shutdown \
473   sock, how
474 
475 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_thread_create \
476   attr, tid
477 
478 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_thread_exit \
479   lock, scope
480 
481 #define CLOUDABI_SYSCALL_PARAMETER_NAMES_thread_yield
482 
483 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_clock_res_get(yes, no) yes
484 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_clock_time_get(yes, no) yes
485 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_condvar_signal(yes, no) yes
486 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_close(yes, no) yes
487 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_create1(yes, no) yes
488 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_create2(yes, no) yes
489 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_datasync(yes, no) yes
490 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_dup(yes, no) yes
491 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_pread(yes, no) yes
492 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_pwrite(yes, no) yes
493 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_read(yes, no) yes
494 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_replace(yes, no) yes
495 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_seek(yes, no) yes
496 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_stat_get(yes, no) yes
497 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_stat_put(yes, no) yes
498 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_sync(yes, no) yes
499 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_fd_write(yes, no) yes
500 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_advise(yes, no) yes
501 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_allocate(yes, no) yes
502 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_create(yes, no) yes
503 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_link(yes, no) yes
504 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_open(yes, no) yes
505 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_readdir(yes, no) yes
506 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_readlink(yes, no) yes
507 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_rename(yes, no) yes
508 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_stat_fget(yes, no) yes
509 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_stat_fput(yes, no) yes
510 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_stat_get(yes, no) yes
511 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_stat_put(yes, no) yes
512 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_symlink(yes, no) yes
513 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_file_unlink(yes, no) yes
514 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_lock_unlock(yes, no) yes
515 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_mem_advise(yes, no) yes
516 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_mem_map(yes, no) yes
517 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_mem_protect(yes, no) yes
518 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_mem_sync(yes, no) yes
519 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_mem_unmap(yes, no) yes
520 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_poll(yes, no) yes
521 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_proc_exec(yes, no) yes
522 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_proc_exit(yes, no) yes
523 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_proc_fork(yes, no) yes
524 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_proc_raise(yes, no) yes
525 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_random_get(yes, no) yes
526 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_sock_recv(yes, no) yes
527 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_sock_send(yes, no) yes
528 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_sock_shutdown(yes, no) yes
529 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_thread_create(yes, no) yes
530 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_thread_exit(yes, no) yes
531 #define CLOUDABI_SYSCALL_HAS_PARAMETERS_thread_yield(yes, no) no
532 
533 #define CLOUDABI_SYSCALL_RETURNS_clock_res_get(yes, no) yes
534 #define CLOUDABI_SYSCALL_RETURNS_clock_time_get(yes, no) yes
535 #define CLOUDABI_SYSCALL_RETURNS_condvar_signal(yes, no) yes
536 #define CLOUDABI_SYSCALL_RETURNS_fd_close(yes, no) yes
537 #define CLOUDABI_SYSCALL_RETURNS_fd_create1(yes, no) yes
538 #define CLOUDABI_SYSCALL_RETURNS_fd_create2(yes, no) yes
539 #define CLOUDABI_SYSCALL_RETURNS_fd_datasync(yes, no) yes
540 #define CLOUDABI_SYSCALL_RETURNS_fd_dup(yes, no) yes
541 #define CLOUDABI_SYSCALL_RETURNS_fd_pread(yes, no) yes
542 #define CLOUDABI_SYSCALL_RETURNS_fd_pwrite(yes, no) yes
543 #define CLOUDABI_SYSCALL_RETURNS_fd_read(yes, no) yes
544 #define CLOUDABI_SYSCALL_RETURNS_fd_replace(yes, no) yes
545 #define CLOUDABI_SYSCALL_RETURNS_fd_seek(yes, no) yes
546 #define CLOUDABI_SYSCALL_RETURNS_fd_stat_get(yes, no) yes
547 #define CLOUDABI_SYSCALL_RETURNS_fd_stat_put(yes, no) yes
548 #define CLOUDABI_SYSCALL_RETURNS_fd_sync(yes, no) yes
549 #define CLOUDABI_SYSCALL_RETURNS_fd_write(yes, no) yes
550 #define CLOUDABI_SYSCALL_RETURNS_file_advise(yes, no) yes
551 #define CLOUDABI_SYSCALL_RETURNS_file_allocate(yes, no) yes
552 #define CLOUDABI_SYSCALL_RETURNS_file_create(yes, no) yes
553 #define CLOUDABI_SYSCALL_RETURNS_file_link(yes, no) yes
554 #define CLOUDABI_SYSCALL_RETURNS_file_open(yes, no) yes
555 #define CLOUDABI_SYSCALL_RETURNS_file_readdir(yes, no) yes
556 #define CLOUDABI_SYSCALL_RETURNS_file_readlink(yes, no) yes
557 #define CLOUDABI_SYSCALL_RETURNS_file_rename(yes, no) yes
558 #define CLOUDABI_SYSCALL_RETURNS_file_stat_fget(yes, no) yes
559 #define CLOUDABI_SYSCALL_RETURNS_file_stat_fput(yes, no) yes
560 #define CLOUDABI_SYSCALL_RETURNS_file_stat_get(yes, no) yes
561 #define CLOUDABI_SYSCALL_RETURNS_file_stat_put(yes, no) yes
562 #define CLOUDABI_SYSCALL_RETURNS_file_symlink(yes, no) yes
563 #define CLOUDABI_SYSCALL_RETURNS_file_unlink(yes, no) yes
564 #define CLOUDABI_SYSCALL_RETURNS_lock_unlock(yes, no) yes
565 #define CLOUDABI_SYSCALL_RETURNS_mem_advise(yes, no) yes
566 #define CLOUDABI_SYSCALL_RETURNS_mem_map(yes, no) yes
567 #define CLOUDABI_SYSCALL_RETURNS_mem_protect(yes, no) yes
568 #define CLOUDABI_SYSCALL_RETURNS_mem_sync(yes, no) yes
569 #define CLOUDABI_SYSCALL_RETURNS_mem_unmap(yes, no) yes
570 #define CLOUDABI_SYSCALL_RETURNS_poll(yes, no) yes
571 #define CLOUDABI_SYSCALL_RETURNS_proc_exec(yes, no) yes
572 #define CLOUDABI_SYSCALL_RETURNS_proc_exit(yes, no) no
573 #define CLOUDABI_SYSCALL_RETURNS_proc_fork(yes, no) yes
574 #define CLOUDABI_SYSCALL_RETURNS_proc_raise(yes, no) yes
575 #define CLOUDABI_SYSCALL_RETURNS_random_get(yes, no) yes
576 #define CLOUDABI_SYSCALL_RETURNS_sock_recv(yes, no) yes
577 #define CLOUDABI_SYSCALL_RETURNS_sock_send(yes, no) yes
578 #define CLOUDABI_SYSCALL_RETURNS_sock_shutdown(yes, no) yes
579 #define CLOUDABI_SYSCALL_RETURNS_thread_create(yes, no) yes
580 #define CLOUDABI_SYSCALL_RETURNS_thread_exit(yes, no) no
581 #define CLOUDABI_SYSCALL_RETURNS_thread_yield(yes, no) yes
582 
583 #endif
584