]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/compat/cloudabi64/cloudabi64_proto.h
MFC 313564:
[FreeBSD/FreeBSD.git] / sys / compat / cloudabi64 / cloudabi64_proto.h
1 /*
2  * System call prototypes.
3  *
4  * DO NOT EDIT-- this file is automatically generated.
5  * $FreeBSD$
6  */
7
8 #ifndef _CLOUDABI64_SYSPROTO_H_
9 #define _CLOUDABI64_SYSPROTO_H_
10
11 #include <sys/signal.h>
12 #include <sys/acl.h>
13 #include <sys/cpuset.h>
14 #include <sys/_ffcounter.h>
15 #include <sys/_semaphore.h>
16 #include <sys/ucontext.h>
17 #include <sys/wait.h>
18
19 #include <bsm/audit_kevents.h>
20
21 struct proc;
22
23 struct thread;
24
25 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
26                 0 : sizeof(register_t) - sizeof(t))
27
28 #if BYTE_ORDER == LITTLE_ENDIAN
29 #define PADL_(t)        0
30 #define PADR_(t)        PAD_(t)
31 #else
32 #define PADL_(t)        PAD_(t)
33 #define PADR_(t)        0
34 #endif
35
36 struct cloudabi_sys_clock_res_get_args {
37         char clock_id_l_[PADL_(cloudabi_clockid_t)]; cloudabi_clockid_t clock_id; char clock_id_r_[PADR_(cloudabi_clockid_t)];
38 };
39 struct cloudabi_sys_clock_time_get_args {
40         char clock_id_l_[PADL_(cloudabi_clockid_t)]; cloudabi_clockid_t clock_id; char clock_id_r_[PADR_(cloudabi_clockid_t)];
41         char precision_l_[PADL_(cloudabi_timestamp_t)]; cloudabi_timestamp_t precision; char precision_r_[PADR_(cloudabi_timestamp_t)];
42 };
43 struct cloudabi_sys_condvar_signal_args {
44         char condvar_l_[PADL_(cloudabi_condvar_t *)]; cloudabi_condvar_t * condvar; char condvar_r_[PADR_(cloudabi_condvar_t *)];
45         char scope_l_[PADL_(cloudabi_scope_t)]; cloudabi_scope_t scope; char scope_r_[PADR_(cloudabi_scope_t)];
46         char nwaiters_l_[PADL_(cloudabi_nthreads_t)]; cloudabi_nthreads_t nwaiters; char nwaiters_r_[PADR_(cloudabi_nthreads_t)];
47 };
48 struct cloudabi_sys_fd_close_args {
49         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
50 };
51 struct cloudabi_sys_fd_create1_args {
52         char type_l_[PADL_(cloudabi_filetype_t)]; cloudabi_filetype_t type; char type_r_[PADR_(cloudabi_filetype_t)];
53 };
54 struct cloudabi_sys_fd_create2_args {
55         char type_l_[PADL_(cloudabi_filetype_t)]; cloudabi_filetype_t type; char type_r_[PADR_(cloudabi_filetype_t)];
56 };
57 struct cloudabi_sys_fd_datasync_args {
58         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
59 };
60 struct cloudabi_sys_fd_dup_args {
61         char from_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t from; char from_r_[PADR_(cloudabi_fd_t)];
62 };
63 struct cloudabi64_sys_fd_pread_args {
64         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
65         char iovs_l_[PADL_(const cloudabi64_iovec_t *)]; const cloudabi64_iovec_t * iovs; char iovs_r_[PADR_(const cloudabi64_iovec_t *)];
66         char iovs_len_l_[PADL_(size_t)]; size_t iovs_len; char iovs_len_r_[PADR_(size_t)];
67         char offset_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t offset; char offset_r_[PADR_(cloudabi_filesize_t)];
68 };
69 struct cloudabi64_sys_fd_pwrite_args {
70         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
71         char iovs_l_[PADL_(const cloudabi64_ciovec_t *)]; const cloudabi64_ciovec_t * iovs; char iovs_r_[PADR_(const cloudabi64_ciovec_t *)];
72         char iovs_len_l_[PADL_(size_t)]; size_t iovs_len; char iovs_len_r_[PADR_(size_t)];
73         char offset_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t offset; char offset_r_[PADR_(cloudabi_filesize_t)];
74 };
75 struct cloudabi64_sys_fd_read_args {
76         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
77         char iovs_l_[PADL_(const cloudabi64_iovec_t *)]; const cloudabi64_iovec_t * iovs; char iovs_r_[PADR_(const cloudabi64_iovec_t *)];
78         char iovs_len_l_[PADL_(size_t)]; size_t iovs_len; char iovs_len_r_[PADR_(size_t)];
79 };
80 struct cloudabi_sys_fd_replace_args {
81         char from_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t from; char from_r_[PADR_(cloudabi_fd_t)];
82         char to_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t to; char to_r_[PADR_(cloudabi_fd_t)];
83 };
84 struct cloudabi_sys_fd_seek_args {
85         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
86         char offset_l_[PADL_(cloudabi_filedelta_t)]; cloudabi_filedelta_t offset; char offset_r_[PADR_(cloudabi_filedelta_t)];
87         char whence_l_[PADL_(cloudabi_whence_t)]; cloudabi_whence_t whence; char whence_r_[PADR_(cloudabi_whence_t)];
88 };
89 struct cloudabi_sys_fd_stat_get_args {
90         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
91         char buf_l_[PADL_(cloudabi_fdstat_t *)]; cloudabi_fdstat_t * buf; char buf_r_[PADR_(cloudabi_fdstat_t *)];
92 };
93 struct cloudabi_sys_fd_stat_put_args {
94         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
95         char buf_l_[PADL_(const cloudabi_fdstat_t *)]; const cloudabi_fdstat_t * buf; char buf_r_[PADR_(const cloudabi_fdstat_t *)];
96         char flags_l_[PADL_(cloudabi_fdsflags_t)]; cloudabi_fdsflags_t flags; char flags_r_[PADR_(cloudabi_fdsflags_t)];
97 };
98 struct cloudabi_sys_fd_sync_args {
99         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
100 };
101 struct cloudabi64_sys_fd_write_args {
102         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
103         char iovs_l_[PADL_(const cloudabi64_ciovec_t *)]; const cloudabi64_ciovec_t * iovs; char iovs_r_[PADR_(const cloudabi64_ciovec_t *)];
104         char iovs_len_l_[PADL_(size_t)]; size_t iovs_len; char iovs_len_r_[PADR_(size_t)];
105 };
106 struct cloudabi_sys_file_advise_args {
107         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
108         char offset_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t offset; char offset_r_[PADR_(cloudabi_filesize_t)];
109         char len_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t len; char len_r_[PADR_(cloudabi_filesize_t)];
110         char advice_l_[PADL_(cloudabi_advice_t)]; cloudabi_advice_t advice; char advice_r_[PADR_(cloudabi_advice_t)];
111 };
112 struct cloudabi_sys_file_allocate_args {
113         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
114         char offset_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t offset; char offset_r_[PADR_(cloudabi_filesize_t)];
115         char len_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t len; char len_r_[PADR_(cloudabi_filesize_t)];
116 };
117 struct cloudabi_sys_file_create_args {
118         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
119         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
120         char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)];
121         char type_l_[PADL_(cloudabi_filetype_t)]; cloudabi_filetype_t type; char type_r_[PADR_(cloudabi_filetype_t)];
122 };
123 struct cloudabi_sys_file_link_args {
124         char fd1_l_[PADL_(cloudabi_lookup_t)]; cloudabi_lookup_t fd1; char fd1_r_[PADR_(cloudabi_lookup_t)];
125         char path1_l_[PADL_(const char *)]; const char * path1; char path1_r_[PADR_(const char *)];
126         char path1_len_l_[PADL_(size_t)]; size_t path1_len; char path1_len_r_[PADR_(size_t)];
127         char fd2_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd2; char fd2_r_[PADR_(cloudabi_fd_t)];
128         char path2_l_[PADL_(const char *)]; const char * path2; char path2_r_[PADR_(const char *)];
129         char path2_len_l_[PADL_(size_t)]; size_t path2_len; char path2_len_r_[PADR_(size_t)];
130 };
131 struct cloudabi_sys_file_open_args {
132         char dirfd_l_[PADL_(cloudabi_lookup_t)]; cloudabi_lookup_t dirfd; char dirfd_r_[PADR_(cloudabi_lookup_t)];
133         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
134         char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)];
135         char oflags_l_[PADL_(cloudabi_oflags_t)]; cloudabi_oflags_t oflags; char oflags_r_[PADR_(cloudabi_oflags_t)];
136         char fds_l_[PADL_(const cloudabi_fdstat_t *)]; const cloudabi_fdstat_t * fds; char fds_r_[PADR_(const cloudabi_fdstat_t *)];
137 };
138 struct cloudabi_sys_file_readdir_args {
139         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
140         char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
141         char buf_len_l_[PADL_(size_t)]; size_t buf_len; char buf_len_r_[PADR_(size_t)];
142         char cookie_l_[PADL_(cloudabi_dircookie_t)]; cloudabi_dircookie_t cookie; char cookie_r_[PADR_(cloudabi_dircookie_t)];
143 };
144 struct cloudabi_sys_file_readlink_args {
145         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
146         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
147         char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)];
148         char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
149         char buf_len_l_[PADL_(size_t)]; size_t buf_len; char buf_len_r_[PADR_(size_t)];
150 };
151 struct cloudabi_sys_file_rename_args {
152         char fd1_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd1; char fd1_r_[PADR_(cloudabi_fd_t)];
153         char path1_l_[PADL_(const char *)]; const char * path1; char path1_r_[PADR_(const char *)];
154         char path1_len_l_[PADL_(size_t)]; size_t path1_len; char path1_len_r_[PADR_(size_t)];
155         char fd2_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd2; char fd2_r_[PADR_(cloudabi_fd_t)];
156         char path2_l_[PADL_(const char *)]; const char * path2; char path2_r_[PADR_(const char *)];
157         char path2_len_l_[PADL_(size_t)]; size_t path2_len; char path2_len_r_[PADR_(size_t)];
158 };
159 struct cloudabi_sys_file_stat_fget_args {
160         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
161         char buf_l_[PADL_(cloudabi_filestat_t *)]; cloudabi_filestat_t * buf; char buf_r_[PADR_(cloudabi_filestat_t *)];
162 };
163 struct cloudabi_sys_file_stat_fput_args {
164         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
165         char buf_l_[PADL_(const cloudabi_filestat_t *)]; const cloudabi_filestat_t * buf; char buf_r_[PADR_(const cloudabi_filestat_t *)];
166         char flags_l_[PADL_(cloudabi_fsflags_t)]; cloudabi_fsflags_t flags; char flags_r_[PADR_(cloudabi_fsflags_t)];
167 };
168 struct cloudabi_sys_file_stat_get_args {
169         char fd_l_[PADL_(cloudabi_lookup_t)]; cloudabi_lookup_t fd; char fd_r_[PADR_(cloudabi_lookup_t)];
170         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
171         char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)];
172         char buf_l_[PADL_(cloudabi_filestat_t *)]; cloudabi_filestat_t * buf; char buf_r_[PADR_(cloudabi_filestat_t *)];
173 };
174 struct cloudabi_sys_file_stat_put_args {
175         char fd_l_[PADL_(cloudabi_lookup_t)]; cloudabi_lookup_t fd; char fd_r_[PADR_(cloudabi_lookup_t)];
176         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
177         char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)];
178         char buf_l_[PADL_(const cloudabi_filestat_t *)]; const cloudabi_filestat_t * buf; char buf_r_[PADR_(const cloudabi_filestat_t *)];
179         char flags_l_[PADL_(cloudabi_fsflags_t)]; cloudabi_fsflags_t flags; char flags_r_[PADR_(cloudabi_fsflags_t)];
180 };
181 struct cloudabi_sys_file_symlink_args {
182         char path1_l_[PADL_(const char *)]; const char * path1; char path1_r_[PADR_(const char *)];
183         char path1_len_l_[PADL_(size_t)]; size_t path1_len; char path1_len_r_[PADR_(size_t)];
184         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
185         char path2_l_[PADL_(const char *)]; const char * path2; char path2_r_[PADR_(const char *)];
186         char path2_len_l_[PADL_(size_t)]; size_t path2_len; char path2_len_r_[PADR_(size_t)];
187 };
188 struct cloudabi_sys_file_unlink_args {
189         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
190         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
191         char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)];
192         char flags_l_[PADL_(cloudabi_ulflags_t)]; cloudabi_ulflags_t flags; char flags_r_[PADR_(cloudabi_ulflags_t)];
193 };
194 struct cloudabi_sys_lock_unlock_args {
195         char lock_l_[PADL_(cloudabi_lock_t *)]; cloudabi_lock_t * lock; char lock_r_[PADR_(cloudabi_lock_t *)];
196         char scope_l_[PADL_(cloudabi_scope_t)]; cloudabi_scope_t scope; char scope_r_[PADR_(cloudabi_scope_t)];
197 };
198 struct cloudabi_sys_mem_advise_args {
199         char mapping_l_[PADL_(void *)]; void * mapping; char mapping_r_[PADR_(void *)];
200         char mapping_len_l_[PADL_(size_t)]; size_t mapping_len; char mapping_len_r_[PADR_(size_t)];
201         char advice_l_[PADL_(cloudabi_advice_t)]; cloudabi_advice_t advice; char advice_r_[PADR_(cloudabi_advice_t)];
202 };
203 struct cloudabi_sys_mem_lock_args {
204         char mapping_l_[PADL_(const void *)]; const void * mapping; char mapping_r_[PADR_(const void *)];
205         char mapping_len_l_[PADL_(size_t)]; size_t mapping_len; char mapping_len_r_[PADR_(size_t)];
206 };
207 struct cloudabi_sys_mem_map_args {
208         char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
209         char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
210         char prot_l_[PADL_(cloudabi_mprot_t)]; cloudabi_mprot_t prot; char prot_r_[PADR_(cloudabi_mprot_t)];
211         char flags_l_[PADL_(cloudabi_mflags_t)]; cloudabi_mflags_t flags; char flags_r_[PADR_(cloudabi_mflags_t)];
212         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
213         char off_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t off; char off_r_[PADR_(cloudabi_filesize_t)];
214 };
215 struct cloudabi_sys_mem_protect_args {
216         char mapping_l_[PADL_(void *)]; void * mapping; char mapping_r_[PADR_(void *)];
217         char mapping_len_l_[PADL_(size_t)]; size_t mapping_len; char mapping_len_r_[PADR_(size_t)];
218         char prot_l_[PADL_(cloudabi_mprot_t)]; cloudabi_mprot_t prot; char prot_r_[PADR_(cloudabi_mprot_t)];
219 };
220 struct cloudabi_sys_mem_sync_args {
221         char mapping_l_[PADL_(void *)]; void * mapping; char mapping_r_[PADR_(void *)];
222         char mapping_len_l_[PADL_(size_t)]; size_t mapping_len; char mapping_len_r_[PADR_(size_t)];
223         char flags_l_[PADL_(cloudabi_msflags_t)]; cloudabi_msflags_t flags; char flags_r_[PADR_(cloudabi_msflags_t)];
224 };
225 struct cloudabi_sys_mem_unlock_args {
226         char mapping_l_[PADL_(const void *)]; const void * mapping; char mapping_r_[PADR_(const void *)];
227         char mapping_len_l_[PADL_(size_t)]; size_t mapping_len; char mapping_len_r_[PADR_(size_t)];
228 };
229 struct cloudabi_sys_mem_unmap_args {
230         char mapping_l_[PADL_(void *)]; void * mapping; char mapping_r_[PADR_(void *)];
231         char mapping_len_l_[PADL_(size_t)]; size_t mapping_len; char mapping_len_r_[PADR_(size_t)];
232 };
233 struct cloudabi64_sys_poll_args {
234         char in_l_[PADL_(const cloudabi64_subscription_t *)]; const cloudabi64_subscription_t * in; char in_r_[PADR_(const cloudabi64_subscription_t *)];
235         char out_l_[PADL_(cloudabi64_event_t *)]; cloudabi64_event_t * out; char out_r_[PADR_(cloudabi64_event_t *)];
236         char nsubscriptions_l_[PADL_(size_t)]; size_t nsubscriptions; char nsubscriptions_r_[PADR_(size_t)];
237 };
238 struct cloudabi64_sys_poll_fd_args {
239         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
240         char in_l_[PADL_(const cloudabi64_subscription_t *)]; const cloudabi64_subscription_t * in; char in_r_[PADR_(const cloudabi64_subscription_t *)];
241         char in_len_l_[PADL_(size_t)]; size_t in_len; char in_len_r_[PADR_(size_t)];
242         char out_l_[PADL_(cloudabi64_event_t *)]; cloudabi64_event_t * out; char out_r_[PADR_(cloudabi64_event_t *)];
243         char out_len_l_[PADL_(size_t)]; size_t out_len; char out_len_r_[PADR_(size_t)];
244         char timeout_l_[PADL_(const cloudabi64_subscription_t *)]; const cloudabi64_subscription_t * timeout; char timeout_r_[PADR_(const cloudabi64_subscription_t *)];
245 };
246 struct cloudabi_sys_proc_exec_args {
247         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
248         char data_l_[PADL_(const void *)]; const void * data; char data_r_[PADR_(const void *)];
249         char data_len_l_[PADL_(size_t)]; size_t data_len; char data_len_r_[PADR_(size_t)];
250         char fds_l_[PADL_(const cloudabi_fd_t *)]; const cloudabi_fd_t * fds; char fds_r_[PADR_(const cloudabi_fd_t *)];
251         char fds_len_l_[PADL_(size_t)]; size_t fds_len; char fds_len_r_[PADR_(size_t)];
252 };
253 struct cloudabi_sys_proc_exit_args {
254         char rval_l_[PADL_(cloudabi_exitcode_t)]; cloudabi_exitcode_t rval; char rval_r_[PADR_(cloudabi_exitcode_t)];
255 };
256 struct cloudabi_sys_proc_fork_args {
257         register_t dummy;
258 };
259 struct cloudabi_sys_proc_raise_args {
260         char sig_l_[PADL_(cloudabi_signal_t)]; cloudabi_signal_t sig; char sig_r_[PADR_(cloudabi_signal_t)];
261 };
262 struct cloudabi_sys_random_get_args {
263         char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
264         char buf_len_l_[PADL_(size_t)]; size_t buf_len; char buf_len_r_[PADR_(size_t)];
265 };
266 struct cloudabi_sys_sock_accept_args {
267         char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)];
268         char buf_l_[PADL_(cloudabi_sockstat_t *)]; cloudabi_sockstat_t * buf; char buf_r_[PADR_(cloudabi_sockstat_t *)];
269 };
270 struct cloudabi_sys_sock_bind_args {
271         char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)];
272         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
273         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
274         char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)];
275 };
276 struct cloudabi_sys_sock_connect_args {
277         char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)];
278         char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)];
279         char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
280         char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)];
281 };
282 struct cloudabi_sys_sock_listen_args {
283         char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)];
284         char backlog_l_[PADL_(cloudabi_backlog_t)]; cloudabi_backlog_t backlog; char backlog_r_[PADR_(cloudabi_backlog_t)];
285 };
286 struct cloudabi64_sys_sock_recv_args {
287         char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)];
288         char in_l_[PADL_(const cloudabi64_recv_in_t *)]; const cloudabi64_recv_in_t * in; char in_r_[PADR_(const cloudabi64_recv_in_t *)];
289         char out_l_[PADL_(cloudabi64_recv_out_t *)]; cloudabi64_recv_out_t * out; char out_r_[PADR_(cloudabi64_recv_out_t *)];
290 };
291 struct cloudabi64_sys_sock_send_args {
292         char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)];
293         char in_l_[PADL_(const cloudabi64_send_in_t *)]; const cloudabi64_send_in_t * in; char in_r_[PADR_(const cloudabi64_send_in_t *)];
294         char out_l_[PADL_(cloudabi64_send_out_t *)]; cloudabi64_send_out_t * out; char out_r_[PADR_(cloudabi64_send_out_t *)];
295 };
296 struct cloudabi_sys_sock_shutdown_args {
297         char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)];
298         char how_l_[PADL_(cloudabi_sdflags_t)]; cloudabi_sdflags_t how; char how_r_[PADR_(cloudabi_sdflags_t)];
299 };
300 struct cloudabi_sys_sock_stat_get_args {
301         char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)];
302         char buf_l_[PADL_(cloudabi_sockstat_t *)]; cloudabi_sockstat_t * buf; char buf_r_[PADR_(cloudabi_sockstat_t *)];
303         char flags_l_[PADL_(cloudabi_ssflags_t)]; cloudabi_ssflags_t flags; char flags_r_[PADR_(cloudabi_ssflags_t)];
304 };
305 struct cloudabi64_sys_thread_create_args {
306         char attr_l_[PADL_(cloudabi64_threadattr_t *)]; cloudabi64_threadattr_t * attr; char attr_r_[PADR_(cloudabi64_threadattr_t *)];
307 };
308 struct cloudabi_sys_thread_exit_args {
309         char lock_l_[PADL_(cloudabi_lock_t *)]; cloudabi_lock_t * lock; char lock_r_[PADR_(cloudabi_lock_t *)];
310         char scope_l_[PADL_(cloudabi_scope_t)]; cloudabi_scope_t scope; char scope_r_[PADR_(cloudabi_scope_t)];
311 };
312 struct cloudabi_sys_thread_yield_args {
313         register_t dummy;
314 };
315 int     cloudabi_sys_clock_res_get(struct thread *, struct cloudabi_sys_clock_res_get_args *);
316 int     cloudabi_sys_clock_time_get(struct thread *, struct cloudabi_sys_clock_time_get_args *);
317 int     cloudabi_sys_condvar_signal(struct thread *, struct cloudabi_sys_condvar_signal_args *);
318 int     cloudabi_sys_fd_close(struct thread *, struct cloudabi_sys_fd_close_args *);
319 int     cloudabi_sys_fd_create1(struct thread *, struct cloudabi_sys_fd_create1_args *);
320 int     cloudabi_sys_fd_create2(struct thread *, struct cloudabi_sys_fd_create2_args *);
321 int     cloudabi_sys_fd_datasync(struct thread *, struct cloudabi_sys_fd_datasync_args *);
322 int     cloudabi_sys_fd_dup(struct thread *, struct cloudabi_sys_fd_dup_args *);
323 int     cloudabi64_sys_fd_pread(struct thread *, struct cloudabi64_sys_fd_pread_args *);
324 int     cloudabi64_sys_fd_pwrite(struct thread *, struct cloudabi64_sys_fd_pwrite_args *);
325 int     cloudabi64_sys_fd_read(struct thread *, struct cloudabi64_sys_fd_read_args *);
326 int     cloudabi_sys_fd_replace(struct thread *, struct cloudabi_sys_fd_replace_args *);
327 int     cloudabi_sys_fd_seek(struct thread *, struct cloudabi_sys_fd_seek_args *);
328 int     cloudabi_sys_fd_stat_get(struct thread *, struct cloudabi_sys_fd_stat_get_args *);
329 int     cloudabi_sys_fd_stat_put(struct thread *, struct cloudabi_sys_fd_stat_put_args *);
330 int     cloudabi_sys_fd_sync(struct thread *, struct cloudabi_sys_fd_sync_args *);
331 int     cloudabi64_sys_fd_write(struct thread *, struct cloudabi64_sys_fd_write_args *);
332 int     cloudabi_sys_file_advise(struct thread *, struct cloudabi_sys_file_advise_args *);
333 int     cloudabi_sys_file_allocate(struct thread *, struct cloudabi_sys_file_allocate_args *);
334 int     cloudabi_sys_file_create(struct thread *, struct cloudabi_sys_file_create_args *);
335 int     cloudabi_sys_file_link(struct thread *, struct cloudabi_sys_file_link_args *);
336 int     cloudabi_sys_file_open(struct thread *, struct cloudabi_sys_file_open_args *);
337 int     cloudabi_sys_file_readdir(struct thread *, struct cloudabi_sys_file_readdir_args *);
338 int     cloudabi_sys_file_readlink(struct thread *, struct cloudabi_sys_file_readlink_args *);
339 int     cloudabi_sys_file_rename(struct thread *, struct cloudabi_sys_file_rename_args *);
340 int     cloudabi_sys_file_stat_fget(struct thread *, struct cloudabi_sys_file_stat_fget_args *);
341 int     cloudabi_sys_file_stat_fput(struct thread *, struct cloudabi_sys_file_stat_fput_args *);
342 int     cloudabi_sys_file_stat_get(struct thread *, struct cloudabi_sys_file_stat_get_args *);
343 int     cloudabi_sys_file_stat_put(struct thread *, struct cloudabi_sys_file_stat_put_args *);
344 int     cloudabi_sys_file_symlink(struct thread *, struct cloudabi_sys_file_symlink_args *);
345 int     cloudabi_sys_file_unlink(struct thread *, struct cloudabi_sys_file_unlink_args *);
346 int     cloudabi_sys_lock_unlock(struct thread *, struct cloudabi_sys_lock_unlock_args *);
347 int     cloudabi_sys_mem_advise(struct thread *, struct cloudabi_sys_mem_advise_args *);
348 int     cloudabi_sys_mem_lock(struct thread *, struct cloudabi_sys_mem_lock_args *);
349 int     cloudabi_sys_mem_map(struct thread *, struct cloudabi_sys_mem_map_args *);
350 int     cloudabi_sys_mem_protect(struct thread *, struct cloudabi_sys_mem_protect_args *);
351 int     cloudabi_sys_mem_sync(struct thread *, struct cloudabi_sys_mem_sync_args *);
352 int     cloudabi_sys_mem_unlock(struct thread *, struct cloudabi_sys_mem_unlock_args *);
353 int     cloudabi_sys_mem_unmap(struct thread *, struct cloudabi_sys_mem_unmap_args *);
354 int     cloudabi64_sys_poll(struct thread *, struct cloudabi64_sys_poll_args *);
355 int     cloudabi64_sys_poll_fd(struct thread *, struct cloudabi64_sys_poll_fd_args *);
356 int     cloudabi_sys_proc_exec(struct thread *, struct cloudabi_sys_proc_exec_args *);
357 int     cloudabi_sys_proc_exit(struct thread *, struct cloudabi_sys_proc_exit_args *);
358 int     cloudabi_sys_proc_fork(struct thread *, struct cloudabi_sys_proc_fork_args *);
359 int     cloudabi_sys_proc_raise(struct thread *, struct cloudabi_sys_proc_raise_args *);
360 int     cloudabi_sys_random_get(struct thread *, struct cloudabi_sys_random_get_args *);
361 int     cloudabi_sys_sock_accept(struct thread *, struct cloudabi_sys_sock_accept_args *);
362 int     cloudabi_sys_sock_bind(struct thread *, struct cloudabi_sys_sock_bind_args *);
363 int     cloudabi_sys_sock_connect(struct thread *, struct cloudabi_sys_sock_connect_args *);
364 int     cloudabi_sys_sock_listen(struct thread *, struct cloudabi_sys_sock_listen_args *);
365 int     cloudabi64_sys_sock_recv(struct thread *, struct cloudabi64_sys_sock_recv_args *);
366 int     cloudabi64_sys_sock_send(struct thread *, struct cloudabi64_sys_sock_send_args *);
367 int     cloudabi_sys_sock_shutdown(struct thread *, struct cloudabi_sys_sock_shutdown_args *);
368 int     cloudabi_sys_sock_stat_get(struct thread *, struct cloudabi_sys_sock_stat_get_args *);
369 int     cloudabi64_sys_thread_create(struct thread *, struct cloudabi64_sys_thread_create_args *);
370 int     cloudabi_sys_thread_exit(struct thread *, struct cloudabi_sys_thread_exit_args *);
371 int     cloudabi_sys_thread_yield(struct thread *, struct cloudabi_sys_thread_yield_args *);
372
373 #ifdef COMPAT_43
374
375
376 #endif /* COMPAT_43 */
377
378
379 #ifdef COMPAT_FREEBSD4
380
381
382 #endif /* COMPAT_FREEBSD4 */
383
384
385 #ifdef COMPAT_FREEBSD6
386
387
388 #endif /* COMPAT_FREEBSD6 */
389
390
391 #ifdef COMPAT_FREEBSD7
392
393
394 #endif /* COMPAT_FREEBSD7 */
395
396
397 #ifdef COMPAT_FREEBSD10
398
399
400 #endif /* COMPAT_FREEBSD10 */
401
402 #define CLOUDABI64_SYS_AUE_cloudabi_sys_clock_res_get   AUE_NULL
403 #define CLOUDABI64_SYS_AUE_cloudabi_sys_clock_time_get  AUE_NULL
404 #define CLOUDABI64_SYS_AUE_cloudabi_sys_condvar_signal  AUE_NULL
405 #define CLOUDABI64_SYS_AUE_cloudabi_sys_fd_close        AUE_NULL
406 #define CLOUDABI64_SYS_AUE_cloudabi_sys_fd_create1      AUE_NULL
407 #define CLOUDABI64_SYS_AUE_cloudabi_sys_fd_create2      AUE_NULL
408 #define CLOUDABI64_SYS_AUE_cloudabi_sys_fd_datasync     AUE_NULL
409 #define CLOUDABI64_SYS_AUE_cloudabi_sys_fd_dup  AUE_NULL
410 #define CLOUDABI64_SYS_AUE_cloudabi64_sys_fd_pread      AUE_NULL
411 #define CLOUDABI64_SYS_AUE_cloudabi64_sys_fd_pwrite     AUE_NULL
412 #define CLOUDABI64_SYS_AUE_cloudabi64_sys_fd_read       AUE_NULL
413 #define CLOUDABI64_SYS_AUE_cloudabi_sys_fd_replace      AUE_NULL
414 #define CLOUDABI64_SYS_AUE_cloudabi_sys_fd_seek AUE_NULL
415 #define CLOUDABI64_SYS_AUE_cloudabi_sys_fd_stat_get     AUE_NULL
416 #define CLOUDABI64_SYS_AUE_cloudabi_sys_fd_stat_put     AUE_NULL
417 #define CLOUDABI64_SYS_AUE_cloudabi_sys_fd_sync AUE_NULL
418 #define CLOUDABI64_SYS_AUE_cloudabi64_sys_fd_write      AUE_NULL
419 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_advise     AUE_NULL
420 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_allocate   AUE_NULL
421 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_create     AUE_NULL
422 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_link       AUE_NULL
423 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_open       AUE_NULL
424 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_readdir    AUE_NULL
425 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_readlink   AUE_NULL
426 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_rename     AUE_NULL
427 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_stat_fget  AUE_NULL
428 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_stat_fput  AUE_NULL
429 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_stat_get   AUE_NULL
430 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_stat_put   AUE_NULL
431 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_symlink    AUE_NULL
432 #define CLOUDABI64_SYS_AUE_cloudabi_sys_file_unlink     AUE_NULL
433 #define CLOUDABI64_SYS_AUE_cloudabi_sys_lock_unlock     AUE_NULL
434 #define CLOUDABI64_SYS_AUE_cloudabi_sys_mem_advise      AUE_NULL
435 #define CLOUDABI64_SYS_AUE_cloudabi_sys_mem_lock        AUE_NULL
436 #define CLOUDABI64_SYS_AUE_cloudabi_sys_mem_map AUE_NULL
437 #define CLOUDABI64_SYS_AUE_cloudabi_sys_mem_protect     AUE_NULL
438 #define CLOUDABI64_SYS_AUE_cloudabi_sys_mem_sync        AUE_NULL
439 #define CLOUDABI64_SYS_AUE_cloudabi_sys_mem_unlock      AUE_NULL
440 #define CLOUDABI64_SYS_AUE_cloudabi_sys_mem_unmap       AUE_NULL
441 #define CLOUDABI64_SYS_AUE_cloudabi64_sys_poll  AUE_NULL
442 #define CLOUDABI64_SYS_AUE_cloudabi64_sys_poll_fd       AUE_NULL
443 #define CLOUDABI64_SYS_AUE_cloudabi_sys_proc_exec       AUE_NULL
444 #define CLOUDABI64_SYS_AUE_cloudabi_sys_proc_exit       AUE_NULL
445 #define CLOUDABI64_SYS_AUE_cloudabi_sys_proc_fork       AUE_NULL
446 #define CLOUDABI64_SYS_AUE_cloudabi_sys_proc_raise      AUE_NULL
447 #define CLOUDABI64_SYS_AUE_cloudabi_sys_random_get      AUE_NULL
448 #define CLOUDABI64_SYS_AUE_cloudabi_sys_sock_accept     AUE_NULL
449 #define CLOUDABI64_SYS_AUE_cloudabi_sys_sock_bind       AUE_NULL
450 #define CLOUDABI64_SYS_AUE_cloudabi_sys_sock_connect    AUE_NULL
451 #define CLOUDABI64_SYS_AUE_cloudabi_sys_sock_listen     AUE_NULL
452 #define CLOUDABI64_SYS_AUE_cloudabi64_sys_sock_recv     AUE_NULL
453 #define CLOUDABI64_SYS_AUE_cloudabi64_sys_sock_send     AUE_NULL
454 #define CLOUDABI64_SYS_AUE_cloudabi_sys_sock_shutdown   AUE_NULL
455 #define CLOUDABI64_SYS_AUE_cloudabi_sys_sock_stat_get   AUE_NULL
456 #define CLOUDABI64_SYS_AUE_cloudabi64_sys_thread_create AUE_NULL
457 #define CLOUDABI64_SYS_AUE_cloudabi_sys_thread_exit     AUE_NULL
458 #define CLOUDABI64_SYS_AUE_cloudabi_sys_thread_yield    AUE_NULL
459
460 #undef PAD_
461 #undef PADL_
462 #undef PADR_
463
464 #endif /* !_CLOUDABI64_SYSPROTO_H_ */