aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/cloudabi/syscalls64.master
blob: c9bc9fc4f55c1d8597763eebfdc654e4305ee4e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
 $FreeBSD$

; Copyright (c) 2016 Nuxi (https://nuxi.nl/) and contributors.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; 1. Redistributions of source code must retain the above copyright
;    notice, this list of conditions and the following disclaimer.
; 2. Redistributions in binary form must reproduce the above copyright
;    notice, this list of conditions and the following disclaimer in the
;    documentation and/or other materials provided with the distribution.
;
; THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
; ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
; OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
; SUCH DAMAGE.
;
; This file is automatically generated. Do not edit.
;
; Source: https://github.com/NuxiNL/cloudabi

#include <sys/sysent.h>
#include <sys/sysproto.h>

#include <contrib/cloudabi/cloudabi64_types.h>

#include <compat/cloudabi64/cloudabi64_proto.h>

0	AUE_NULL	STD	{ cloudabi_timestamp_t \
					cloudabi_sys_clock_res_get( \
					cloudabi_clockid_t clock_id); }

1	AUE_NULL	STD	{ cloudabi_timestamp_t \
					cloudabi_sys_clock_time_get( \
					cloudabi_clockid_t clock_id, \
					cloudabi_timestamp_t precision); }

2	AUE_NULL	STD	{ void cloudabi_sys_condvar_signal( \
					cloudabi_condvar_t *condvar, \
					cloudabi_scope_t scope, \
					cloudabi_nthreads_t nwaiters); }

3	AUE_NULL	STD	{ void cloudabi_sys_fd_close( \
					cloudabi_fd_t fd); }

4	AUE_NULL	STD	{ cloudabi_fd_t cloudabi_sys_fd_create1( \
					cloudabi_filetype_t type); }

5	AUE_NULL	STD	{ void cloudabi_sys_fd_create2( \
					cloudabi_filetype_t type); }

6	AUE_NULL	STD	{ void cloudabi_sys_fd_datasync( \
					cloudabi_fd_t fd); }

7	AUE_NULL	STD	{ cloudabi_fd_t cloudabi_sys_fd_dup( \
					cloudabi_fd_t from); }

8	AUE_NULL	STD	{ size_t cloudabi64_sys_fd_pread( \
					cloudabi_fd_t fd, \
					const cloudabi64_iovec_t *iovs, \
					size_t iovs_len, \
					cloudabi_filesize_t offset); }

9	AUE_NULL	STD	{ size_t cloudabi64_sys_fd_pwrite( \
					cloudabi_fd_t fd, \
					const cloudabi64_ciovec_t *iovs, \
					size_t iovs_len, \
					cloudabi_filesize_t offset); }

10	AUE_NULL	STD	{ size_t cloudabi64_sys_fd_read( \
					cloudabi_fd_t fd, \
					const cloudabi64_iovec_t *iovs, \
					size_t iovs_len); }

11	AUE_NULL	STD	{ void cloudabi_sys_fd_replace( \
					cloudabi_fd_t from, \
					cloudabi_fd_t to); }

12	AUE_NULL	STD	{ cloudabi_filesize_t \
					cloudabi_sys_fd_seek( \
					cloudabi_fd_t fd, \
					cloudabi_filedelta_t offset, \
					cloudabi_whence_t whence); }

13	AUE_NULL	STD	{ void cloudabi_sys_fd_stat_get( \
					cloudabi_fd_t fd, \
					cloudabi_fdstat_t *buf); }

14	AUE_NULL	STD	{ void cloudabi_sys_fd_stat_put( \
					cloudabi_fd_t fd, \
					const cloudabi_fdstat_t *buf, \
					cloudabi_fdsflags_t flags); }

15	AUE_NULL	STD	{ void cloudabi_sys_fd_sync( \
					cloudabi_fd_t fd); }

16	AUE_NULL	STD	{ size_t cloudabi64_sys_fd_write( \
					cloudabi_fd_t fd, \
					const cloudabi64_ciovec_t *iovs, \
					size_t iovs_len); }

17	AUE_NULL	STD	{ void cloudabi_sys_file_advise( \
					cloudabi_fd_t fd, \
					cloudabi_filesize_t offset, \
					cloudabi_filesize_t len, \
					cloudabi_advice_t advice); }

18	AUE_NULL	STD	{ void cloudabi_sys_file_allocate( \
					cloudabi_fd_t fd, \
					cloudabi_filesize_t offset, \
					cloudabi_filesize_t len); }

19	AUE_NULL	STD	{ void cloudabi_sys_file_create( \
					cloudabi_fd_t fd, \
					const char *path, \
					size_t path_len, \
					cloudabi_filetype_t type); }

20	AUE_NULL	STD	{ void cloudabi_sys_file_link( \
					cloudabi_lookup_t fd1, \
					const char *path1, \
					size_t path1_len, \
					cloudabi_fd_t fd2, \
					const char *path2, \
					size_t path2_len); }

21	AUE_NULL	STD	{ cloudabi_fd_t cloudabi_sys_file_open( \
					cloudabi_lookup_t dirfd, \
					const char *path, \
					size_t path_len, \
					cloudabi_oflags_t oflags, \
					const cloudabi_fdstat_t *fds); }

22	AUE_NULL	STD	{ size_t cloudabi_sys_file_readdir( \
					cloudabi_fd_t fd, \
					void *buf, \
					size_t buf_len, \
					cloudabi_dircookie_t cookie); }

23	AUE_NULL	STD	{ size_t cloudabi_sys_file_readlink( \
					cloudabi_fd_t fd, \
					const char *path, \
					size_t path_len, \
					char *buf, \
					size_t buf_len); }

24	AUE_NULL	STD	{ void cloudabi_sys_file_rename( \
					cloudabi_fd_t fd1, \
					const char *path1, \
					size_t path1_len, \
					cloudabi_fd_t fd2, \
					const char *path2, \
					size_t path2_len); }

25	AUE_NULL	STD	{ void cloudabi_sys_file_stat_fget( \
					cloudabi_fd_t fd, \
					cloudabi_filestat_t *buf); }

26	AUE_NULL	STD	{ void cloudabi_sys_file_stat_fput( \
					cloudabi_fd_t fd, \
					const cloudabi_filestat_t *buf, \
					cloudabi_fsflags_t flags); }

27	AUE_NULL	STD	{ void cloudabi_sys_file_stat_get( \
					cloudabi_lookup_t fd, \
					const char *path, \
					size_t path_len, \
					cloudabi_filestat_t *buf); }

28	AUE_NULL	STD	{ void cloudabi_sys_file_stat_put( \
					cloudabi_lookup_t fd, \
					const char *path, \
					size_t path_len, \
					const cloudabi_filestat_t *buf, \
					cloudabi_fsflags_t flags); }

29	AUE_NULL	STD	{ void cloudabi_sys_file_symlink( \
					const char *path1, \
					size_t path1_len, \
					cloudabi_fd_t fd, \
					const char *path2, \
					size_t path2_len); }

30	AUE_NULL	STD	{ void cloudabi_sys_file_unlink( \
					cloudabi_fd_t fd, \
					const char *path, \
					size_t path_len, \
					cloudabi_ulflags_t flags); }

31	AUE_NULL	STD	{ void cloudabi_sys_lock_unlock( \
					cloudabi_lock_t *lock, \
					cloudabi_scope_t scope); }

32	AUE_NULL	STD	{ void cloudabi_sys_mem_advise( \
					void *mapping, \
					size_t mapping_len, \
					cloudabi_advice_t advice); }

33	AUE_NULL	STD	{ void cloudabi_sys_mem_map( \
					void *addr, \
					size_t len, \
					cloudabi_mprot_t prot, \
					cloudabi_mflags_t flags, \
					cloudabi_fd_t fd, \
					cloudabi_filesize_t off); }

34	AUE_NULL	STD	{ void cloudabi_sys_mem_protect( \
					void *mapping, \
					size_t mapping_len, \
					cloudabi_mprot_t prot); }

35	AUE_NULL	STD	{ void cloudabi_sys_mem_sync( \
					void *mapping, \
					size_t mapping_len, \
					cloudabi_msflags_t flags); }

36	AUE_NULL	STD	{ void cloudabi_sys_mem_unmap( \
					void *mapping, \
					size_t mapping_len); }

37	AUE_NULL	STD	{ size_t cloudabi64_sys_poll( \
					const cloudabi64_subscription_t *in, \
					cloudabi_event_t *out, \
					size_t nsubscriptions); }

38	AUE_NULL	STD	{ void cloudabi_sys_proc_exec( \
					cloudabi_fd_t fd, \
					const void *data, \
					size_t data_len, \
					const cloudabi_fd_t *fds, \
					size_t fds_len); }

39	AUE_NULL	STD	{ void cloudabi_sys_proc_exit( \
					cloudabi_exitcode_t rval); }

40	AUE_NULL	STD	{ void cloudabi_sys_proc_fork(); }

41	AUE_NULL	STD	{ void cloudabi_sys_proc_raise( \
					cloudabi_signal_t sig); }

42	AUE_NULL	STD	{ void cloudabi_sys_random_get( \
					void *buf, \
					size_t buf_len); }

43	AUE_NULL	STD	{ void cloudabi64_sys_sock_recv( \
					cloudabi_fd_t sock, \
					const cloudabi64_recv_in_t *in, \
					cloudabi64_recv_out_t *out); }

44	AUE_NULL	STD	{ void cloudabi64_sys_sock_send( \
					cloudabi_fd_t sock, \
					const cloudabi64_send_in_t *in, \
					cloudabi64_send_out_t *out); }

45	AUE_NULL	STD	{ void cloudabi_sys_sock_shutdown( \
					cloudabi_fd_t sock, \
					cloudabi_sdflags_t how); }

46	AUE_NULL	STD	{ cloudabi_tid_t cloudabi64_sys_thread_create( \
					cloudabi64_threadattr_t *attr); }

47	AUE_NULL	STD	{ void cloudabi_sys_thread_exit( \
					cloudabi_lock_t *lock, \
					cloudabi_scope_t scope); }

48	AUE_NULL	STD	{ void cloudabi_sys_thread_yield(); }