3 ; Copyright (c) 2016 Nuxi (https://nuxi.nl/) and contributors.
5 ; Redistribution and use in source and binary forms, with or without
6 ; modification, are permitted provided that the following conditions
8 ; 1. Redistributions of source code must retain the above copyright
9 ; notice, this list of conditions and the following disclaimer.
10 ; 2. Redistributions in binary form must reproduce the above copyright
11 ; notice, this list of conditions and the following disclaimer in the
12 ; documentation and/or other materials provided with the distribution.
14 ; THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 ; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 ; ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 ; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 ; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 ; OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 ; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 ; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 ; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 ; This file is automatically generated. Do not edit.
28 ; Source: https://github.com/NuxiNL/cloudabi
30 #include <sys/sysent.h>
31 #include <sys/sysproto.h>
33 #include <contrib/cloudabi/cloudabi32_types.h>
35 #include <compat/cloudabi32/cloudabi32_proto.h>
37 0 AUE_NULL STD { cloudabi_timestamp_t \
38 cloudabi_sys_clock_res_get( \
39 cloudabi_clockid_t clock_id); }
41 1 AUE_NULL STD { cloudabi_timestamp_t \
42 cloudabi_sys_clock_time_get( \
43 cloudabi_clockid_t clock_id, \
44 cloudabi_timestamp_t precision); }
46 2 AUE_NULL STD { void cloudabi_sys_condvar_signal( \
47 cloudabi_condvar_t *condvar, \
48 cloudabi_scope_t scope, \
49 cloudabi_nthreads_t nwaiters); }
51 3 AUE_NULL STD { void cloudabi_sys_fd_close( \
54 4 AUE_NULL STD { cloudabi_fd_t cloudabi_sys_fd_create1( \
55 cloudabi_filetype_t type); }
57 5 AUE_NULL STD { void cloudabi_sys_fd_create2( \
58 cloudabi_filetype_t type); }
60 6 AUE_NULL STD { void cloudabi_sys_fd_datasync( \
63 7 AUE_NULL STD { cloudabi_fd_t cloudabi_sys_fd_dup( \
64 cloudabi_fd_t from); }
66 8 AUE_NULL STD { size_t cloudabi32_sys_fd_pread( \
68 const cloudabi32_iovec_t *iovs, \
70 cloudabi_filesize_t offset); }
72 9 AUE_NULL STD { size_t cloudabi32_sys_fd_pwrite( \
74 const cloudabi32_ciovec_t *iovs, \
76 cloudabi_filesize_t offset); }
78 10 AUE_NULL STD { size_t cloudabi32_sys_fd_read( \
80 const cloudabi32_iovec_t *iovs, \
83 11 AUE_NULL STD { void cloudabi_sys_fd_replace( \
87 12 AUE_NULL STD { cloudabi_filesize_t \
88 cloudabi_sys_fd_seek( \
90 cloudabi_filedelta_t offset, \
91 cloudabi_whence_t whence); }
93 13 AUE_NULL STD { void cloudabi_sys_fd_stat_get( \
95 cloudabi_fdstat_t *buf); }
97 14 AUE_NULL STD { void cloudabi_sys_fd_stat_put( \
99 const cloudabi_fdstat_t *buf, \
100 cloudabi_fdsflags_t flags); }
102 15 AUE_NULL STD { void cloudabi_sys_fd_sync( \
105 16 AUE_NULL STD { size_t cloudabi32_sys_fd_write( \
107 const cloudabi32_ciovec_t *iovs, \
110 17 AUE_NULL STD { void cloudabi_sys_file_advise( \
112 cloudabi_filesize_t offset, \
113 cloudabi_filesize_t len, \
114 cloudabi_advice_t advice); }
116 18 AUE_NULL STD { void cloudabi_sys_file_allocate( \
118 cloudabi_filesize_t offset, \
119 cloudabi_filesize_t len); }
121 19 AUE_NULL STD { void cloudabi_sys_file_create( \
125 cloudabi_filetype_t type); }
127 20 AUE_NULL STD { void cloudabi_sys_file_link( \
128 cloudabi_lookup_t fd1, \
135 21 AUE_NULL STD { cloudabi_fd_t cloudabi_sys_file_open( \
136 cloudabi_lookup_t dirfd, \
139 cloudabi_oflags_t oflags, \
140 const cloudabi_fdstat_t *fds); }
142 22 AUE_NULL STD { size_t cloudabi_sys_file_readdir( \
146 cloudabi_dircookie_t cookie); }
148 23 AUE_NULL STD { size_t cloudabi_sys_file_readlink( \
155 24 AUE_NULL STD { void cloudabi_sys_file_rename( \
163 25 AUE_NULL STD { void cloudabi_sys_file_stat_fget( \
165 cloudabi_filestat_t *buf); }
167 26 AUE_NULL STD { void cloudabi_sys_file_stat_fput( \
169 const cloudabi_filestat_t *buf, \
170 cloudabi_fsflags_t flags); }
172 27 AUE_NULL STD { void cloudabi_sys_file_stat_get( \
173 cloudabi_lookup_t fd, \
176 cloudabi_filestat_t *buf); }
178 28 AUE_NULL STD { void cloudabi_sys_file_stat_put( \
179 cloudabi_lookup_t fd, \
182 const cloudabi_filestat_t *buf, \
183 cloudabi_fsflags_t flags); }
185 29 AUE_NULL STD { void cloudabi_sys_file_symlink( \
192 30 AUE_NULL STD { void cloudabi_sys_file_unlink( \
196 cloudabi_ulflags_t flags); }
198 31 AUE_NULL STD { void cloudabi_sys_lock_unlock( \
199 cloudabi_lock_t *lock, \
200 cloudabi_scope_t scope); }
202 32 AUE_NULL STD { void cloudabi_sys_mem_advise( \
204 size_t mapping_len, \
205 cloudabi_advice_t advice); }
207 33 AUE_NULL STD { void cloudabi_sys_mem_map( \
210 cloudabi_mprot_t prot, \
211 cloudabi_mflags_t flags, \
213 cloudabi_filesize_t off); }
215 34 AUE_NULL STD { void cloudabi_sys_mem_protect( \
217 size_t mapping_len, \
218 cloudabi_mprot_t prot); }
220 35 AUE_NULL STD { void cloudabi_sys_mem_sync( \
222 size_t mapping_len, \
223 cloudabi_msflags_t flags); }
225 36 AUE_NULL STD { void cloudabi_sys_mem_unmap( \
227 size_t mapping_len); }
229 37 AUE_NULL STD { size_t cloudabi32_sys_poll( \
230 const cloudabi32_subscription_t *in, \
231 cloudabi_event_t *out, \
232 size_t nsubscriptions); }
234 38 AUE_NULL STD { void cloudabi_sys_proc_exec( \
238 const cloudabi_fd_t *fds, \
241 39 AUE_NULL STD { void cloudabi_sys_proc_exit( \
242 cloudabi_exitcode_t rval); }
244 40 AUE_NULL STD { void cloudabi_sys_proc_fork(); }
246 41 AUE_NULL STD { void cloudabi_sys_proc_raise( \
247 cloudabi_signal_t sig); }
249 42 AUE_NULL STD { void cloudabi_sys_random_get( \
253 43 AUE_NULL STD { void cloudabi32_sys_sock_recv( \
254 cloudabi_fd_t sock, \
255 const cloudabi32_recv_in_t *in, \
256 cloudabi32_recv_out_t *out); }
258 44 AUE_NULL STD { void cloudabi32_sys_sock_send( \
259 cloudabi_fd_t sock, \
260 const cloudabi32_send_in_t *in, \
261 cloudabi32_send_out_t *out); }
263 45 AUE_NULL STD { void cloudabi_sys_sock_shutdown( \
264 cloudabi_fd_t sock, \
265 cloudabi_sdflags_t how); }
267 46 AUE_NULL STD { cloudabi_tid_t cloudabi32_sys_thread_create( \
268 cloudabi32_threadattr_t *attr); }
270 47 AUE_NULL STD { void cloudabi_sys_thread_exit( \
271 cloudabi_lock_t *lock, \
272 cloudabi_scope_t scope); }
274 48 AUE_NULL STD { void cloudabi_sys_thread_yield(); }