1 /* 2 * System call prototypes. 3 * 4 * DO NOT EDIT-- this file is automatically @generated. 5 * $FreeBSD: stable/12/sys/compat/cloudabi32/cloudabi32_proto.h 353067 2019-10-03 20:09:50Z brooks $ 6 */ 7 8 #ifndef _CLOUDABI32_SYSPROTO_H_ 9 #define _CLOUDABI32_SYSPROTO_H_ 10 11 #include <sys/signal.h> 12 #include <sys/acl.h> 13 #include <sys/cpuset.h> 14 #include <sys/domainset.h> 15 #include <sys/_ffcounter.h> 16 #include <sys/_semaphore.h> 17 #include <sys/ucontext.h> 18 #include <sys/wait.h> 19 20 #include <bsm/audit_kevents.h> 21 22 struct proc; 23 24 struct thread; 25 26 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \ 27 0 : sizeof(register_t) - sizeof(t)) 28 29 #if BYTE_ORDER == LITTLE_ENDIAN 30 #define PADL_(t) 0 31 #define PADR_(t) PAD_(t) 32 #else 33 #define PADL_(t) PAD_(t) 34 #define PADR_(t) 0 35 #endif 36 37 struct cloudabi_sys_clock_res_get_args { 38 char clock_id_l_[PADL_(cloudabi_clockid_t)]; cloudabi_clockid_t clock_id; char clock_id_r_[PADR_(cloudabi_clockid_t)]; 39 }; 40 struct cloudabi_sys_clock_time_get_args { 41 char clock_id_l_[PADL_(cloudabi_clockid_t)]; cloudabi_clockid_t clock_id; char clock_id_r_[PADR_(cloudabi_clockid_t)]; 42 char precision_l_[PADL_(cloudabi_timestamp_t)]; cloudabi_timestamp_t precision; char precision_r_[PADR_(cloudabi_timestamp_t)]; 43 }; 44 struct cloudabi_sys_condvar_signal_args { 45 char condvar_l_[PADL_(cloudabi_condvar_t *)]; cloudabi_condvar_t * condvar; char condvar_r_[PADR_(cloudabi_condvar_t *)]; 46 char scope_l_[PADL_(cloudabi_scope_t)]; cloudabi_scope_t scope; char scope_r_[PADR_(cloudabi_scope_t)]; 47 char nwaiters_l_[PADL_(cloudabi_nthreads_t)]; cloudabi_nthreads_t nwaiters; char nwaiters_r_[PADR_(cloudabi_nthreads_t)]; 48 }; 49 struct cloudabi_sys_fd_close_args { 50 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 51 }; 52 struct cloudabi_sys_fd_create1_args { 53 char type_l_[PADL_(cloudabi_filetype_t)]; cloudabi_filetype_t type; char type_r_[PADR_(cloudabi_filetype_t)]; 54 }; 55 struct cloudabi_sys_fd_create2_args { 56 char type_l_[PADL_(cloudabi_filetype_t)]; cloudabi_filetype_t type; char type_r_[PADR_(cloudabi_filetype_t)]; 57 }; 58 struct cloudabi_sys_fd_datasync_args { 59 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 60 }; 61 struct cloudabi_sys_fd_dup_args { 62 char from_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t from; char from_r_[PADR_(cloudabi_fd_t)]; 63 }; 64 struct cloudabi32_sys_fd_pread_args { 65 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 66 char iovs_l_[PADL_(const cloudabi32_iovec_t *)]; const cloudabi32_iovec_t * iovs; char iovs_r_[PADR_(const cloudabi32_iovec_t *)]; 67 char iovs_len_l_[PADL_(size_t)]; size_t iovs_len; char iovs_len_r_[PADR_(size_t)]; 68 char offset_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t offset; char offset_r_[PADR_(cloudabi_filesize_t)]; 69 }; 70 struct cloudabi32_sys_fd_pwrite_args { 71 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 72 char iovs_l_[PADL_(const cloudabi32_ciovec_t *)]; const cloudabi32_ciovec_t * iovs; char iovs_r_[PADR_(const cloudabi32_ciovec_t *)]; 73 char iovs_len_l_[PADL_(size_t)]; size_t iovs_len; char iovs_len_r_[PADR_(size_t)]; 74 char offset_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t offset; char offset_r_[PADR_(cloudabi_filesize_t)]; 75 }; 76 struct cloudabi32_sys_fd_read_args { 77 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 78 char iovs_l_[PADL_(const cloudabi32_iovec_t *)]; const cloudabi32_iovec_t * iovs; char iovs_r_[PADR_(const cloudabi32_iovec_t *)]; 79 char iovs_len_l_[PADL_(size_t)]; size_t iovs_len; char iovs_len_r_[PADR_(size_t)]; 80 }; 81 struct cloudabi_sys_fd_replace_args { 82 char from_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t from; char from_r_[PADR_(cloudabi_fd_t)]; 83 char to_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t to; char to_r_[PADR_(cloudabi_fd_t)]; 84 }; 85 struct cloudabi_sys_fd_seek_args { 86 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 87 char offset_l_[PADL_(cloudabi_filedelta_t)]; cloudabi_filedelta_t offset; char offset_r_[PADR_(cloudabi_filedelta_t)]; 88 char whence_l_[PADL_(cloudabi_whence_t)]; cloudabi_whence_t whence; char whence_r_[PADR_(cloudabi_whence_t)]; 89 }; 90 struct cloudabi_sys_fd_stat_get_args { 91 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 92 char buf_l_[PADL_(cloudabi_fdstat_t *)]; cloudabi_fdstat_t * buf; char buf_r_[PADR_(cloudabi_fdstat_t *)]; 93 }; 94 struct cloudabi_sys_fd_stat_put_args { 95 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 96 char buf_l_[PADL_(const cloudabi_fdstat_t *)]; const cloudabi_fdstat_t * buf; char buf_r_[PADR_(const cloudabi_fdstat_t *)]; 97 char flags_l_[PADL_(cloudabi_fdsflags_t)]; cloudabi_fdsflags_t flags; char flags_r_[PADR_(cloudabi_fdsflags_t)]; 98 }; 99 struct cloudabi_sys_fd_sync_args { 100 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 101 }; 102 struct cloudabi32_sys_fd_write_args { 103 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 104 char iovs_l_[PADL_(const cloudabi32_ciovec_t *)]; const cloudabi32_ciovec_t * iovs; char iovs_r_[PADR_(const cloudabi32_ciovec_t *)]; 105 char iovs_len_l_[PADL_(size_t)]; size_t iovs_len; char iovs_len_r_[PADR_(size_t)]; 106 }; 107 struct cloudabi_sys_file_advise_args { 108 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 109 char offset_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t offset; char offset_r_[PADR_(cloudabi_filesize_t)]; 110 char len_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t len; char len_r_[PADR_(cloudabi_filesize_t)]; 111 char advice_l_[PADL_(cloudabi_advice_t)]; cloudabi_advice_t advice; char advice_r_[PADR_(cloudabi_advice_t)]; 112 }; 113 struct cloudabi_sys_file_allocate_args { 114 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 115 char offset_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t offset; char offset_r_[PADR_(cloudabi_filesize_t)]; 116 char len_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t len; char len_r_[PADR_(cloudabi_filesize_t)]; 117 }; 118 struct cloudabi_sys_file_create_args { 119 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 120 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 121 char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)]; 122 char type_l_[PADL_(cloudabi_filetype_t)]; cloudabi_filetype_t type; char type_r_[PADR_(cloudabi_filetype_t)]; 123 }; 124 struct cloudabi_sys_file_link_args { 125 char fd1_l_[PADL_(cloudabi_lookup_t)]; cloudabi_lookup_t fd1; char fd1_r_[PADR_(cloudabi_lookup_t)]; 126 char path1_l_[PADL_(const char *)]; const char * path1; char path1_r_[PADR_(const char *)]; 127 char path1_len_l_[PADL_(size_t)]; size_t path1_len; char path1_len_r_[PADR_(size_t)]; 128 char fd2_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd2; char fd2_r_[PADR_(cloudabi_fd_t)]; 129 char path2_l_[PADL_(const char *)]; const char * path2; char path2_r_[PADR_(const char *)]; 130 char path2_len_l_[PADL_(size_t)]; size_t path2_len; char path2_len_r_[PADR_(size_t)]; 131 }; 132 struct cloudabi_sys_file_open_args { 133 char dirfd_l_[PADL_(cloudabi_lookup_t)]; cloudabi_lookup_t dirfd; char dirfd_r_[PADR_(cloudabi_lookup_t)]; 134 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 135 char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)]; 136 char oflags_l_[PADL_(cloudabi_oflags_t)]; cloudabi_oflags_t oflags; char oflags_r_[PADR_(cloudabi_oflags_t)]; 137 char fds_l_[PADL_(const cloudabi_fdstat_t *)]; const cloudabi_fdstat_t * fds; char fds_r_[PADR_(const cloudabi_fdstat_t *)]; 138 }; 139 struct cloudabi_sys_file_readdir_args { 140 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 141 char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 142 char buf_len_l_[PADL_(size_t)]; size_t buf_len; char buf_len_r_[PADR_(size_t)]; 143 char cookie_l_[PADL_(cloudabi_dircookie_t)]; cloudabi_dircookie_t cookie; char cookie_r_[PADR_(cloudabi_dircookie_t)]; 144 }; 145 struct cloudabi_sys_file_readlink_args { 146 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 147 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 148 char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)]; 149 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)]; 150 char buf_len_l_[PADL_(size_t)]; size_t buf_len; char buf_len_r_[PADR_(size_t)]; 151 }; 152 struct cloudabi_sys_file_rename_args { 153 char fd1_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd1; char fd1_r_[PADR_(cloudabi_fd_t)]; 154 char path1_l_[PADL_(const char *)]; const char * path1; char path1_r_[PADR_(const char *)]; 155 char path1_len_l_[PADL_(size_t)]; size_t path1_len; char path1_len_r_[PADR_(size_t)]; 156 char fd2_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd2; char fd2_r_[PADR_(cloudabi_fd_t)]; 157 char path2_l_[PADL_(const char *)]; const char * path2; char path2_r_[PADR_(const char *)]; 158 char path2_len_l_[PADL_(size_t)]; size_t path2_len; char path2_len_r_[PADR_(size_t)]; 159 }; 160 struct cloudabi_sys_file_stat_fget_args { 161 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 162 char buf_l_[PADL_(cloudabi_filestat_t *)]; cloudabi_filestat_t * buf; char buf_r_[PADR_(cloudabi_filestat_t *)]; 163 }; 164 struct cloudabi_sys_file_stat_fput_args { 165 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 166 char buf_l_[PADL_(const cloudabi_filestat_t *)]; const cloudabi_filestat_t * buf; char buf_r_[PADR_(const cloudabi_filestat_t *)]; 167 char flags_l_[PADL_(cloudabi_fsflags_t)]; cloudabi_fsflags_t flags; char flags_r_[PADR_(cloudabi_fsflags_t)]; 168 }; 169 struct cloudabi_sys_file_stat_get_args { 170 char fd_l_[PADL_(cloudabi_lookup_t)]; cloudabi_lookup_t fd; char fd_r_[PADR_(cloudabi_lookup_t)]; 171 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 172 char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)]; 173 char buf_l_[PADL_(cloudabi_filestat_t *)]; cloudabi_filestat_t * buf; char buf_r_[PADR_(cloudabi_filestat_t *)]; 174 }; 175 struct cloudabi_sys_file_stat_put_args { 176 char fd_l_[PADL_(cloudabi_lookup_t)]; cloudabi_lookup_t fd; char fd_r_[PADR_(cloudabi_lookup_t)]; 177 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 178 char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)]; 179 char buf_l_[PADL_(const cloudabi_filestat_t *)]; const cloudabi_filestat_t * buf; char buf_r_[PADR_(const cloudabi_filestat_t *)]; 180 char flags_l_[PADL_(cloudabi_fsflags_t)]; cloudabi_fsflags_t flags; char flags_r_[PADR_(cloudabi_fsflags_t)]; 181 }; 182 struct cloudabi_sys_file_symlink_args { 183 char path1_l_[PADL_(const char *)]; const char * path1; char path1_r_[PADR_(const char *)]; 184 char path1_len_l_[PADL_(size_t)]; size_t path1_len; char path1_len_r_[PADR_(size_t)]; 185 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 186 char path2_l_[PADL_(const char *)]; const char * path2; char path2_r_[PADR_(const char *)]; 187 char path2_len_l_[PADL_(size_t)]; size_t path2_len; char path2_len_r_[PADR_(size_t)]; 188 }; 189 struct cloudabi_sys_file_unlink_args { 190 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 191 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; 192 char path_len_l_[PADL_(size_t)]; size_t path_len; char path_len_r_[PADR_(size_t)]; 193 char flags_l_[PADL_(cloudabi_ulflags_t)]; cloudabi_ulflags_t flags; char flags_r_[PADR_(cloudabi_ulflags_t)]; 194 }; 195 struct cloudabi_sys_lock_unlock_args { 196 char lock_l_[PADL_(cloudabi_lock_t *)]; cloudabi_lock_t * lock; char lock_r_[PADR_(cloudabi_lock_t *)]; 197 char scope_l_[PADL_(cloudabi_scope_t)]; cloudabi_scope_t scope; char scope_r_[PADR_(cloudabi_scope_t)]; 198 }; 199 struct cloudabi_sys_mem_advise_args { 200 char mapping_l_[PADL_(void *)]; void * mapping; char mapping_r_[PADR_(void *)]; 201 char mapping_len_l_[PADL_(size_t)]; size_t mapping_len; char mapping_len_r_[PADR_(size_t)]; 202 char advice_l_[PADL_(cloudabi_advice_t)]; cloudabi_advice_t advice; char advice_r_[PADR_(cloudabi_advice_t)]; 203 }; 204 struct cloudabi_sys_mem_map_args { 205 char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)]; 206 char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)]; 207 char prot_l_[PADL_(cloudabi_mprot_t)]; cloudabi_mprot_t prot; char prot_r_[PADR_(cloudabi_mprot_t)]; 208 char flags_l_[PADL_(cloudabi_mflags_t)]; cloudabi_mflags_t flags; char flags_r_[PADR_(cloudabi_mflags_t)]; 209 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 210 char off_l_[PADL_(cloudabi_filesize_t)]; cloudabi_filesize_t off; char off_r_[PADR_(cloudabi_filesize_t)]; 211 }; 212 struct cloudabi_sys_mem_protect_args { 213 char mapping_l_[PADL_(void *)]; void * mapping; char mapping_r_[PADR_(void *)]; 214 char mapping_len_l_[PADL_(size_t)]; size_t mapping_len; char mapping_len_r_[PADR_(size_t)]; 215 char prot_l_[PADL_(cloudabi_mprot_t)]; cloudabi_mprot_t prot; char prot_r_[PADR_(cloudabi_mprot_t)]; 216 }; 217 struct cloudabi_sys_mem_sync_args { 218 char mapping_l_[PADL_(void *)]; void * mapping; char mapping_r_[PADR_(void *)]; 219 char mapping_len_l_[PADL_(size_t)]; size_t mapping_len; char mapping_len_r_[PADR_(size_t)]; 220 char flags_l_[PADL_(cloudabi_msflags_t)]; cloudabi_msflags_t flags; char flags_r_[PADR_(cloudabi_msflags_t)]; 221 }; 222 struct cloudabi_sys_mem_unmap_args { 223 char mapping_l_[PADL_(void *)]; void * mapping; char mapping_r_[PADR_(void *)]; 224 char mapping_len_l_[PADL_(size_t)]; size_t mapping_len; char mapping_len_r_[PADR_(size_t)]; 225 }; 226 struct cloudabi32_sys_poll_args { 227 char in_l_[PADL_(const cloudabi32_subscription_t *)]; const cloudabi32_subscription_t * in; char in_r_[PADR_(const cloudabi32_subscription_t *)]; 228 char out_l_[PADL_(cloudabi_event_t *)]; cloudabi_event_t * out; char out_r_[PADR_(cloudabi_event_t *)]; 229 char nsubscriptions_l_[PADL_(size_t)]; size_t nsubscriptions; char nsubscriptions_r_[PADR_(size_t)]; 230 }; 231 struct cloudabi_sys_proc_exec_args { 232 char fd_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t fd; char fd_r_[PADR_(cloudabi_fd_t)]; 233 char data_l_[PADL_(const void *)]; const void * data; char data_r_[PADR_(const void *)]; 234 char data_len_l_[PADL_(size_t)]; size_t data_len; char data_len_r_[PADR_(size_t)]; 235 char fds_l_[PADL_(const cloudabi_fd_t *)]; const cloudabi_fd_t * fds; char fds_r_[PADR_(const cloudabi_fd_t *)]; 236 char fds_len_l_[PADL_(size_t)]; size_t fds_len; char fds_len_r_[PADR_(size_t)]; 237 }; 238 struct cloudabi_sys_proc_exit_args { 239 char rval_l_[PADL_(cloudabi_exitcode_t)]; cloudabi_exitcode_t rval; char rval_r_[PADR_(cloudabi_exitcode_t)]; 240 }; 241 struct cloudabi_sys_proc_fork_args { 242 register_t dummy; 243 }; 244 struct cloudabi_sys_proc_raise_args { 245 char sig_l_[PADL_(cloudabi_signal_t)]; cloudabi_signal_t sig; char sig_r_[PADR_(cloudabi_signal_t)]; 246 }; 247 struct cloudabi_sys_random_get_args { 248 char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)]; 249 char buf_len_l_[PADL_(size_t)]; size_t buf_len; char buf_len_r_[PADR_(size_t)]; 250 }; 251 struct cloudabi32_sys_sock_recv_args { 252 char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)]; 253 char in_l_[PADL_(const cloudabi32_recv_in_t *)]; const cloudabi32_recv_in_t * in; char in_r_[PADR_(const cloudabi32_recv_in_t *)]; 254 char out_l_[PADL_(cloudabi32_recv_out_t *)]; cloudabi32_recv_out_t * out; char out_r_[PADR_(cloudabi32_recv_out_t *)]; 255 }; 256 struct cloudabi32_sys_sock_send_args { 257 char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)]; 258 char in_l_[PADL_(const cloudabi32_send_in_t *)]; const cloudabi32_send_in_t * in; char in_r_[PADR_(const cloudabi32_send_in_t *)]; 259 char out_l_[PADL_(cloudabi32_send_out_t *)]; cloudabi32_send_out_t * out; char out_r_[PADR_(cloudabi32_send_out_t *)]; 260 }; 261 struct cloudabi_sys_sock_shutdown_args { 262 char sock_l_[PADL_(cloudabi_fd_t)]; cloudabi_fd_t sock; char sock_r_[PADR_(cloudabi_fd_t)]; 263 char how_l_[PADL_(cloudabi_sdflags_t)]; cloudabi_sdflags_t how; char how_r_[PADR_(cloudabi_sdflags_t)]; 264 }; 265 struct cloudabi32_sys_thread_create_args { 266 char attr_l_[PADL_(cloudabi32_threadattr_t *)]; cloudabi32_threadattr_t * attr; char attr_r_[PADR_(cloudabi32_threadattr_t *)]; 267 }; 268 struct cloudabi_sys_thread_exit_args { 269 char lock_l_[PADL_(cloudabi_lock_t *)]; cloudabi_lock_t * lock; char lock_r_[PADR_(cloudabi_lock_t *)]; 270 char scope_l_[PADL_(cloudabi_scope_t)]; cloudabi_scope_t scope; char scope_r_[PADR_(cloudabi_scope_t)]; 271 }; 272 struct cloudabi_sys_thread_yield_args { 273 register_t dummy; 274 }; 275 int cloudabi_sys_clock_res_get(struct thread *, struct cloudabi_sys_clock_res_get_args *); 276 int cloudabi_sys_clock_time_get(struct thread *, struct cloudabi_sys_clock_time_get_args *); 277 int cloudabi_sys_condvar_signal(struct thread *, struct cloudabi_sys_condvar_signal_args *); 278 int cloudabi_sys_fd_close(struct thread *, struct cloudabi_sys_fd_close_args *); 279 int cloudabi_sys_fd_create1(struct thread *, struct cloudabi_sys_fd_create1_args *); 280 int cloudabi_sys_fd_create2(struct thread *, struct cloudabi_sys_fd_create2_args *); 281 int cloudabi_sys_fd_datasync(struct thread *, struct cloudabi_sys_fd_datasync_args *); 282 int cloudabi_sys_fd_dup(struct thread *, struct cloudabi_sys_fd_dup_args *); 283 int cloudabi32_sys_fd_pread(struct thread *, struct cloudabi32_sys_fd_pread_args *); 284 int cloudabi32_sys_fd_pwrite(struct thread *, struct cloudabi32_sys_fd_pwrite_args *); 285 int cloudabi32_sys_fd_read(struct thread *, struct cloudabi32_sys_fd_read_args *); 286 int cloudabi_sys_fd_replace(struct thread *, struct cloudabi_sys_fd_replace_args *); 287 int cloudabi_sys_fd_seek(struct thread *, struct cloudabi_sys_fd_seek_args *); 288 int cloudabi_sys_fd_stat_get(struct thread *, struct cloudabi_sys_fd_stat_get_args *); 289 int cloudabi_sys_fd_stat_put(struct thread *, struct cloudabi_sys_fd_stat_put_args *); 290 int cloudabi_sys_fd_sync(struct thread *, struct cloudabi_sys_fd_sync_args *); 291 int cloudabi32_sys_fd_write(struct thread *, struct cloudabi32_sys_fd_write_args *); 292 int cloudabi_sys_file_advise(struct thread *, struct cloudabi_sys_file_advise_args *); 293 int cloudabi_sys_file_allocate(struct thread *, struct cloudabi_sys_file_allocate_args *); 294 int cloudabi_sys_file_create(struct thread *, struct cloudabi_sys_file_create_args *); 295 int cloudabi_sys_file_link(struct thread *, struct cloudabi_sys_file_link_args *); 296 int cloudabi_sys_file_open(struct thread *, struct cloudabi_sys_file_open_args *); 297 int cloudabi_sys_file_readdir(struct thread *, struct cloudabi_sys_file_readdir_args *); 298 int cloudabi_sys_file_readlink(struct thread *, struct cloudabi_sys_file_readlink_args *); 299 int cloudabi_sys_file_rename(struct thread *, struct cloudabi_sys_file_rename_args *); 300 int cloudabi_sys_file_stat_fget(struct thread *, struct cloudabi_sys_file_stat_fget_args *); 301 int cloudabi_sys_file_stat_fput(struct thread *, struct cloudabi_sys_file_stat_fput_args *); 302 int cloudabi_sys_file_stat_get(struct thread *, struct cloudabi_sys_file_stat_get_args *); 303 int cloudabi_sys_file_stat_put(struct thread *, struct cloudabi_sys_file_stat_put_args *); 304 int cloudabi_sys_file_symlink(struct thread *, struct cloudabi_sys_file_symlink_args *); 305 int cloudabi_sys_file_unlink(struct thread *, struct cloudabi_sys_file_unlink_args *); 306 int cloudabi_sys_lock_unlock(struct thread *, struct cloudabi_sys_lock_unlock_args *); 307 int cloudabi_sys_mem_advise(struct thread *, struct cloudabi_sys_mem_advise_args *); 308 int cloudabi_sys_mem_map(struct thread *, struct cloudabi_sys_mem_map_args *); 309 int cloudabi_sys_mem_protect(struct thread *, struct cloudabi_sys_mem_protect_args *); 310 int cloudabi_sys_mem_sync(struct thread *, struct cloudabi_sys_mem_sync_args *); 311 int cloudabi_sys_mem_unmap(struct thread *, struct cloudabi_sys_mem_unmap_args *); 312 int cloudabi32_sys_poll(struct thread *, struct cloudabi32_sys_poll_args *); 313 int cloudabi_sys_proc_exec(struct thread *, struct cloudabi_sys_proc_exec_args *); 314 int cloudabi_sys_proc_exit(struct thread *, struct cloudabi_sys_proc_exit_args *); 315 int cloudabi_sys_proc_fork(struct thread *, struct cloudabi_sys_proc_fork_args *); 316 int cloudabi_sys_proc_raise(struct thread *, struct cloudabi_sys_proc_raise_args *); 317 int cloudabi_sys_random_get(struct thread *, struct cloudabi_sys_random_get_args *); 318 int cloudabi32_sys_sock_recv(struct thread *, struct cloudabi32_sys_sock_recv_args *); 319 int cloudabi32_sys_sock_send(struct thread *, struct cloudabi32_sys_sock_send_args *); 320 int cloudabi_sys_sock_shutdown(struct thread *, struct cloudabi_sys_sock_shutdown_args *); 321 int cloudabi32_sys_thread_create(struct thread *, struct cloudabi32_sys_thread_create_args *); 322 int cloudabi_sys_thread_exit(struct thread *, struct cloudabi_sys_thread_exit_args *); 323 int cloudabi_sys_thread_yield(struct thread *, struct cloudabi_sys_thread_yield_args *); 324 325 #ifdef COMPAT_43 326 327 328 #endif /* COMPAT_43 */ 329 330 331 #ifdef COMPAT_FREEBSD4 332 333 334 #endif /* COMPAT_FREEBSD4 */ 335 336 337 #ifdef COMPAT_FREEBSD6 338 339 340 #endif /* COMPAT_FREEBSD6 */ 341 342 343 #ifdef COMPAT_FREEBSD7 344 345 346 #endif /* COMPAT_FREEBSD7 */ 347 348 349 #ifdef COMPAT_FREEBSD10 350 351 352 #endif /* COMPAT_FREEBSD10 */ 353 354 355 #ifdef COMPAT_FREEBSD11 356 357 358 #endif /* COMPAT_FREEBSD11 */ 359 360 #define CLOUDABI32_SYS_AUE_cloudabi_sys_clock_res_get AUE_NULL 361 #define CLOUDABI32_SYS_AUE_cloudabi_sys_clock_time_get AUE_NULL 362 #define CLOUDABI32_SYS_AUE_cloudabi_sys_condvar_signal AUE_NULL 363 #define CLOUDABI32_SYS_AUE_cloudabi_sys_fd_close AUE_NULL 364 #define CLOUDABI32_SYS_AUE_cloudabi_sys_fd_create1 AUE_NULL 365 #define CLOUDABI32_SYS_AUE_cloudabi_sys_fd_create2 AUE_NULL 366 #define CLOUDABI32_SYS_AUE_cloudabi_sys_fd_datasync AUE_NULL 367 #define CLOUDABI32_SYS_AUE_cloudabi_sys_fd_dup AUE_NULL 368 #define CLOUDABI32_SYS_AUE_cloudabi32_sys_fd_pread AUE_NULL 369 #define CLOUDABI32_SYS_AUE_cloudabi32_sys_fd_pwrite AUE_NULL 370 #define CLOUDABI32_SYS_AUE_cloudabi32_sys_fd_read AUE_NULL 371 #define CLOUDABI32_SYS_AUE_cloudabi_sys_fd_replace AUE_NULL 372 #define CLOUDABI32_SYS_AUE_cloudabi_sys_fd_seek AUE_NULL 373 #define CLOUDABI32_SYS_AUE_cloudabi_sys_fd_stat_get AUE_NULL 374 #define CLOUDABI32_SYS_AUE_cloudabi_sys_fd_stat_put AUE_NULL 375 #define CLOUDABI32_SYS_AUE_cloudabi_sys_fd_sync AUE_NULL 376 #define CLOUDABI32_SYS_AUE_cloudabi32_sys_fd_write AUE_NULL 377 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_advise AUE_NULL 378 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_allocate AUE_NULL 379 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_create AUE_NULL 380 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_link AUE_NULL 381 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_open AUE_NULL 382 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_readdir AUE_NULL 383 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_readlink AUE_NULL 384 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_rename AUE_NULL 385 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_stat_fget AUE_NULL 386 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_stat_fput AUE_NULL 387 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_stat_get AUE_NULL 388 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_stat_put AUE_NULL 389 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_symlink AUE_NULL 390 #define CLOUDABI32_SYS_AUE_cloudabi_sys_file_unlink AUE_NULL 391 #define CLOUDABI32_SYS_AUE_cloudabi_sys_lock_unlock AUE_NULL 392 #define CLOUDABI32_SYS_AUE_cloudabi_sys_mem_advise AUE_NULL 393 #define CLOUDABI32_SYS_AUE_cloudabi_sys_mem_map AUE_NULL 394 #define CLOUDABI32_SYS_AUE_cloudabi_sys_mem_protect AUE_NULL 395 #define CLOUDABI32_SYS_AUE_cloudabi_sys_mem_sync AUE_NULL 396 #define CLOUDABI32_SYS_AUE_cloudabi_sys_mem_unmap AUE_NULL 397 #define CLOUDABI32_SYS_AUE_cloudabi32_sys_poll AUE_NULL 398 #define CLOUDABI32_SYS_AUE_cloudabi_sys_proc_exec AUE_NULL 399 #define CLOUDABI32_SYS_AUE_cloudabi_sys_proc_exit AUE_NULL 400 #define CLOUDABI32_SYS_AUE_cloudabi_sys_proc_fork AUE_NULL 401 #define CLOUDABI32_SYS_AUE_cloudabi_sys_proc_raise AUE_NULL 402 #define CLOUDABI32_SYS_AUE_cloudabi_sys_random_get AUE_NULL 403 #define CLOUDABI32_SYS_AUE_cloudabi32_sys_sock_recv AUE_NULL 404 #define CLOUDABI32_SYS_AUE_cloudabi32_sys_sock_send AUE_NULL 405 #define CLOUDABI32_SYS_AUE_cloudabi_sys_sock_shutdown AUE_NULL 406 #define CLOUDABI32_SYS_AUE_cloudabi32_sys_thread_create AUE_NULL 407 #define CLOUDABI32_SYS_AUE_cloudabi_sys_thread_exit AUE_NULL 408 #define CLOUDABI32_SYS_AUE_cloudabi_sys_thread_yield AUE_NULL 409 410 #undef PAD_ 411 #undef PADL_ 412 #undef PADR_ 413 414 #endif /* !_CLOUDABI32_SYSPROTO_H_ */ 415