1304561Sed $FreeBSD: stable/11/sys/contrib/cloudabi/syscalls32.master 325858 2017-11-15 15:56:08Z ed $
2304561Sed
3304561Sed; Copyright (c) 2016 Nuxi (https://nuxi.nl/) and contributors.
4304561Sed;
5304561Sed; Redistribution and use in source and binary forms, with or without
6304561Sed; modification, are permitted provided that the following conditions
7304561Sed; are met:
8304561Sed; 1. Redistributions of source code must retain the above copyright
9304561Sed;    notice, this list of conditions and the following disclaimer.
10304561Sed; 2. Redistributions in binary form must reproduce the above copyright
11304561Sed;    notice, this list of conditions and the following disclaimer in the
12304561Sed;    documentation and/or other materials provided with the distribution.
13304561Sed;
14304561Sed; THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15304561Sed; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16304561Sed; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17304561Sed; ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18304561Sed; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19304561Sed; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20304561Sed; OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21304561Sed; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22304561Sed; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23304561Sed; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24304561Sed; SUCH DAMAGE.
25304561Sed;
26304561Sed; This file is automatically generated. Do not edit.
27304561Sed;
28304561Sed; Source: https://github.com/NuxiNL/cloudabi
29304561Sed
30304561Sed#include <sys/sysent.h>
31304561Sed#include <sys/sysproto.h>
32304561Sed
33307144Sed#include <contrib/cloudabi/cloudabi32_types.h>
34304561Sed
35307144Sed#include <compat/cloudabi32/cloudabi32_proto.h>
36304561Sed
37304561Sed0	AUE_NULL	STD	{ cloudabi_timestamp_t \
38304561Sed					cloudabi_sys_clock_res_get( \
39304561Sed					cloudabi_clockid_t clock_id); }
40304561Sed
41304561Sed1	AUE_NULL	STD	{ cloudabi_timestamp_t \
42304561Sed					cloudabi_sys_clock_time_get( \
43304561Sed					cloudabi_clockid_t clock_id, \
44304561Sed					cloudabi_timestamp_t precision); }
45304561Sed
46304561Sed2	AUE_NULL	STD	{ void cloudabi_sys_condvar_signal( \
47304561Sed					cloudabi_condvar_t *condvar, \
48304561Sed					cloudabi_scope_t scope, \
49304561Sed					cloudabi_nthreads_t nwaiters); }
50304561Sed
51304561Sed3	AUE_NULL	STD	{ void cloudabi_sys_fd_close( \
52304561Sed					cloudabi_fd_t fd); }
53304561Sed
54304561Sed4	AUE_NULL	STD	{ cloudabi_fd_t cloudabi_sys_fd_create1( \
55304561Sed					cloudabi_filetype_t type); }
56304561Sed
57304561Sed5	AUE_NULL	STD	{ void cloudabi_sys_fd_create2( \
58304561Sed					cloudabi_filetype_t type); }
59304561Sed
60304561Sed6	AUE_NULL	STD	{ void cloudabi_sys_fd_datasync( \
61304561Sed					cloudabi_fd_t fd); }
62304561Sed
63304561Sed7	AUE_NULL	STD	{ cloudabi_fd_t cloudabi_sys_fd_dup( \
64304561Sed					cloudabi_fd_t from); }
65304561Sed
66304561Sed8	AUE_NULL	STD	{ size_t cloudabi32_sys_fd_pread( \
67304561Sed					cloudabi_fd_t fd, \
68316574Sed					const cloudabi32_iovec_t *iovs, \
69316574Sed					size_t iovs_len, \
70304561Sed					cloudabi_filesize_t offset); }
71304561Sed
72304561Sed9	AUE_NULL	STD	{ size_t cloudabi32_sys_fd_pwrite( \
73304561Sed					cloudabi_fd_t fd, \
74316574Sed					const cloudabi32_ciovec_t *iovs, \
75316574Sed					size_t iovs_len, \
76304561Sed					cloudabi_filesize_t offset); }
77304561Sed
78304561Sed10	AUE_NULL	STD	{ size_t cloudabi32_sys_fd_read( \
79304561Sed					cloudabi_fd_t fd, \
80316574Sed					const cloudabi32_iovec_t *iovs, \
81316574Sed					size_t iovs_len); }
82304561Sed
83304561Sed11	AUE_NULL	STD	{ void cloudabi_sys_fd_replace( \
84304561Sed					cloudabi_fd_t from, \
85304561Sed					cloudabi_fd_t to); }
86304561Sed
87304561Sed12	AUE_NULL	STD	{ cloudabi_filesize_t \
88304561Sed					cloudabi_sys_fd_seek( \
89304561Sed					cloudabi_fd_t fd, \
90304561Sed					cloudabi_filedelta_t offset, \
91304561Sed					cloudabi_whence_t whence); }
92304561Sed
93304561Sed13	AUE_NULL	STD	{ void cloudabi_sys_fd_stat_get( \
94304561Sed					cloudabi_fd_t fd, \
95304561Sed					cloudabi_fdstat_t *buf); }
96304561Sed
97304561Sed14	AUE_NULL	STD	{ void cloudabi_sys_fd_stat_put( \
98304561Sed					cloudabi_fd_t fd, \
99304561Sed					const cloudabi_fdstat_t *buf, \
100304561Sed					cloudabi_fdsflags_t flags); }
101304561Sed
102304561Sed15	AUE_NULL	STD	{ void cloudabi_sys_fd_sync( \
103304561Sed					cloudabi_fd_t fd); }
104304561Sed
105304561Sed16	AUE_NULL	STD	{ size_t cloudabi32_sys_fd_write( \
106304561Sed					cloudabi_fd_t fd, \
107316574Sed					const cloudabi32_ciovec_t *iovs, \
108316574Sed					size_t iovs_len); }
109304561Sed
110304561Sed17	AUE_NULL	STD	{ void cloudabi_sys_file_advise( \
111304561Sed					cloudabi_fd_t fd, \
112304561Sed					cloudabi_filesize_t offset, \
113304561Sed					cloudabi_filesize_t len, \
114304561Sed					cloudabi_advice_t advice); }
115304561Sed
116304561Sed18	AUE_NULL	STD	{ void cloudabi_sys_file_allocate( \
117304561Sed					cloudabi_fd_t fd, \
118304561Sed					cloudabi_filesize_t offset, \
119304561Sed					cloudabi_filesize_t len); }
120304561Sed
121304561Sed19	AUE_NULL	STD	{ void cloudabi_sys_file_create( \
122304561Sed					cloudabi_fd_t fd, \
123304561Sed					const char *path, \
124316574Sed					size_t path_len, \
125304561Sed					cloudabi_filetype_t type); }
126304561Sed
127304561Sed20	AUE_NULL	STD	{ void cloudabi_sys_file_link( \
128304561Sed					cloudabi_lookup_t fd1, \
129304561Sed					const char *path1, \
130316574Sed					size_t path1_len, \
131304561Sed					cloudabi_fd_t fd2, \
132304561Sed					const char *path2, \
133316574Sed					size_t path2_len); }
134304561Sed
135304561Sed21	AUE_NULL	STD	{ cloudabi_fd_t cloudabi_sys_file_open( \
136304561Sed					cloudabi_lookup_t dirfd, \
137304561Sed					const char *path, \
138316574Sed					size_t path_len, \
139304561Sed					cloudabi_oflags_t oflags, \
140304561Sed					const cloudabi_fdstat_t *fds); }
141304561Sed
142304561Sed22	AUE_NULL	STD	{ size_t cloudabi_sys_file_readdir( \
143304561Sed					cloudabi_fd_t fd, \
144304561Sed					void *buf, \
145316574Sed					size_t buf_len, \
146304561Sed					cloudabi_dircookie_t cookie); }
147304561Sed
148304561Sed23	AUE_NULL	STD	{ size_t cloudabi_sys_file_readlink( \
149304561Sed					cloudabi_fd_t fd, \
150304561Sed					const char *path, \
151316574Sed					size_t path_len, \
152304561Sed					char *buf, \
153316574Sed					size_t buf_len); }
154304561Sed
155304561Sed24	AUE_NULL	STD	{ void cloudabi_sys_file_rename( \
156316574Sed					cloudabi_fd_t fd1, \
157316574Sed					const char *path1, \
158316574Sed					size_t path1_len, \
159316574Sed					cloudabi_fd_t fd2, \
160316574Sed					const char *path2, \
161316574Sed					size_t path2_len); }
162304561Sed
163304561Sed25	AUE_NULL	STD	{ void cloudabi_sys_file_stat_fget( \
164304561Sed					cloudabi_fd_t fd, \
165304561Sed					cloudabi_filestat_t *buf); }
166304561Sed
167304561Sed26	AUE_NULL	STD	{ void cloudabi_sys_file_stat_fput( \
168304561Sed					cloudabi_fd_t fd, \
169304561Sed					const cloudabi_filestat_t *buf, \
170304561Sed					cloudabi_fsflags_t flags); }
171304561Sed
172304561Sed27	AUE_NULL	STD	{ void cloudabi_sys_file_stat_get( \
173304561Sed					cloudabi_lookup_t fd, \
174304561Sed					const char *path, \
175316574Sed					size_t path_len, \
176304561Sed					cloudabi_filestat_t *buf); }
177304561Sed
178304561Sed28	AUE_NULL	STD	{ void cloudabi_sys_file_stat_put( \
179304561Sed					cloudabi_lookup_t fd, \
180304561Sed					const char *path, \
181316574Sed					size_t path_len, \
182304561Sed					const cloudabi_filestat_t *buf, \
183304561Sed					cloudabi_fsflags_t flags); }
184304561Sed
185304561Sed29	AUE_NULL	STD	{ void cloudabi_sys_file_symlink( \
186304561Sed					const char *path1, \
187316574Sed					size_t path1_len, \
188304561Sed					cloudabi_fd_t fd, \
189304561Sed					const char *path2, \
190316574Sed					size_t path2_len); }
191304561Sed
192304561Sed30	AUE_NULL	STD	{ void cloudabi_sys_file_unlink( \
193304561Sed					cloudabi_fd_t fd, \
194304561Sed					const char *path, \
195316574Sed					size_t path_len, \
196304561Sed					cloudabi_ulflags_t flags); }
197304561Sed
198304561Sed31	AUE_NULL	STD	{ void cloudabi_sys_lock_unlock( \
199304561Sed					cloudabi_lock_t *lock, \
200304561Sed					cloudabi_scope_t scope); }
201304561Sed
202304561Sed32	AUE_NULL	STD	{ void cloudabi_sys_mem_advise( \
203316574Sed					void *mapping, \
204316574Sed					size_t mapping_len, \
205304561Sed					cloudabi_advice_t advice); }
206304561Sed
207324250Sed33	AUE_NULL	STD	{ void cloudabi_sys_mem_map( \
208304561Sed					void *addr, \
209304561Sed					size_t len, \
210304561Sed					cloudabi_mprot_t prot, \
211304561Sed					cloudabi_mflags_t flags, \
212304561Sed					cloudabi_fd_t fd, \
213304561Sed					cloudabi_filesize_t off); }
214304561Sed
215324250Sed34	AUE_NULL	STD	{ void cloudabi_sys_mem_protect( \
216316574Sed					void *mapping, \
217316574Sed					size_t mapping_len, \
218304561Sed					cloudabi_mprot_t prot); }
219304561Sed
220324250Sed35	AUE_NULL	STD	{ void cloudabi_sys_mem_sync( \
221316574Sed					void *mapping, \
222316574Sed					size_t mapping_len, \
223304561Sed					cloudabi_msflags_t flags); }
224304561Sed
225324250Sed36	AUE_NULL	STD	{ void cloudabi_sys_mem_unmap( \
226316574Sed					void *mapping, \
227316574Sed					size_t mapping_len); }
228304561Sed
229324250Sed37	AUE_NULL	STD	{ size_t cloudabi32_sys_poll( \
230304561Sed					const cloudabi32_subscription_t *in, \
231325858Sed					cloudabi_event_t *out, \
232304561Sed					size_t nsubscriptions); }
233304561Sed
234325858Sed38	AUE_NULL	STD	{ void cloudabi_sys_proc_exec( \
235304561Sed					cloudabi_fd_t fd, \
236304561Sed					const void *data, \
237316574Sed					size_t data_len, \
238304561Sed					const cloudabi_fd_t *fds, \
239316574Sed					size_t fds_len); }
240304561Sed
241325858Sed39	AUE_NULL	STD	{ void cloudabi_sys_proc_exit( \
242304561Sed					cloudabi_exitcode_t rval); }
243304561Sed
244325858Sed40	AUE_NULL	STD	{ void cloudabi_sys_proc_fork(); }
245304561Sed
246325858Sed41	AUE_NULL	STD	{ void cloudabi_sys_proc_raise( \
247304561Sed					cloudabi_signal_t sig); }
248304561Sed
249325858Sed42	AUE_NULL	STD	{ void cloudabi_sys_random_get( \
250304561Sed					void *buf, \
251316574Sed					size_t buf_len); }
252304561Sed
253325858Sed43	AUE_NULL	STD	{ void cloudabi32_sys_sock_recv( \
254304561Sed					cloudabi_fd_t sock, \
255304561Sed					const cloudabi32_recv_in_t *in, \
256304561Sed					cloudabi32_recv_out_t *out); }
257304561Sed
258325858Sed44	AUE_NULL	STD	{ void cloudabi32_sys_sock_send( \
259304561Sed					cloudabi_fd_t sock, \
260304561Sed					const cloudabi32_send_in_t *in, \
261304561Sed					cloudabi32_send_out_t *out); }
262304561Sed
263325858Sed45	AUE_NULL	STD	{ void cloudabi_sys_sock_shutdown( \
264304561Sed					cloudabi_fd_t sock, \
265304561Sed					cloudabi_sdflags_t how); }
266304561Sed
267325858Sed46	AUE_NULL	STD	{ cloudabi_tid_t cloudabi32_sys_thread_create( \
268304561Sed					cloudabi32_threadattr_t *attr); }
269304561Sed
270325858Sed47	AUE_NULL	STD	{ void cloudabi_sys_thread_exit( \
271304561Sed					cloudabi_lock_t *lock, \
272304561Sed					cloudabi_scope_t scope); }
273304561Sed
274325858Sed48	AUE_NULL	STD	{ void cloudabi_sys_thread_yield(); }
275