syscalls64.master revision 324250
1 $FreeBSD: stable/11/sys/contrib/cloudabi/syscalls64.master 324250 2017-10-04 07:35:01Z 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/cloudabi64_types.h>
34
35#include <compat/cloudabi64/cloudabi64_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 cloudabi64_sys_fd_pread( \
67					cloudabi_fd_t fd, \
68					const cloudabi64_iovec_t *iovs, \
69					size_t iovs_len, \
70					cloudabi_filesize_t offset); }
71
729	AUE_NULL	STD	{ size_t cloudabi64_sys_fd_pwrite( \
73					cloudabi_fd_t fd, \
74					const cloudabi64_ciovec_t *iovs, \
75					size_t iovs_len, \
76					cloudabi_filesize_t offset); }
77
7810	AUE_NULL	STD	{ size_t cloudabi64_sys_fd_read( \
79					cloudabi_fd_t fd, \
80					const cloudabi64_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 cloudabi64_sys_fd_write( \
106					cloudabi_fd_t fd, \
107					const cloudabi64_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_map( \
208					void *addr, \
209					size_t len, \
210					cloudabi_mprot_t prot, \
211					cloudabi_mflags_t flags, \
212					cloudabi_fd_t fd, \
213					cloudabi_filesize_t off); }
214
21534	AUE_NULL	STD	{ void cloudabi_sys_mem_protect( \
216					void *mapping, \
217					size_t mapping_len, \
218					cloudabi_mprot_t prot); }
219
22035	AUE_NULL	STD	{ void cloudabi_sys_mem_sync( \
221					void *mapping, \
222					size_t mapping_len, \
223					cloudabi_msflags_t flags); }
224
22536	AUE_NULL	STD	{ void cloudabi_sys_mem_unmap( \
226					void *mapping, \
227					size_t mapping_len); }
228
22937	AUE_NULL	STD	{ size_t cloudabi64_sys_poll( \
230					const cloudabi64_subscription_t *in, \
231					cloudabi64_event_t *out, \
232					size_t nsubscriptions); }
233
23438	AUE_NULL	STD	{ size_t cloudabi64_sys_poll_fd( \
235					cloudabi_fd_t fd, \
236					const cloudabi64_subscription_t *in, \
237					size_t in_len, \
238					cloudabi64_event_t *out, \
239					size_t out_len, \
240					const cloudabi64_subscription_t *timeout); }
241
24239	AUE_NULL	STD	{ void cloudabi_sys_proc_exec( \
243					cloudabi_fd_t fd, \
244					const void *data, \
245					size_t data_len, \
246					const cloudabi_fd_t *fds, \
247					size_t fds_len); }
248
24940	AUE_NULL	STD	{ void cloudabi_sys_proc_exit( \
250					cloudabi_exitcode_t rval); }
251
25241	AUE_NULL	STD	{ void cloudabi_sys_proc_fork(); }
253
25442	AUE_NULL	STD	{ void cloudabi_sys_proc_raise( \
255					cloudabi_signal_t sig); }
256
25743	AUE_NULL	STD	{ void cloudabi_sys_random_get( \
258					void *buf, \
259					size_t buf_len); }
260
26144	AUE_NULL	STD	{ void cloudabi64_sys_sock_recv( \
262					cloudabi_fd_t sock, \
263					const cloudabi64_recv_in_t *in, \
264					cloudabi64_recv_out_t *out); }
265
26645	AUE_NULL	STD	{ void cloudabi64_sys_sock_send( \
267					cloudabi_fd_t sock, \
268					const cloudabi64_send_in_t *in, \
269					cloudabi64_send_out_t *out); }
270
27146	AUE_NULL	STD	{ void cloudabi_sys_sock_shutdown( \
272					cloudabi_fd_t sock, \
273					cloudabi_sdflags_t how); }
274
27547	AUE_NULL	STD	{ cloudabi_tid_t cloudabi64_sys_thread_create( \
276					cloudabi64_threadattr_t *attr); }
277
27848	AUE_NULL	STD	{ void cloudabi_sys_thread_exit( \
279					cloudabi_lock_t *lock, \
280					cloudabi_scope_t scope); }
281
28249	AUE_NULL	STD	{ void cloudabi_sys_thread_yield(); }
283