syscalls.master revision 297247
1 $FreeBSD$ 2 3; Copyright (c) 2016 Nuxi, https://nuxi.nl/ 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; Source: https://github.com/NuxiNL/cloudabi 28 29#include <sys/sysent.h> 30#include <sys/sysproto.h> 31 32#include <contrib/cloudabi/cloudabi64_types.h> 33 34#include <compat/cloudabi64/cloudabi64_proto.h> 35 360 AUE_NULL STD { cloudabi_timestamp_t \ 37 cloudabi_sys_clock_res_get( \ 38 cloudabi_clockid_t clock_id); } 39 401 AUE_NULL STD { cloudabi_timestamp_t \ 41 cloudabi_sys_clock_time_get( \ 42 cloudabi_clockid_t clock_id, \ 43 cloudabi_timestamp_t precision); } 44 452 AUE_NULL STD { void cloudabi_sys_condvar_signal( \ 46 cloudabi_condvar_t *condvar, \ 47 cloudabi_mflags_t scope, \ 48 cloudabi_nthreads_t nwaiters); } 49 503 AUE_NULL STD { void cloudabi_sys_fd_close( \ 51 cloudabi_fd_t fd); } 52 534 AUE_NULL STD { cloudabi_fd_t cloudabi_sys_fd_create1( \ 54 cloudabi_filetype_t type); } 55 565 AUE_NULL STD { void cloudabi_sys_fd_create2( \ 57 cloudabi_filetype_t type); } 58 596 AUE_NULL STD { void cloudabi_sys_fd_datasync( \ 60 cloudabi_fd_t fd); } 61 627 AUE_NULL STD { cloudabi_fd_t cloudabi_sys_fd_dup( \ 63 cloudabi_fd_t from); } 64 658 AUE_NULL STD { size_t cloudabi64_sys_fd_pread( \ 66 cloudabi_fd_t fd, \ 67 const cloudabi64_iovec_t *iov, \ 68 size_t iovcnt, \ 69 cloudabi_filesize_t offset); } 70 719 AUE_NULL STD { size_t cloudabi64_sys_fd_pwrite( \ 72 cloudabi_fd_t fd, \ 73 const cloudabi64_ciovec_t *iov, \ 74 size_t iovcnt, \ 75 cloudabi_filesize_t offset); } 76 7710 AUE_NULL STD { size_t cloudabi64_sys_fd_read( \ 78 cloudabi_fd_t fd, \ 79 const cloudabi64_iovec_t *iov, \ 80 size_t iovcnt); } 81 8211 AUE_NULL STD { void cloudabi_sys_fd_replace( \ 83 cloudabi_fd_t from, \ 84 cloudabi_fd_t to); } 85 8612 AUE_NULL STD { cloudabi_filesize_t \ 87 cloudabi_sys_fd_seek( \ 88 cloudabi_fd_t fd, \ 89 cloudabi_filedelta_t offset, \ 90 cloudabi_whence_t whence); } 91 9213 AUE_NULL STD { void cloudabi_sys_fd_stat_get( \ 93 cloudabi_fd_t fd, \ 94 cloudabi_fdstat_t *buf); } 95 9614 AUE_NULL STD { void cloudabi_sys_fd_stat_put( \ 97 cloudabi_fd_t fd, \ 98 const cloudabi_fdstat_t *buf, \ 99 cloudabi_fdsflags_t flags); } 100 10115 AUE_NULL STD { void cloudabi_sys_fd_sync( \ 102 cloudabi_fd_t fd); } 103 10416 AUE_NULL STD { size_t cloudabi64_sys_fd_write( \ 105 cloudabi_fd_t fd, \ 106 const cloudabi64_ciovec_t *iov, \ 107 size_t iovcnt); } 108 10917 AUE_NULL STD { void cloudabi_sys_file_advise( \ 110 cloudabi_fd_t fd, \ 111 cloudabi_filesize_t offset, \ 112 cloudabi_filesize_t len, \ 113 cloudabi_advice_t advice); } 114 11518 AUE_NULL STD { void cloudabi_sys_file_allocate( \ 116 cloudabi_fd_t fd, \ 117 cloudabi_filesize_t offset, \ 118 cloudabi_filesize_t len); } 119 12019 AUE_NULL STD { void cloudabi_sys_file_create( \ 121 cloudabi_fd_t fd, \ 122 const char *path, \ 123 size_t pathlen, \ 124 cloudabi_filetype_t type); } 125 12620 AUE_NULL STD { void cloudabi_sys_file_link( \ 127 cloudabi_lookup_t fd1, \ 128 const char *path1, \ 129 size_t path1len, \ 130 cloudabi_fd_t fd2, \ 131 const char *path2, \ 132 size_t path2len); } 133 13421 AUE_NULL STD { cloudabi_fd_t cloudabi_sys_file_open( \ 135 cloudabi_lookup_t dirfd, \ 136 const char *path, \ 137 size_t pathlen, \ 138 cloudabi_oflags_t oflags, \ 139 const cloudabi_fdstat_t *fds); } 140 14122 AUE_NULL STD { size_t cloudabi_sys_file_readdir( \ 142 cloudabi_fd_t fd, \ 143 void *buf, \ 144 size_t nbyte, \ 145 cloudabi_dircookie_t cookie); } 146 14723 AUE_NULL STD { size_t cloudabi_sys_file_readlink( \ 148 cloudabi_fd_t fd, \ 149 const char *path, \ 150 size_t pathlen, \ 151 char *buf, \ 152 size_t bufsize); } 153 15424 AUE_NULL STD { void cloudabi_sys_file_rename( \ 155 cloudabi_fd_t oldfd, \ 156 const char *old, \ 157 size_t oldlen, \ 158 cloudabi_fd_t newfd, \ 159 const char *new, \ 160 size_t newlen); } 161 16225 AUE_NULL STD { void cloudabi_sys_file_stat_fget( \ 163 cloudabi_fd_t fd, \ 164 cloudabi_filestat_t *buf); } 165 16626 AUE_NULL STD { void cloudabi_sys_file_stat_fput( \ 167 cloudabi_fd_t fd, \ 168 const cloudabi_filestat_t *buf, \ 169 cloudabi_fsflags_t flags); } 170 17127 AUE_NULL STD { void cloudabi_sys_file_stat_get( \ 172 cloudabi_lookup_t fd, \ 173 const char *path, \ 174 size_t pathlen, \ 175 cloudabi_filestat_t *buf); } 176 17728 AUE_NULL STD { void cloudabi_sys_file_stat_put( \ 178 cloudabi_lookup_t fd, \ 179 const char *path, \ 180 size_t pathlen, \ 181 const cloudabi_filestat_t *buf, \ 182 cloudabi_fsflags_t flags); } 183 18429 AUE_NULL STD { void cloudabi_sys_file_symlink( \ 185 const char *path1, \ 186 size_t path1len, \ 187 cloudabi_fd_t fd, \ 188 const char *path2, \ 189 size_t path2len); } 190 19130 AUE_NULL STD { void cloudabi_sys_file_unlink( \ 192 cloudabi_fd_t fd, \ 193 const char *path, \ 194 size_t pathlen, \ 195 cloudabi_ulflags_t flags); } 196 19731 AUE_NULL STD { void cloudabi_sys_lock_unlock( \ 198 cloudabi_lock_t *lock, \ 199 cloudabi_mflags_t scope); } 200 20132 AUE_NULL STD { void cloudabi_sys_mem_advise( \ 202 void *addr, \ 203 size_t len, \ 204 cloudabi_advice_t advice); } 205 20633 AUE_NULL STD { void cloudabi_sys_mem_lock( \ 207 const void *addr, \ 208 size_t len); } 209 21034 AUE_NULL STD { void cloudabi_sys_mem_map( \ 211 void *addr, \ 212 size_t len, \ 213 cloudabi_mprot_t prot, \ 214 cloudabi_mflags_t flags, \ 215 cloudabi_fd_t fd, \ 216 cloudabi_filesize_t off); } 217 21835 AUE_NULL STD { void cloudabi_sys_mem_protect( \ 219 void *addr, \ 220 size_t len, \ 221 cloudabi_mprot_t prot); } 222 22336 AUE_NULL STD { void cloudabi_sys_mem_sync( \ 224 void *addr, \ 225 size_t len, \ 226 cloudabi_msflags_t flags); } 227 22837 AUE_NULL STD { void cloudabi_sys_mem_unlock( \ 229 const void *addr, \ 230 size_t len); } 231 23238 AUE_NULL STD { void cloudabi_sys_mem_unmap( \ 233 void *addr, \ 234 size_t len); } 235 23639 AUE_NULL STD { size_t cloudabi64_sys_poll( \ 237 const cloudabi64_subscription_t *in, \ 238 cloudabi64_event_t *out, \ 239 size_t nsubscriptions); } 240 24140 AUE_NULL STD { void cloudabi_sys_proc_exec( \ 242 cloudabi_fd_t fd, \ 243 const void *data, \ 244 size_t datalen, \ 245 const cloudabi_fd_t *fds, \ 246 size_t fdslen); } 247 24841 AUE_NULL STD { void cloudabi_sys_proc_exit( \ 249 cloudabi_exitcode_t rval); } 250 25142 AUE_NULL STD { void cloudabi_sys_proc_fork(); } 252 25343 AUE_NULL STD { void cloudabi_sys_proc_raise( \ 254 cloudabi_signal_t sig); } 255 25644 AUE_NULL STD { void cloudabi_sys_random_get( \ 257 void *buf, \ 258 size_t nbyte); } 259 26045 AUE_NULL STD { cloudabi_fd_t cloudabi_sys_sock_accept( \ 261 cloudabi_fd_t sock, \ 262 cloudabi_sockstat_t *buf); } 263 26446 AUE_NULL STD { void cloudabi_sys_sock_bind( \ 265 cloudabi_fd_t sock, \ 266 cloudabi_fd_t fd, \ 267 const char *path, \ 268 size_t pathlen); } 269 27047 AUE_NULL STD { void cloudabi_sys_sock_connect( \ 271 cloudabi_fd_t sock, \ 272 cloudabi_fd_t fd, \ 273 const char *path, \ 274 size_t pathlen); } 275 27648 AUE_NULL STD { void cloudabi_sys_sock_listen( \ 277 cloudabi_fd_t sock, \ 278 cloudabi_backlog_t backlog); } 279 28049 AUE_NULL STD { void cloudabi64_sys_sock_recv( \ 281 cloudabi_fd_t sock, \ 282 const cloudabi64_recv_in_t *in, \ 283 cloudabi64_recv_out_t *out); } 284 28550 AUE_NULL STD { void cloudabi64_sys_sock_send( \ 286 cloudabi_fd_t sock, \ 287 const cloudabi64_send_in_t *in, \ 288 cloudabi64_send_out_t *out); } 289 29051 AUE_NULL STD { void cloudabi_sys_sock_shutdown( \ 291 cloudabi_fd_t sock, \ 292 cloudabi_sdflags_t how); } 293 29452 AUE_NULL STD { void cloudabi_sys_sock_stat_get( \ 295 cloudabi_fd_t sock, \ 296 cloudabi_sockstat_t *buf, \ 297 cloudabi_ssflags_t flags); } 298 29953 AUE_NULL STD { cloudabi_tid_t cloudabi64_sys_thread_create( \ 300 cloudabi64_threadattr_t *attr); } 301 30254 AUE_NULL STD { void cloudabi_sys_thread_exit( \ 303 cloudabi_lock_t *lock, \ 304 cloudabi_mflags_t scope); } 305 30655 AUE_NULL STD { void cloudabi_sys_thread_tcb_set( \ 307 void *tcb); } 308 30956 AUE_NULL STD { void cloudabi_sys_thread_yield(); } 310 31157 AUE_NULL STD { size_t cloudabi64_sys_poll_fd( \ 312 cloudabi_fd_t fd, \ 313 const cloudabi64_subscription_t *in, \ 314 size_t nin, \ 315 cloudabi64_event_t *out, \ 316 size_t nout, \ 317 const cloudabi64_subscription_t *timeout); } 318