syscalls32.master revision 316574
1 $FreeBSD: stable/11/sys/contrib/cloudabi/syscalls32.master 316574 2017-04-06 15:10:36Z ed $
2
3; Copyright (c) 2016 Nuxi (https://nuxi.nl/) and contributors.
4;
5; Redistribution and use in source and binary forms, with or without
6; modification, are permitted provided that the following conditions
7; are met:
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.
13;
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
24; SUCH DAMAGE.
25;
26; This file is automatically generated. Do not edit.
27;
28; Source: https://github.com/NuxiNL/cloudabi
29
30#include <sys/sysent.h>
31#include <sys/sysproto.h>
32
33#include <contrib/cloudabi/cloudabi32_types.h>
34
35#include <compat/cloudabi32/cloudabi32_proto.h>
36
370	AUE_NULL	STD	{ cloudabi_timestamp_t \
38					cloudabi_sys_clock_res_get( \
39					cloudabi_clockid_t clock_id); }
40
411	AUE_NULL	STD	{ cloudabi_timestamp_t \
42					cloudabi_sys_clock_time_get( \
43					cloudabi_clockid_t clock_id, \
44					cloudabi_timestamp_t precision); }
45
462	AUE_NULL	STD	{ void cloudabi_sys_condvar_signal( \
47					cloudabi_condvar_t *condvar, \
48					cloudabi_scope_t scope, \
49					cloudabi_nthreads_t nwaiters); }
50
513	AUE_NULL	STD	{ void cloudabi_sys_fd_close( \
52					cloudabi_fd_t fd); }
53
544	AUE_NULL	STD	{ cloudabi_fd_t cloudabi_sys_fd_create1( \
55					cloudabi_filetype_t type); }
56
575	AUE_NULL	STD	{ void cloudabi_sys_fd_create2( \
58					cloudabi_filetype_t type); }
59
606	AUE_NULL	STD	{ void cloudabi_sys_fd_datasync( \
61					cloudabi_fd_t fd); }
62
637	AUE_NULL	STD	{ cloudabi_fd_t cloudabi_sys_fd_dup( \
64					cloudabi_fd_t from); }
65
668	AUE_NULL	STD	{ size_t cloudabi32_sys_fd_pread( \
67					cloudabi_fd_t fd, \
68					const cloudabi32_iovec_t *iovs, \
69					size_t iovs_len, \
70					cloudabi_filesize_t offset); }
71
729	AUE_NULL	STD	{ size_t cloudabi32_sys_fd_pwrite( \
73					cloudabi_fd_t fd, \
74					const cloudabi32_ciovec_t *iovs, \
75					size_t iovs_len, \
76					cloudabi_filesize_t offset); }
77
7810	AUE_NULL	STD	{ size_t cloudabi32_sys_fd_read( \
79					cloudabi_fd_t fd, \
80					const cloudabi32_iovec_t *iovs, \
81					size_t iovs_len); }
82
8311	AUE_NULL	STD	{ void cloudabi_sys_fd_replace( \
84					cloudabi_fd_t from, \
85					cloudabi_fd_t to); }
86
8712	AUE_NULL	STD	{ cloudabi_filesize_t \
88					cloudabi_sys_fd_seek( \
89					cloudabi_fd_t fd, \
90					cloudabi_filedelta_t offset, \
91					cloudabi_whence_t whence); }
92
9313	AUE_NULL	STD	{ void cloudabi_sys_fd_stat_get( \
94					cloudabi_fd_t fd, \
95					cloudabi_fdstat_t *buf); }
96
9714	AUE_NULL	STD	{ void cloudabi_sys_fd_stat_put( \
98					cloudabi_fd_t fd, \
99					const cloudabi_fdstat_t *buf, \
100					cloudabi_fdsflags_t flags); }
101
10215	AUE_NULL	STD	{ void cloudabi_sys_fd_sync( \
103					cloudabi_fd_t fd); }
104
10516	AUE_NULL	STD	{ size_t cloudabi32_sys_fd_write( \
106					cloudabi_fd_t fd, \
107					const cloudabi32_ciovec_t *iovs, \
108					size_t iovs_len); }
109
11017	AUE_NULL	STD	{ void cloudabi_sys_file_advise( \
111					cloudabi_fd_t fd, \
112					cloudabi_filesize_t offset, \
113					cloudabi_filesize_t len, \
114					cloudabi_advice_t advice); }
115
11618	AUE_NULL	STD	{ void cloudabi_sys_file_allocate( \
117					cloudabi_fd_t fd, \
118					cloudabi_filesize_t offset, \
119					cloudabi_filesize_t len); }
120
12119	AUE_NULL	STD	{ void cloudabi_sys_file_create( \
122					cloudabi_fd_t fd, \
123					const char *path, \
124					size_t path_len, \
125					cloudabi_filetype_t type); }
126
12720	AUE_NULL	STD	{ void cloudabi_sys_file_link( \
128					cloudabi_lookup_t fd1, \
129					const char *path1, \
130					size_t path1_len, \
131					cloudabi_fd_t fd2, \
132					const char *path2, \
133					size_t path2_len); }
134
13521	AUE_NULL	STD	{ cloudabi_fd_t cloudabi_sys_file_open( \
136					cloudabi_lookup_t dirfd, \
137					const char *path, \
138					size_t path_len, \
139					cloudabi_oflags_t oflags, \
140					const cloudabi_fdstat_t *fds); }
141
14222	AUE_NULL	STD	{ size_t cloudabi_sys_file_readdir( \
143					cloudabi_fd_t fd, \
144					void *buf, \
145					size_t buf_len, \
146					cloudabi_dircookie_t cookie); }
147
14823	AUE_NULL	STD	{ size_t cloudabi_sys_file_readlink( \
149					cloudabi_fd_t fd, \
150					const char *path, \
151					size_t path_len, \
152					char *buf, \
153					size_t buf_len); }
154
15524	AUE_NULL	STD	{ void cloudabi_sys_file_rename( \
156					cloudabi_fd_t fd1, \
157					const char *path1, \
158					size_t path1_len, \
159					cloudabi_fd_t fd2, \
160					const char *path2, \
161					size_t path2_len); }
162
16325	AUE_NULL	STD	{ void cloudabi_sys_file_stat_fget( \
164					cloudabi_fd_t fd, \
165					cloudabi_filestat_t *buf); }
166
16726	AUE_NULL	STD	{ void cloudabi_sys_file_stat_fput( \
168					cloudabi_fd_t fd, \
169					const cloudabi_filestat_t *buf, \
170					cloudabi_fsflags_t flags); }
171
17227	AUE_NULL	STD	{ void cloudabi_sys_file_stat_get( \
173					cloudabi_lookup_t fd, \
174					const char *path, \
175					size_t path_len, \
176					cloudabi_filestat_t *buf); }
177
17828	AUE_NULL	STD	{ void cloudabi_sys_file_stat_put( \
179					cloudabi_lookup_t fd, \
180					const char *path, \
181					size_t path_len, \
182					const cloudabi_filestat_t *buf, \
183					cloudabi_fsflags_t flags); }
184
18529	AUE_NULL	STD	{ void cloudabi_sys_file_symlink( \
186					const char *path1, \
187					size_t path1_len, \
188					cloudabi_fd_t fd, \
189					const char *path2, \
190					size_t path2_len); }
191
19230	AUE_NULL	STD	{ void cloudabi_sys_file_unlink( \
193					cloudabi_fd_t fd, \
194					const char *path, \
195					size_t path_len, \
196					cloudabi_ulflags_t flags); }
197
19831	AUE_NULL	STD	{ void cloudabi_sys_lock_unlock( \
199					cloudabi_lock_t *lock, \
200					cloudabi_scope_t scope); }
201
20232	AUE_NULL	STD	{ void cloudabi_sys_mem_advise( \
203					void *mapping, \
204					size_t mapping_len, \
205					cloudabi_advice_t advice); }
206
20733	AUE_NULL	STD	{ void cloudabi_sys_mem_lock( \
208					const void *mapping, \
209					size_t mapping_len); }
210
21134	AUE_NULL	STD	{ void cloudabi_sys_mem_map( \
212					void *addr, \
213					size_t len, \
214					cloudabi_mprot_t prot, \
215					cloudabi_mflags_t flags, \
216					cloudabi_fd_t fd, \
217					cloudabi_filesize_t off); }
218
21935	AUE_NULL	STD	{ void cloudabi_sys_mem_protect( \
220					void *mapping, \
221					size_t mapping_len, \
222					cloudabi_mprot_t prot); }
223
22436	AUE_NULL	STD	{ void cloudabi_sys_mem_sync( \
225					void *mapping, \
226					size_t mapping_len, \
227					cloudabi_msflags_t flags); }
228
22937	AUE_NULL	STD	{ void cloudabi_sys_mem_unlock( \
230					const void *mapping, \
231					size_t mapping_len); }
232
23338	AUE_NULL	STD	{ void cloudabi_sys_mem_unmap( \
234					void *mapping, \
235					size_t mapping_len); }
236
23739	AUE_NULL	STD	{ size_t cloudabi32_sys_poll( \
238					const cloudabi32_subscription_t *in, \
239					cloudabi32_event_t *out, \
240					size_t nsubscriptions); }
241
24240	AUE_NULL	STD	{ size_t cloudabi32_sys_poll_fd( \
243					cloudabi_fd_t fd, \
244					const cloudabi32_subscription_t *in, \
245					size_t in_len, \
246					cloudabi32_event_t *out, \
247					size_t out_len, \
248					const cloudabi32_subscription_t *timeout); }
249
25041	AUE_NULL	STD	{ void cloudabi_sys_proc_exec( \
251					cloudabi_fd_t fd, \
252					const void *data, \
253					size_t data_len, \
254					const cloudabi_fd_t *fds, \
255					size_t fds_len); }
256
25742	AUE_NULL	STD	{ void cloudabi_sys_proc_exit( \
258					cloudabi_exitcode_t rval); }
259
26043	AUE_NULL	STD	{ void cloudabi_sys_proc_fork(); }
261
26244	AUE_NULL	STD	{ void cloudabi_sys_proc_raise( \
263					cloudabi_signal_t sig); }
264
26545	AUE_NULL	STD	{ void cloudabi_sys_random_get( \
266					void *buf, \
267					size_t buf_len); }
268
26946	AUE_NULL	STD	{ cloudabi_fd_t cloudabi_sys_sock_accept( \
270					cloudabi_fd_t sock, \
271					cloudabi_sockstat_t *buf); }
272
27347	AUE_NULL	STD	{ void cloudabi_sys_sock_bind( \
274					cloudabi_fd_t sock, \
275					cloudabi_fd_t fd, \
276					const char *path, \
277					size_t path_len); }
278
27948	AUE_NULL	STD	{ void cloudabi_sys_sock_connect( \
280					cloudabi_fd_t sock, \
281					cloudabi_fd_t fd, \
282					const char *path, \
283					size_t path_len); }
284
28549	AUE_NULL	STD	{ void cloudabi_sys_sock_listen( \
286					cloudabi_fd_t sock, \
287					cloudabi_backlog_t backlog); }
288
28950	AUE_NULL	STD	{ void cloudabi32_sys_sock_recv( \
290					cloudabi_fd_t sock, \
291					const cloudabi32_recv_in_t *in, \
292					cloudabi32_recv_out_t *out); }
293
29451	AUE_NULL	STD	{ void cloudabi32_sys_sock_send( \
295					cloudabi_fd_t sock, \
296					const cloudabi32_send_in_t *in, \
297					cloudabi32_send_out_t *out); }
298
29952	AUE_NULL	STD	{ void cloudabi_sys_sock_shutdown( \
300					cloudabi_fd_t sock, \
301					cloudabi_sdflags_t how); }
302
30353	AUE_NULL	STD	{ void cloudabi_sys_sock_stat_get( \
304					cloudabi_fd_t sock, \
305					cloudabi_sockstat_t *buf, \
306					cloudabi_ssflags_t flags); }
307
30854	AUE_NULL	STD	{ cloudabi_tid_t cloudabi32_sys_thread_create( \
309					cloudabi32_threadattr_t *attr); }
310
31155	AUE_NULL	STD	{ void cloudabi_sys_thread_exit( \
312					cloudabi_lock_t *lock, \
313					cloudabi_scope_t scope); }
314
31556	AUE_NULL	STD	{ void cloudabi_sys_thread_yield(); }
316