1 /* 2 * Public system call stubs provided by libsys. 3 * 4 * Do not use directly, include <libsys.h> instead. 5 * 6 * DO NOT EDIT-- this file is automatically @generated. 7 */ 8 9 #ifndef __LIBSYS_H_ 10 #define __LIBSYS_H_ 11 12 #include <sys/_cpuset.h> 13 #include <sys/_domainset.h> 14 #include <sys/_ffcounter.h> 15 #include <sys/_semaphore.h> 16 #include <sys/_sigaltstack.h> 17 #include <machine/ucontext.h> /* for mcontext_t */ 18 #include <sys/_ucontext.h> 19 #include <sys/wait.h> 20 21 struct __siginfo; 22 struct __ucontext; 23 struct __wrusage; 24 struct acl; 25 struct aiocb; 26 struct auditinfo; 27 struct auditinfo_addr; 28 struct ffclock_estimate; 29 struct fhandle; 30 struct iovec; 31 struct itimerspec; 32 struct itimerval; 33 struct jail; 34 struct kevent; 35 struct kld_file_stat; 36 struct mac; 37 struct module_stat; 38 struct mq_attr; 39 struct msghdr; 40 struct msqid_ds; 41 struct ntptimeval; 42 struct pollfd; 43 struct rlimit; 44 struct rtprio; 45 struct rusage; 46 struct sched_param; 47 struct sctp_sndrcvinfo; 48 struct sembuf; 49 struct setcred; 50 struct sf_hdtr; 51 struct shmid_ds; 52 struct sigaction; 53 struct sigaltstack; 54 struct sigevent; 55 struct sockaddr; 56 struct spacectl_range; 57 struct stat; 58 struct statfs; 59 struct thr_param; 60 struct timespec; 61 struct timeval; 62 struct timex; 63 struct timezone; 64 struct uuid; 65 union semun; 66 67 __BEGIN_DECLS 68 typedef void (__sys_exit_t)(int); 69 typedef int (__sys_fork_t)(void); 70 typedef ssize_t (__sys_read_t)(int, void *, size_t); 71 typedef ssize_t (__sys_write_t)(int, const void *, size_t); 72 typedef int (__sys_open_t)(const char *, int, mode_t); 73 typedef int (__sys_close_t)(int); 74 typedef int (__sys_wait4_t)(int, int *, int, struct rusage *); 75 typedef int (__sys_link_t)(const char *, const char *); 76 typedef int (__sys_unlink_t)(const char *); 77 typedef int (__sys_chdir_t)(const char *); 78 typedef int (__sys_fchdir_t)(int); 79 typedef int (__sys_chmod_t)(const char *, mode_t); 80 typedef int (__sys_chown_t)(const char *, int, int); 81 typedef void * (__sys_break_t)(char *); 82 typedef pid_t (__sys_getpid_t)(void); 83 typedef int (__sys_mount_t)(const char *, const char *, int, void *); 84 typedef int (__sys_unmount_t)(const char *, int); 85 typedef int (__sys_setuid_t)(uid_t); 86 typedef uid_t (__sys_getuid_t)(void); 87 typedef uid_t (__sys_geteuid_t)(void); 88 typedef int (__sys_ptrace_t)(int, pid_t, caddr_t, int); 89 typedef ssize_t (__sys_recvmsg_t)(int, struct msghdr *, int); 90 typedef ssize_t (__sys_sendmsg_t)(int, const struct msghdr *, int); 91 typedef ssize_t (__sys_recvfrom_t)(int, void *, size_t, int, struct sockaddr *, __socklen_t *); 92 typedef int (__sys_accept_t)(int, struct sockaddr *, __socklen_t *); 93 typedef int (__sys_getpeername_t)(int, struct sockaddr *, __socklen_t *); 94 typedef int (__sys_getsockname_t)(int, struct sockaddr *, __socklen_t *); 95 typedef int (__sys_access_t)(const char *, int); 96 typedef int (__sys_chflags_t)(const char *, u_long); 97 typedef int (__sys_fchflags_t)(int, u_long); 98 typedef int (__sys_sync_t)(void); 99 typedef int (__sys_kill_t)(int, int); 100 typedef pid_t (__sys_getppid_t)(void); 101 typedef int (__sys_dup_t)(u_int); 102 typedef gid_t (__sys_getegid_t)(void); 103 typedef int (__sys_profil_t)(char *, size_t, size_t, u_int); 104 typedef int (__sys_ktrace_t)(const char *, int, int, int); 105 typedef gid_t (__sys_getgid_t)(void); 106 typedef int (__sys_getlogin_t)(char *, u_int); 107 typedef int (__sys_setlogin_t)(const char *); 108 typedef int (__sys_acct_t)(const char *); 109 typedef int (__sys_sigaltstack_t)(const struct sigaltstack *, struct sigaltstack *); 110 typedef int (__sys_ioctl_t)(int, u_long, char *); 111 typedef int (__sys_reboot_t)(int); 112 typedef int (__sys_revoke_t)(const char *); 113 typedef int (__sys_symlink_t)(const char *, const char *); 114 typedef ssize_t (__sys_readlink_t)(const char *, char *, size_t); 115 typedef int (__sys_execve_t)(const char *, char **, char **); 116 typedef mode_t (__sys_umask_t)(mode_t); 117 typedef int (__sys_chroot_t)(const char *); 118 typedef int (__sys_msync_t)(void *, size_t, int); 119 typedef int (__sys_vfork_t)(void); 120 typedef int (__sys_munmap_t)(void *, size_t); 121 typedef int (__sys_mprotect_t)(void *, size_t, int); 122 typedef int (__sys_madvise_t)(void *, size_t, int); 123 typedef int (__sys_mincore_t)(const void *, size_t, char *); 124 typedef int (__sys_getgroups_t)(int, gid_t *); 125 typedef int (__sys_setgroups_t)(int, const gid_t *); 126 typedef int (__sys_getpgrp_t)(void); 127 typedef int (__sys_setpgid_t)(int, int); 128 typedef int (__sys_setitimer_t)(int, const struct itimerval *, struct itimerval *); 129 typedef int (__sys_swapon_t)(const char *); 130 typedef int (__sys_getitimer_t)(int, struct itimerval *); 131 typedef int (__sys_getdtablesize_t)(void); 132 typedef int (__sys_dup2_t)(u_int, u_int); 133 typedef int (__sys_fcntl_t)(int, int, intptr_t); 134 typedef int (__sys_select_t)(int, fd_set *, fd_set *, fd_set *, struct timeval *); 135 typedef int (__sys_fsync_t)(int); 136 typedef int (__sys_setpriority_t)(int, int, int); 137 typedef int (__sys_socket_t)(int, int, int); 138 typedef int (__sys_connect_t)(int, const struct sockaddr *, __socklen_t); 139 typedef int (__sys_getpriority_t)(int, int); 140 typedef int (__sys_bind_t)(int, const struct sockaddr *, __socklen_t); 141 typedef int (__sys_setsockopt_t)(int, int, int, const void *, __socklen_t); 142 typedef int (__sys_listen_t)(int, int); 143 typedef int (__sys_gettimeofday_t)(struct timeval *, struct timezone *); 144 typedef int (__sys_getrusage_t)(int, struct rusage *); 145 typedef int (__sys_getsockopt_t)(int, int, int, void *, __socklen_t *); 146 typedef ssize_t (__sys_readv_t)(int, const struct iovec *, u_int); 147 typedef ssize_t (__sys_writev_t)(int, const struct iovec *, u_int); 148 typedef int (__sys_settimeofday_t)(const struct timeval *, const struct timezone *); 149 typedef int (__sys_fchown_t)(int, int, int); 150 typedef int (__sys_fchmod_t)(int, mode_t); 151 typedef int (__sys_setreuid_t)(int, int); 152 typedef int (__sys_setregid_t)(int, int); 153 typedef int (__sys_rename_t)(const char *, const char *); 154 typedef int (__sys_flock_t)(int, int); 155 typedef int (__sys_mkfifo_t)(const char *, mode_t); 156 typedef ssize_t (__sys_sendto_t)(int, const void *, size_t, int, const struct sockaddr *, __socklen_t); 157 typedef int (__sys_shutdown_t)(int, int); 158 typedef int (__sys_socketpair_t)(int, int, int, int *); 159 typedef int (__sys_mkdir_t)(const char *, mode_t); 160 typedef int (__sys_rmdir_t)(const char *); 161 typedef int (__sys_utimes_t)(const char *, const struct timeval *); 162 typedef int (__sys_adjtime_t)(const struct timeval *, struct timeval *); 163 typedef int (__sys_setsid_t)(void); 164 typedef int (__sys_quotactl_t)(const char *, int, int, void *); 165 typedef int (__sys_nlm_syscall_t)(int, int, int, char **); 166 typedef int (__sys_nfssvc_t)(int, void *); 167 typedef int (__sys_lgetfh_t)(const char *, struct fhandle *); 168 typedef int (__sys_getfh_t)(const char *, struct fhandle *); 169 typedef int (__sys_sysarch_t)(int, char *); 170 typedef int (__sys_rtprio_t)(int, pid_t, struct rtprio *); 171 typedef int (__sys_semsys_t)(int, int, int, int, int); 172 typedef int (__sys_msgsys_t)(int, int, int, int, int, int); 173 typedef int (__sys_shmsys_t)(int, int, int, int); 174 typedef int (__sys_setfib_t)(int); 175 typedef int (__sys_ntp_adjtime_t)(struct timex *); 176 typedef int (__sys_setgid_t)(gid_t); 177 typedef int (__sys_setegid_t)(gid_t); 178 typedef int (__sys_seteuid_t)(uid_t); 179 typedef int (__sys_pathconf_t)(const char *, int); 180 typedef int (__sys_fpathconf_t)(int, int); 181 typedef int (__sys_getrlimit_t)(u_int, struct rlimit *); 182 typedef int (__sys_setrlimit_t)(u_int, struct rlimit *); 183 typedef int (__sys___sysctl_t)(int *, u_int, void *, size_t *, const void *, size_t); 184 typedef int (__sys_mlock_t)(const void *, size_t); 185 typedef int (__sys_munlock_t)(const void *, size_t); 186 typedef int (__sys_undelete_t)(const char *); 187 typedef int (__sys_futimes_t)(int, const struct timeval *); 188 typedef int (__sys_getpgid_t)(pid_t); 189 typedef int (__sys_poll_t)(struct pollfd *, u_int, int); 190 typedef int (__sys_semget_t)(key_t, int, int); 191 typedef int (__sys_semop_t)(int, struct sembuf *, size_t); 192 typedef int (__sys_msgget_t)(key_t, int); 193 typedef int (__sys_msgsnd_t)(int, const void *, size_t, int); 194 typedef ssize_t (__sys_msgrcv_t)(int, void *, size_t, long, int); 195 typedef void * (__sys_shmat_t)(int, const void *, int); 196 typedef int (__sys_shmdt_t)(const void *); 197 typedef int (__sys_shmget_t)(key_t, size_t, int); 198 typedef int (__sys_clock_gettime_t)(clockid_t, struct timespec *); 199 typedef int (__sys_clock_settime_t)(clockid_t, const struct timespec *); 200 typedef int (__sys_clock_getres_t)(clockid_t, struct timespec *); 201 typedef int (__sys_ktimer_create_t)(clockid_t, struct sigevent *, int *); 202 typedef int (__sys_ktimer_delete_t)(int); 203 typedef int (__sys_ktimer_settime_t)(int, int, const struct itimerspec *, struct itimerspec *); 204 typedef int (__sys_ktimer_gettime_t)(int, struct itimerspec *); 205 typedef int (__sys_ktimer_getoverrun_t)(int); 206 typedef int (__sys_nanosleep_t)(const struct timespec *, struct timespec *); 207 typedef int (__sys_ffclock_getcounter_t)(ffcounter *); 208 typedef int (__sys_ffclock_setestimate_t)(struct ffclock_estimate *); 209 typedef int (__sys_ffclock_getestimate_t)(struct ffclock_estimate *); 210 typedef int (__sys_clock_nanosleep_t)(clockid_t, int, const struct timespec *, struct timespec *); 211 typedef int (__sys_clock_getcpuclockid2_t)(id_t, int, clockid_t *); 212 typedef int (__sys_ntp_gettime_t)(struct ntptimeval *); 213 typedef int (__sys_minherit_t)(void *, size_t, int); 214 typedef int (__sys_rfork_t)(int); 215 typedef int (__sys_issetugid_t)(void); 216 typedef int (__sys_lchown_t)(const char *, int, int); 217 typedef int (__sys_aio_read_t)(struct aiocb *); 218 typedef int (__sys_aio_write_t)(struct aiocb *); 219 typedef int (__sys_lio_listio_t)(int, struct aiocb * const *, int, struct sigevent *); 220 typedef int (__sys_lchmod_t)(const char *, mode_t); 221 typedef int (__sys_lutimes_t)(const char *, const struct timeval *); 222 typedef ssize_t (__sys_preadv_t)(int, struct iovec *, u_int, off_t); 223 typedef ssize_t (__sys_pwritev_t)(int, struct iovec *, u_int, off_t); 224 typedef int (__sys_fhopen_t)(const struct fhandle *, int); 225 typedef int (__sys_modnext_t)(int); 226 typedef int (__sys_modstat_t)(int, struct module_stat *); 227 typedef int (__sys_modfnext_t)(int); 228 typedef int (__sys_modfind_t)(const char *); 229 typedef int (__sys_kldload_t)(const char *); 230 typedef int (__sys_kldunload_t)(int); 231 typedef int (__sys_kldfind_t)(const char *); 232 typedef int (__sys_kldnext_t)(int); 233 typedef int (__sys_kldstat_t)(int, struct kld_file_stat *); 234 typedef int (__sys_kldfirstmod_t)(int); 235 typedef int (__sys_getsid_t)(pid_t); 236 typedef int (__sys_setresuid_t)(uid_t, uid_t, uid_t); 237 typedef int (__sys_setresgid_t)(gid_t, gid_t, gid_t); 238 typedef ssize_t (__sys_aio_return_t)(struct aiocb *); 239 typedef int (__sys_aio_suspend_t)(const struct aiocb * const *, int, const struct timespec *); 240 typedef int (__sys_aio_cancel_t)(int, struct aiocb *); 241 typedef int (__sys_aio_error_t)(struct aiocb *); 242 typedef int (__sys_mlockall_t)(int); 243 typedef int (__sys_munlockall_t)(void); 244 typedef int (__sys___getcwd_t)(char *, size_t); 245 typedef int (__sys_sched_setparam_t)(pid_t, const struct sched_param *); 246 typedef int (__sys_sched_getparam_t)(pid_t, struct sched_param *); 247 typedef int (__sys_sched_setscheduler_t)(pid_t, int, const struct sched_param *); 248 typedef int (__sys_sched_getscheduler_t)(pid_t); 249 typedef int (__sys_sched_yield_t)(void); 250 typedef int (__sys_sched_get_priority_max_t)(int); 251 typedef int (__sys_sched_get_priority_min_t)(int); 252 typedef int (__sys_sched_rr_get_interval_t)(pid_t, struct timespec *); 253 typedef int (__sys_utrace_t)(const void *, size_t); 254 typedef int (__sys_kldsym_t)(int, int, void *); 255 typedef int (__sys_jail_t)(struct jail *); 256 typedef int (__sys_nnpfs_syscall_t)(int, char *, int, void *, int); 257 typedef int (__sys_sigprocmask_t)(int, const sigset_t *, sigset_t *); 258 typedef int (__sys_sigsuspend_t)(const sigset_t *); 259 typedef int (__sys_sigpending_t)(sigset_t *); 260 typedef int (__sys_sigtimedwait_t)(const sigset_t *, struct __siginfo *, const struct timespec *); 261 typedef int (__sys_sigwaitinfo_t)(const sigset_t *, struct __siginfo *); 262 typedef int (__sys___acl_get_file_t)(const char *, __acl_type_t, struct acl *); 263 typedef int (__sys___acl_set_file_t)(const char *, __acl_type_t, struct acl *); 264 typedef int (__sys___acl_get_fd_t)(int, __acl_type_t, struct acl *); 265 typedef int (__sys___acl_set_fd_t)(int, __acl_type_t, struct acl *); 266 typedef int (__sys___acl_delete_file_t)(const char *, __acl_type_t); 267 typedef int (__sys___acl_delete_fd_t)(int, __acl_type_t); 268 typedef int (__sys___acl_aclcheck_file_t)(const char *, __acl_type_t, struct acl *); 269 typedef int (__sys___acl_aclcheck_fd_t)(int, __acl_type_t, struct acl *); 270 typedef int (__sys_extattrctl_t)(const char *, int, const char *, int, const char *); 271 typedef ssize_t (__sys_extattr_set_file_t)(const char *, int, const char *, void *, size_t); 272 typedef ssize_t (__sys_extattr_get_file_t)(const char *, int, const char *, void *, size_t); 273 typedef int (__sys_extattr_delete_file_t)(const char *, int, const char *); 274 typedef ssize_t (__sys_aio_waitcomplete_t)(struct aiocb **, struct timespec *); 275 typedef int (__sys_getresuid_t)(uid_t *, uid_t *, uid_t *); 276 typedef int (__sys_getresgid_t)(gid_t *, gid_t *, gid_t *); 277 typedef int (__sys_kqueue_t)(void); 278 typedef ssize_t (__sys_extattr_set_fd_t)(int, int, const char *, void *, size_t); 279 typedef ssize_t (__sys_extattr_get_fd_t)(int, int, const char *, void *, size_t); 280 typedef int (__sys_extattr_delete_fd_t)(int, int, const char *); 281 typedef int (__sys___setugid_t)(int); 282 typedef int (__sys_eaccess_t)(const char *, int); 283 typedef int (__sys_afs3_syscall_t)(long, long, long, long, long, long, long); 284 typedef int (__sys_nmount_t)(struct iovec *, unsigned int, int); 285 typedef int (__sys___mac_get_proc_t)(struct mac *); 286 typedef int (__sys___mac_set_proc_t)(struct mac *); 287 typedef int (__sys___mac_get_fd_t)(int, struct mac *); 288 typedef int (__sys___mac_get_file_t)(const char *, struct mac *); 289 typedef int (__sys___mac_set_fd_t)(int, struct mac *); 290 typedef int (__sys___mac_set_file_t)(const char *, struct mac *); 291 typedef int (__sys_kenv_t)(int, const char *, char *, int); 292 typedef int (__sys_lchflags_t)(const char *, u_long); 293 typedef int (__sys_uuidgen_t)(struct uuid *, int); 294 typedef int (__sys_sendfile_t)(int, int, off_t, size_t, struct sf_hdtr *, off_t *, int); 295 typedef int (__sys_mac_syscall_t)(const char *, int, void *); 296 typedef int (__sys_ksem_close_t)(semid_t); 297 typedef int (__sys_ksem_post_t)(semid_t); 298 typedef int (__sys_ksem_wait_t)(semid_t); 299 typedef int (__sys_ksem_trywait_t)(semid_t); 300 typedef int (__sys_ksem_init_t)(semid_t *, unsigned int); 301 typedef int (__sys_ksem_open_t)(semid_t *, const char *, int, mode_t, unsigned int); 302 typedef int (__sys_ksem_unlink_t)(const char *); 303 typedef int (__sys_ksem_getvalue_t)(semid_t, int *); 304 typedef int (__sys_ksem_destroy_t)(semid_t); 305 typedef int (__sys___mac_get_pid_t)(pid_t, struct mac *); 306 typedef int (__sys___mac_get_link_t)(const char *, struct mac *); 307 typedef int (__sys___mac_set_link_t)(const char *, struct mac *); 308 typedef ssize_t (__sys_extattr_set_link_t)(const char *, int, const char *, void *, size_t); 309 typedef ssize_t (__sys_extattr_get_link_t)(const char *, int, const char *, void *, size_t); 310 typedef int (__sys_extattr_delete_link_t)(const char *, int, const char *); 311 typedef int (__sys___mac_execve_t)(const char *, char **, char **, struct mac *); 312 typedef int (__sys_sigaction_t)(int, const struct sigaction *, struct sigaction *); 313 typedef int (__sys_sigreturn_t)(const struct __ucontext *); 314 typedef int (__sys_getcontext_t)(struct __ucontext *); 315 typedef int (__sys_setcontext_t)(const struct __ucontext *); 316 typedef int (__sys_swapcontext_t)(struct __ucontext *, const struct __ucontext *); 317 typedef int (__sys___acl_get_link_t)(const char *, __acl_type_t, struct acl *); 318 typedef int (__sys___acl_set_link_t)(const char *, __acl_type_t, struct acl *); 319 typedef int (__sys___acl_delete_link_t)(const char *, __acl_type_t); 320 typedef int (__sys___acl_aclcheck_link_t)(const char *, __acl_type_t, struct acl *); 321 typedef int (__sys_sigwait_t)(const sigset_t *, int *); 322 typedef int (__sys_thr_create_t)(ucontext_t *, long *, int); 323 typedef void (__sys_thr_exit_t)(long *); 324 typedef int (__sys_thr_self_t)(long *); 325 typedef int (__sys_thr_kill_t)(long, int); 326 typedef int (__sys_jail_attach_t)(int); 327 typedef ssize_t (__sys_extattr_list_fd_t)(int, int, void *, size_t); 328 typedef ssize_t (__sys_extattr_list_file_t)(const char *, int, void *, size_t); 329 typedef ssize_t (__sys_extattr_list_link_t)(const char *, int, void *, size_t); 330 typedef int (__sys_ksem_timedwait_t)(semid_t, const struct timespec *); 331 typedef int (__sys_thr_suspend_t)(const struct timespec *); 332 typedef int (__sys_thr_wake_t)(long); 333 typedef int (__sys_kldunloadf_t)(int, int); 334 typedef int (__sys_audit_t)(const void *, u_int); 335 typedef int (__sys_auditon_t)(int, void *, u_int); 336 typedef int (__sys_getauid_t)(uid_t *); 337 typedef int (__sys_setauid_t)(uid_t *); 338 typedef int (__sys_getaudit_t)(struct auditinfo *); 339 typedef int (__sys_setaudit_t)(struct auditinfo *); 340 typedef int (__sys_getaudit_addr_t)(struct auditinfo_addr *, u_int); 341 typedef int (__sys_setaudit_addr_t)(struct auditinfo_addr *, u_int); 342 typedef int (__sys_auditctl_t)(const char *); 343 typedef int (__sys__umtx_op_t)(void *, int, u_long, void *, void *); 344 typedef int (__sys_thr_new_t)(struct thr_param *, int); 345 typedef int (__sys_sigqueue_t)(pid_t, int, void *); 346 typedef int (__sys_kmq_open_t)(const char *, int, mode_t, const struct mq_attr *); 347 typedef int (__sys_kmq_setattr_t)(int, const struct mq_attr *, struct mq_attr *); 348 typedef int (__sys_kmq_timedreceive_t)(int, char *, size_t, unsigned *, const struct timespec *); 349 typedef int (__sys_kmq_timedsend_t)(int, const char *, size_t, unsigned, const struct timespec *); 350 typedef int (__sys_kmq_notify_t)(int, const struct sigevent *); 351 typedef int (__sys_kmq_unlink_t)(const char *); 352 typedef void (__sys_abort2_t)(const char *, int, void **); 353 typedef int (__sys_thr_set_name_t)(long, const char *); 354 typedef int (__sys_aio_fsync_t)(int, struct aiocb *); 355 typedef int (__sys_rtprio_thread_t)(int, lwpid_t, struct rtprio *); 356 typedef int (__sys_sctp_peeloff_t)(int, uint32_t); 357 typedef int (__sys_sctp_generic_sendmsg_t)(int, void *, int, const struct sockaddr *, __socklen_t, struct sctp_sndrcvinfo *, int); 358 typedef int (__sys_sctp_generic_sendmsg_iov_t)(int, struct iovec *, int, const struct sockaddr *, __socklen_t, struct sctp_sndrcvinfo *, int); 359 typedef int (__sys_sctp_generic_recvmsg_t)(int, struct iovec *, int, struct sockaddr *, __socklen_t *, struct sctp_sndrcvinfo *, int *); 360 typedef ssize_t (__sys_pread_t)(int, void *, size_t, off_t); 361 typedef ssize_t (__sys_pwrite_t)(int, const void *, size_t, off_t); 362 typedef void * (__sys_mmap_t)(void *, size_t, int, int, int, off_t); 363 typedef off_t (__sys_lseek_t)(int, off_t, int); 364 typedef int (__sys_truncate_t)(const char *, off_t); 365 typedef int (__sys_ftruncate_t)(int, off_t); 366 typedef int (__sys_thr_kill2_t)(pid_t, long, int); 367 typedef int (__sys_shm_unlink_t)(const char *); 368 typedef int (__sys_cpuset_t)(cpusetid_t *); 369 typedef int (__sys_cpuset_setid_t)(cpuwhich_t, id_t, cpusetid_t); 370 typedef int (__sys_cpuset_getid_t)(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *); 371 typedef int (__sys_cpuset_getaffinity_t)(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *); 372 typedef int (__sys_cpuset_setaffinity_t)(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *); 373 typedef int (__sys_faccessat_t)(int, const char *, int, int); 374 typedef int (__sys_fchmodat_t)(int, const char *, mode_t, int); 375 typedef int (__sys_fchownat_t)(int, const char *, uid_t, gid_t, int); 376 typedef int (__sys_fexecve_t)(int, char **, char **); 377 typedef int (__sys_futimesat_t)(int, const char *, const struct timeval *); 378 typedef int (__sys_linkat_t)(int, const char *, int, const char *, int); 379 typedef int (__sys_mkdirat_t)(int, const char *, mode_t); 380 typedef int (__sys_mkfifoat_t)(int, const char *, mode_t); 381 typedef int (__sys_openat_t)(int, const char *, int, mode_t); 382 typedef ssize_t (__sys_readlinkat_t)(int, const char *, char *, size_t); 383 typedef int (__sys_renameat_t)(int, const char *, int, const char *); 384 typedef int (__sys_symlinkat_t)(const char *, int, const char *); 385 typedef int (__sys_unlinkat_t)(int, const char *, int); 386 typedef int (__sys_posix_openpt_t)(int); 387 typedef int (__sys_gssd_syscall_t)(const char *); 388 typedef int (__sys_jail_get_t)(struct iovec *, unsigned int, int); 389 typedef int (__sys_jail_set_t)(struct iovec *, unsigned int, int); 390 typedef int (__sys_jail_remove_t)(int); 391 typedef int (__sys___semctl_t)(int, int, int, union semun *); 392 typedef int (__sys_msgctl_t)(int, int, struct msqid_ds *); 393 typedef int (__sys_shmctl_t)(int, int, struct shmid_ds *); 394 typedef int (__sys_lpathconf_t)(const char *, int); 395 typedef int (__sys___cap_rights_get_t)(int, int, cap_rights_t *); 396 typedef int (__sys_cap_enter_t)(void); 397 typedef int (__sys_cap_getmode_t)(u_int *); 398 typedef int (__sys_pdfork_t)(int *, int); 399 typedef int (__sys_pdkill_t)(int, int); 400 typedef int (__sys_pdgetpid_t)(int, pid_t *); 401 typedef int (__sys_pselect_t)(int, fd_set *, fd_set *, fd_set *, const struct timespec *, const sigset_t *); 402 typedef int (__sys_getloginclass_t)(char *, size_t); 403 typedef int (__sys_setloginclass_t)(const char *); 404 typedef int (__sys_rctl_get_racct_t)(const void *, size_t, void *, size_t); 405 typedef int (__sys_rctl_get_rules_t)(const void *, size_t, void *, size_t); 406 typedef int (__sys_rctl_get_limits_t)(const void *, size_t, void *, size_t); 407 typedef int (__sys_rctl_add_rule_t)(const void *, size_t, void *, size_t); 408 typedef int (__sys_rctl_remove_rule_t)(const void *, size_t, void *, size_t); 409 typedef int (__sys_posix_fallocate_t)(int, off_t, off_t); 410 typedef int (__sys_posix_fadvise_t)(int, off_t, off_t, int); 411 typedef int (__sys_wait6_t)(idtype_t, id_t, int *, int, struct __wrusage *, struct __siginfo *); 412 typedef int (__sys_cap_rights_limit_t)(int, cap_rights_t *); 413 typedef int (__sys_cap_ioctls_limit_t)(int, const u_long *, size_t); 414 typedef ssize_t (__sys_cap_ioctls_get_t)(int, u_long *, size_t); 415 typedef int (__sys_cap_fcntls_limit_t)(int, uint32_t); 416 typedef int (__sys_cap_fcntls_get_t)(int, uint32_t *); 417 typedef int (__sys_bindat_t)(int, int, const struct sockaddr *, __socklen_t); 418 typedef int (__sys_connectat_t)(int, int, const struct sockaddr *, __socklen_t); 419 typedef int (__sys_chflagsat_t)(int, const char *, u_long, int); 420 typedef int (__sys_accept4_t)(int, struct sockaddr *, __socklen_t *, int); 421 typedef int (__sys_pipe2_t)(int *, int); 422 typedef int (__sys_aio_mlock_t)(struct aiocb *); 423 typedef int (__sys_procctl_t)(idtype_t, id_t, int, void *); 424 typedef int (__sys_ppoll_t)(struct pollfd *, u_int, const struct timespec *, const sigset_t *); 425 typedef int (__sys_futimens_t)(int, const struct timespec *); 426 typedef int (__sys_utimensat_t)(int, const char *, const struct timespec *, int); 427 typedef int (__sys_fdatasync_t)(int); 428 typedef int (__sys_fstat_t)(int, struct stat *); 429 typedef int (__sys_fstatat_t)(int, const char *, struct stat *, int); 430 typedef int (__sys_fhstat_t)(const struct fhandle *, struct stat *); 431 typedef ssize_t (__sys_getdirentries_t)(int, char *, size_t, off_t *); 432 typedef int (__sys_statfs_t)(const char *, struct statfs *); 433 typedef int (__sys_fstatfs_t)(int, struct statfs *); 434 typedef int (__sys_getfsstat_t)(struct statfs *, long, int); 435 typedef int (__sys_fhstatfs_t)(const struct fhandle *, struct statfs *); 436 typedef int (__sys_mknodat_t)(int, const char *, mode_t, dev_t); 437 typedef int (__sys_kevent_t)(int, const struct kevent *, int, struct kevent *, int, const struct timespec *); 438 typedef int (__sys_cpuset_getdomain_t)(cpulevel_t, cpuwhich_t, id_t, size_t, domainset_t *, int *); 439 typedef int (__sys_cpuset_setdomain_t)(cpulevel_t, cpuwhich_t, id_t, size_t, domainset_t *, int); 440 typedef int (__sys_getrandom_t)(void *, size_t, unsigned int); 441 typedef int (__sys_getfhat_t)(int, char *, struct fhandle *, int); 442 typedef int (__sys_fhlink_t)(struct fhandle *, const char *); 443 typedef int (__sys_fhlinkat_t)(struct fhandle *, int, const char *); 444 typedef int (__sys_fhreadlink_t)(struct fhandle *, char *, size_t); 445 typedef int (__sys_funlinkat_t)(int, const char *, int, int); 446 typedef ssize_t (__sys_copy_file_range_t)(int, off_t *, int, off_t *, size_t, unsigned int); 447 typedef int (__sys___sysctlbyname_t)(const char *, size_t, void *, size_t *, void *, size_t); 448 typedef int (__sys_shm_open2_t)(const char *, int, mode_t, int, const char *); 449 typedef int (__sys_shm_rename_t)(const char *, const char *, int); 450 typedef int (__sys_sigfastblock_t)(int, void *); 451 typedef int (__sys___realpathat_t)(int, const char *, char *, size_t, int); 452 typedef int (__sys_close_range_t)(u_int, u_int, int); 453 typedef int (__sys_rpctls_syscall_t)(int, const char *); 454 typedef int (__sys___specialfd_t)(int, const void *, size_t); 455 typedef int (__sys_aio_writev_t)(struct aiocb *); 456 typedef int (__sys_aio_readv_t)(struct aiocb *); 457 typedef int (__sys_fspacectl_t)(int, int, const struct spacectl_range *, int, struct spacectl_range *); 458 typedef int (__sys_sched_getcpu_t)(void); 459 typedef int (__sys_swapoff_t)(const char *, u_int); 460 typedef int (__sys_kqueuex_t)(u_int); 461 typedef int (__sys_membarrier_t)(int, unsigned, int); 462 typedef int (__sys_timerfd_create_t)(int, int); 463 typedef int (__sys_timerfd_gettime_t)(int, struct itimerspec *); 464 typedef int (__sys_timerfd_settime_t)(int, int, const struct itimerspec *, struct itimerspec *); 465 typedef int (__sys_kcmp_t)(pid_t, pid_t, int, uintptr_t, uintptr_t); 466 typedef int (__sys_getrlimitusage_t)(u_int, int, rlim_t *); 467 typedef int (__sys_fchroot_t)(int); 468 typedef int (__sys_setcred_t)(u_int, const struct setcred *, size_t); 469 470 void __sys_exit(int rval); 471 int __sys_fork(void); 472 ssize_t __sys_read(int fd, void * buf, size_t nbyte); 473 ssize_t __sys_write(int fd, const void * buf, size_t nbyte); 474 int __sys_open(const char * path, int flags, mode_t mode); 475 int __sys_close(int fd); 476 int __sys_wait4(int pid, int * status, int options, struct rusage * rusage); 477 int __sys_link(const char * path, const char * link); 478 int __sys_unlink(const char * path); 479 int __sys_chdir(const char * path); 480 int __sys_fchdir(int fd); 481 int __sys_chmod(const char * path, mode_t mode); 482 int __sys_chown(const char * path, int uid, int gid); 483 void * __sys_break(char * nsize); 484 pid_t __sys_getpid(void); 485 int __sys_mount(const char * type, const char * path, int flags, void * data); 486 int __sys_unmount(const char * path, int flags); 487 int __sys_setuid(uid_t uid); 488 uid_t __sys_getuid(void); 489 uid_t __sys_geteuid(void); 490 int __sys_ptrace(int req, pid_t pid, caddr_t addr, int data); 491 ssize_t __sys_recvmsg(int s, struct msghdr * msg, int flags); 492 ssize_t __sys_sendmsg(int s, const struct msghdr * msg, int flags); 493 ssize_t __sys_recvfrom(int s, void * buf, size_t len, int flags, struct sockaddr * from, __socklen_t * fromlenaddr); 494 int __sys_accept(int s, struct sockaddr * name, __socklen_t * anamelen); 495 int __sys_getpeername(int fdes, struct sockaddr * asa, __socklen_t * alen); 496 int __sys_getsockname(int fdes, struct sockaddr * asa, __socklen_t * alen); 497 int __sys_access(const char * path, int amode); 498 int __sys_chflags(const char * path, u_long flags); 499 int __sys_fchflags(int fd, u_long flags); 500 int __sys_sync(void); 501 int __sys_kill(int pid, int signum); 502 pid_t __sys_getppid(void); 503 int __sys_dup(u_int fd); 504 gid_t __sys_getegid(void); 505 int __sys_profil(char * samples, size_t size, size_t offset, u_int scale); 506 int __sys_ktrace(const char * fname, int ops, int facs, int pid); 507 gid_t __sys_getgid(void); 508 int __sys_getlogin(char * namebuf, u_int namelen); 509 int __sys_setlogin(const char * namebuf); 510 int __sys_acct(const char * path); 511 int __sys_sigaltstack(const struct sigaltstack * ss, struct sigaltstack * oss); 512 int __sys_ioctl(int fd, u_long com, char * data); 513 int __sys_reboot(int opt); 514 int __sys_revoke(const char * path); 515 int __sys_symlink(const char * path, const char * link); 516 ssize_t __sys_readlink(const char * path, char * buf, size_t count); 517 int __sys_execve(const char * fname, char ** argv, char ** envv); 518 mode_t __sys_umask(mode_t newmask); 519 int __sys_chroot(const char * path); 520 int __sys_msync(void * addr, size_t len, int flags); 521 int __sys_vfork(void); 522 int __sys_munmap(void * addr, size_t len); 523 int __sys_mprotect(void * addr, size_t len, int prot); 524 int __sys_madvise(void * addr, size_t len, int behav); 525 int __sys_mincore(const void * addr, size_t len, char * vec); 526 int __sys_getgroups(int gidsetsize, gid_t * gidset); 527 int __sys_setgroups(int gidsetsize, const gid_t * gidset); 528 int __sys_getpgrp(void); 529 int __sys_setpgid(int pid, int pgid); 530 int __sys_setitimer(int which, const struct itimerval * itv, struct itimerval * oitv); 531 int __sys_swapon(const char * name); 532 int __sys_getitimer(int which, struct itimerval * itv); 533 int __sys_getdtablesize(void); 534 int __sys_dup2(u_int from, u_int to); 535 int __sys_fcntl(int fd, int cmd, intptr_t arg); 536 int __sys_select(int nd, fd_set * in, fd_set * ou, fd_set * ex, struct timeval * tv); 537 int __sys_fsync(int fd); 538 int __sys_setpriority(int which, int who, int prio); 539 int __sys_socket(int domain, int type, int protocol); 540 int __sys_connect(int s, const struct sockaddr * name, __socklen_t namelen); 541 int __sys_getpriority(int which, int who); 542 int __sys_bind(int s, const struct sockaddr * name, __socklen_t namelen); 543 int __sys_setsockopt(int s, int level, int name, const void * val, __socklen_t valsize); 544 int __sys_listen(int s, int backlog); 545 int __sys_gettimeofday(struct timeval * tp, struct timezone * tzp); 546 int __sys_getrusage(int who, struct rusage * rusage); 547 int __sys_getsockopt(int s, int level, int name, void * val, __socklen_t * avalsize); 548 ssize_t __sys_readv(int fd, const struct iovec * iovp, u_int iovcnt); 549 ssize_t __sys_writev(int fd, const struct iovec * iovp, u_int iovcnt); 550 int __sys_settimeofday(const struct timeval * tv, const struct timezone * tzp); 551 int __sys_fchown(int fd, int uid, int gid); 552 int __sys_fchmod(int fd, mode_t mode); 553 int __sys_setreuid(int ruid, int euid); 554 int __sys_setregid(int rgid, int egid); 555 int __sys_rename(const char * from, const char * to); 556 int __sys_flock(int fd, int how); 557 int __sys_mkfifo(const char * path, mode_t mode); 558 ssize_t __sys_sendto(int s, const void * buf, size_t len, int flags, const struct sockaddr * to, __socklen_t tolen); 559 int __sys_shutdown(int s, int how); 560 int __sys_socketpair(int domain, int type, int protocol, int * rsv); 561 int __sys_mkdir(const char * path, mode_t mode); 562 int __sys_rmdir(const char * path); 563 int __sys_utimes(const char * path, const struct timeval * tptr); 564 int __sys_adjtime(const struct timeval * delta, struct timeval * olddelta); 565 int __sys_setsid(void); 566 int __sys_quotactl(const char * path, int cmd, int uid, void * arg); 567 int __sys_nlm_syscall(int debug_level, int grace_period, int addr_count, char ** addrs); 568 int __sys_nfssvc(int flag, void * argp); 569 int __sys_lgetfh(const char * fname, struct fhandle * fhp); 570 int __sys_getfh(const char * fname, struct fhandle * fhp); 571 int __sys_sysarch(int op, char * parms); 572 int __sys_rtprio(int function, pid_t pid, struct rtprio * rtp); 573 int __sys_semsys(int which, int a2, int a3, int a4, int a5); 574 int __sys_msgsys(int which, int a2, int a3, int a4, int a5, int a6); 575 int __sys_shmsys(int which, int a2, int a3, int a4); 576 int __sys_setfib(int fibnum); 577 int __sys_ntp_adjtime(struct timex * tp); 578 int __sys_setgid(gid_t gid); 579 int __sys_setegid(gid_t egid); 580 int __sys_seteuid(uid_t euid); 581 int __sys_pathconf(const char * path, int name); 582 int __sys_fpathconf(int fd, int name); 583 int __sys_getrlimit(u_int which, struct rlimit * rlp); 584 int __sys_setrlimit(u_int which, struct rlimit * rlp); 585 int __sys___sysctl(int * name, u_int namelen, void * old, size_t * oldlenp, const void * new, size_t newlen); 586 int __sys_mlock(const void * addr, size_t len); 587 int __sys_munlock(const void * addr, size_t len); 588 int __sys_undelete(const char * path); 589 int __sys_futimes(int fd, const struct timeval * tptr); 590 int __sys_getpgid(pid_t pid); 591 int __sys_poll(struct pollfd * fds, u_int nfds, int timeout); 592 int __sys_semget(key_t key, int nsems, int semflg); 593 int __sys_semop(int semid, struct sembuf * sops, size_t nsops); 594 int __sys_msgget(key_t key, int msgflg); 595 int __sys_msgsnd(int msqid, const void * msgp, size_t msgsz, int msgflg); 596 ssize_t __sys_msgrcv(int msqid, void * msgp, size_t msgsz, long msgtyp, int msgflg); 597 void * __sys_shmat(int shmid, const void * shmaddr, int shmflg); 598 int __sys_shmdt(const void * shmaddr); 599 int __sys_shmget(key_t key, size_t size, int shmflg); 600 int __sys_clock_gettime(clockid_t clock_id, struct timespec * tp); 601 int __sys_clock_settime(clockid_t clock_id, const struct timespec * tp); 602 int __sys_clock_getres(clockid_t clock_id, struct timespec * tp); 603 int __sys_ktimer_create(clockid_t clock_id, struct sigevent * evp, int * timerid); 604 int __sys_ktimer_delete(int timerid); 605 int __sys_ktimer_settime(int timerid, int flags, const struct itimerspec * value, struct itimerspec * ovalue); 606 int __sys_ktimer_gettime(int timerid, struct itimerspec * value); 607 int __sys_ktimer_getoverrun(int timerid); 608 int __sys_nanosleep(const struct timespec * rqtp, struct timespec * rmtp); 609 int __sys_ffclock_getcounter(ffcounter * ffcount); 610 int __sys_ffclock_setestimate(struct ffclock_estimate * cest); 611 int __sys_ffclock_getestimate(struct ffclock_estimate * cest); 612 int __sys_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec * rqtp, struct timespec * rmtp); 613 int __sys_clock_getcpuclockid2(id_t id, int which, clockid_t * clock_id); 614 int __sys_ntp_gettime(struct ntptimeval * ntvp); 615 int __sys_minherit(void * addr, size_t len, int inherit); 616 int __sys_rfork(int flags); 617 int __sys_issetugid(void); 618 int __sys_lchown(const char * path, int uid, int gid); 619 int __sys_aio_read(struct aiocb * aiocbp); 620 int __sys_aio_write(struct aiocb * aiocbp); 621 int __sys_lio_listio(int mode, struct aiocb * const * acb_list, int nent, struct sigevent * sig); 622 int __sys_lchmod(const char * path, mode_t mode); 623 int __sys_lutimes(const char * path, const struct timeval * tptr); 624 ssize_t __sys_preadv(int fd, struct iovec * iovp, u_int iovcnt, off_t offset); 625 ssize_t __sys_pwritev(int fd, struct iovec * iovp, u_int iovcnt, off_t offset); 626 int __sys_fhopen(const struct fhandle * u_fhp, int flags); 627 int __sys_modnext(int modid); 628 int __sys_modstat(int modid, struct module_stat * stat); 629 int __sys_modfnext(int modid); 630 int __sys_modfind(const char * name); 631 int __sys_kldload(const char * file); 632 int __sys_kldunload(int fileid); 633 int __sys_kldfind(const char * file); 634 int __sys_kldnext(int fileid); 635 int __sys_kldstat(int fileid, struct kld_file_stat * stat); 636 int __sys_kldfirstmod(int fileid); 637 int __sys_getsid(pid_t pid); 638 int __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); 639 int __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); 640 ssize_t __sys_aio_return(struct aiocb * aiocbp); 641 int __sys_aio_suspend(const struct aiocb * const * aiocbp, int nent, const struct timespec * timeout); 642 int __sys_aio_cancel(int fd, struct aiocb * aiocbp); 643 int __sys_aio_error(struct aiocb * aiocbp); 644 int __sys_mlockall(int how); 645 int __sys_munlockall(void); 646 int __sys___getcwd(char * buf, size_t buflen); 647 int __sys_sched_setparam(pid_t pid, const struct sched_param * param); 648 int __sys_sched_getparam(pid_t pid, struct sched_param * param); 649 int __sys_sched_setscheduler(pid_t pid, int policy, const struct sched_param * param); 650 int __sys_sched_getscheduler(pid_t pid); 651 int __sys_sched_yield(void); 652 int __sys_sched_get_priority_max(int policy); 653 int __sys_sched_get_priority_min(int policy); 654 int __sys_sched_rr_get_interval(pid_t pid, struct timespec * interval); 655 int __sys_utrace(const void * addr, size_t len); 656 int __sys_kldsym(int fileid, int cmd, void * data); 657 int __sys_jail(struct jail * jail); 658 int __sys_nnpfs_syscall(int operation, char * a_pathP, int a_opcode, void * a_paramsP, int a_followSymlinks); 659 int __sys_sigprocmask(int how, const sigset_t * set, sigset_t * oset); 660 int __sys_sigsuspend(const sigset_t * sigmask); 661 int __sys_sigpending(sigset_t * set); 662 int __sys_sigtimedwait(const sigset_t * set, struct __siginfo * info, const struct timespec * timeout); 663 int __sys_sigwaitinfo(const sigset_t * set, struct __siginfo * info); 664 int __sys___acl_get_file(const char * path, __acl_type_t type, struct acl * aclp); 665 int __sys___acl_set_file(const char * path, __acl_type_t type, struct acl * aclp); 666 int __sys___acl_get_fd(int filedes, __acl_type_t type, struct acl * aclp); 667 int __sys___acl_set_fd(int filedes, __acl_type_t type, struct acl * aclp); 668 int __sys___acl_delete_file(const char * path, __acl_type_t type); 669 int __sys___acl_delete_fd(int filedes, __acl_type_t type); 670 int __sys___acl_aclcheck_file(const char * path, __acl_type_t type, struct acl * aclp); 671 int __sys___acl_aclcheck_fd(int filedes, __acl_type_t type, struct acl * aclp); 672 int __sys_extattrctl(const char * path, int cmd, const char * filename, int attrnamespace, const char * attrname); 673 ssize_t __sys_extattr_set_file(const char * path, int attrnamespace, const char * attrname, void * data, size_t nbytes); 674 ssize_t __sys_extattr_get_file(const char * path, int attrnamespace, const char * attrname, void * data, size_t nbytes); 675 int __sys_extattr_delete_file(const char * path, int attrnamespace, const char * attrname); 676 ssize_t __sys_aio_waitcomplete(struct aiocb ** aiocbp, struct timespec * timeout); 677 int __sys_getresuid(uid_t * ruid, uid_t * euid, uid_t * suid); 678 int __sys_getresgid(gid_t * rgid, gid_t * egid, gid_t * sgid); 679 int __sys_kqueue(void); 680 ssize_t __sys_extattr_set_fd(int fd, int attrnamespace, const char * attrname, void * data, size_t nbytes); 681 ssize_t __sys_extattr_get_fd(int fd, int attrnamespace, const char * attrname, void * data, size_t nbytes); 682 int __sys_extattr_delete_fd(int fd, int attrnamespace, const char * attrname); 683 int __sys___setugid(int flag); 684 int __sys_eaccess(const char * path, int amode); 685 int __sys_afs3_syscall(long syscall, long parm1, long parm2, long parm3, long parm4, long parm5, long parm6); 686 int __sys_nmount(struct iovec * iovp, unsigned int iovcnt, int flags); 687 int __sys___mac_get_proc(struct mac * mac_p); 688 int __sys___mac_set_proc(struct mac * mac_p); 689 int __sys___mac_get_fd(int fd, struct mac * mac_p); 690 int __sys___mac_get_file(const char * path_p, struct mac * mac_p); 691 int __sys___mac_set_fd(int fd, struct mac * mac_p); 692 int __sys___mac_set_file(const char * path_p, struct mac * mac_p); 693 int __sys_kenv(int what, const char * name, char * value, int len); 694 int __sys_lchflags(const char * path, u_long flags); 695 int __sys_uuidgen(struct uuid * store, int count); 696 int __sys_sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr * hdtr, off_t * sbytes, int flags); 697 int __sys_mac_syscall(const char * policy, int call, void * arg); 698 int __sys_ksem_close(semid_t id); 699 int __sys_ksem_post(semid_t id); 700 int __sys_ksem_wait(semid_t id); 701 int __sys_ksem_trywait(semid_t id); 702 int __sys_ksem_init(semid_t * idp, unsigned int value); 703 int __sys_ksem_open(semid_t * idp, const char * name, int oflag, mode_t mode, unsigned int value); 704 int __sys_ksem_unlink(const char * name); 705 int __sys_ksem_getvalue(semid_t id, int * val); 706 int __sys_ksem_destroy(semid_t id); 707 int __sys___mac_get_pid(pid_t pid, struct mac * mac_p); 708 int __sys___mac_get_link(const char * path_p, struct mac * mac_p); 709 int __sys___mac_set_link(const char * path_p, struct mac * mac_p); 710 ssize_t __sys_extattr_set_link(const char * path, int attrnamespace, const char * attrname, void * data, size_t nbytes); 711 ssize_t __sys_extattr_get_link(const char * path, int attrnamespace, const char * attrname, void * data, size_t nbytes); 712 int __sys_extattr_delete_link(const char * path, int attrnamespace, const char * attrname); 713 int __sys___mac_execve(const char * fname, char ** argv, char ** envv, struct mac * mac_p); 714 int __sys_sigaction(int sig, const struct sigaction * act, struct sigaction * oact); 715 int __sys_sigreturn(const struct __ucontext * sigcntxp); 716 int __sys_getcontext(struct __ucontext * ucp); 717 int __sys_setcontext(const struct __ucontext * ucp); 718 int __sys_swapcontext(struct __ucontext * oucp, const struct __ucontext * ucp); 719 int __sys___acl_get_link(const char * path, __acl_type_t type, struct acl * aclp); 720 int __sys___acl_set_link(const char * path, __acl_type_t type, struct acl * aclp); 721 int __sys___acl_delete_link(const char * path, __acl_type_t type); 722 int __sys___acl_aclcheck_link(const char * path, __acl_type_t type, struct acl * aclp); 723 int __sys_sigwait(const sigset_t * set, int * sig); 724 int __sys_thr_create(ucontext_t * ctx, long * id, int flags); 725 void __sys_thr_exit(long * state); 726 int __sys_thr_self(long * id); 727 int __sys_thr_kill(long id, int sig); 728 int __sys_jail_attach(int jid); 729 ssize_t __sys_extattr_list_fd(int fd, int attrnamespace, void * data, size_t nbytes); 730 ssize_t __sys_extattr_list_file(const char * path, int attrnamespace, void * data, size_t nbytes); 731 ssize_t __sys_extattr_list_link(const char * path, int attrnamespace, void * data, size_t nbytes); 732 int __sys_ksem_timedwait(semid_t id, const struct timespec * abstime); 733 int __sys_thr_suspend(const struct timespec * timeout); 734 int __sys_thr_wake(long id); 735 int __sys_kldunloadf(int fileid, int flags); 736 int __sys_audit(const void * record, u_int length); 737 int __sys_auditon(int cmd, void * data, u_int length); 738 int __sys_getauid(uid_t * auid); 739 int __sys_setauid(uid_t * auid); 740 int __sys_getaudit(struct auditinfo * auditinfo); 741 int __sys_setaudit(struct auditinfo * auditinfo); 742 int __sys_getaudit_addr(struct auditinfo_addr * auditinfo_addr, u_int length); 743 int __sys_setaudit_addr(struct auditinfo_addr * auditinfo_addr, u_int length); 744 int __sys_auditctl(const char * path); 745 int __sys__umtx_op(void * obj, int op, u_long val, void * uaddr1, void * uaddr2); 746 int __sys_thr_new(struct thr_param * param, int param_size); 747 int __sys_sigqueue(pid_t pid, int signum, void * value); 748 int __sys_kmq_open(const char * path, int flags, mode_t mode, const struct mq_attr * attr); 749 int __sys_kmq_setattr(int mqd, const struct mq_attr * attr, struct mq_attr * oattr); 750 int __sys_kmq_timedreceive(int mqd, char * msg_ptr, size_t msg_len, unsigned * msg_prio, const struct timespec * abs_timeout); 751 int __sys_kmq_timedsend(int mqd, const char * msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec * abs_timeout); 752 int __sys_kmq_notify(int mqd, const struct sigevent * sigev); 753 int __sys_kmq_unlink(const char * path); 754 void __sys_abort2(const char * why, int nargs, void ** args); 755 int __sys_thr_set_name(long id, const char * name); 756 int __sys_aio_fsync(int op, struct aiocb * aiocbp); 757 int __sys_rtprio_thread(int function, lwpid_t lwpid, struct rtprio * rtp); 758 int __sys_sctp_peeloff(int sd, uint32_t name); 759 int __sys_sctp_generic_sendmsg(int sd, void * msg, int mlen, const struct sockaddr * to, __socklen_t tolen, struct sctp_sndrcvinfo * sinfo, int flags); 760 int __sys_sctp_generic_sendmsg_iov(int sd, struct iovec * iov, int iovlen, const struct sockaddr * to, __socklen_t tolen, struct sctp_sndrcvinfo * sinfo, int flags); 761 int __sys_sctp_generic_recvmsg(int sd, struct iovec * iov, int iovlen, struct sockaddr * from, __socklen_t * fromlenaddr, struct sctp_sndrcvinfo * sinfo, int * msg_flags); 762 ssize_t __sys_pread(int fd, void * buf, size_t nbyte, off_t offset); 763 ssize_t __sys_pwrite(int fd, const void * buf, size_t nbyte, off_t offset); 764 void * __sys_mmap(void * addr, size_t len, int prot, int flags, int fd, off_t pos); 765 off_t __sys_lseek(int fd, off_t offset, int whence); 766 int __sys_truncate(const char * path, off_t length); 767 int __sys_ftruncate(int fd, off_t length); 768 int __sys_thr_kill2(pid_t pid, long id, int sig); 769 int __sys_shm_unlink(const char * path); 770 int __sys_cpuset(cpusetid_t * setid); 771 int __sys_cpuset_setid(cpuwhich_t which, id_t id, cpusetid_t setid); 772 int __sys_cpuset_getid(cpulevel_t level, cpuwhich_t which, id_t id, cpusetid_t * setid); 773 int __sys_cpuset_getaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, cpuset_t * mask); 774 int __sys_cpuset_setaffinity(cpulevel_t level, cpuwhich_t which, id_t id, size_t cpusetsize, const cpuset_t * mask); 775 int __sys_faccessat(int fd, const char * path, int amode, int flag); 776 int __sys_fchmodat(int fd, const char * path, mode_t mode, int flag); 777 int __sys_fchownat(int fd, const char * path, uid_t uid, gid_t gid, int flag); 778 int __sys_fexecve(int fd, char ** argv, char ** envv); 779 int __sys_futimesat(int fd, const char * path, const struct timeval * times); 780 int __sys_linkat(int fd1, const char * path1, int fd2, const char * path2, int flag); 781 int __sys_mkdirat(int fd, const char * path, mode_t mode); 782 int __sys_mkfifoat(int fd, const char * path, mode_t mode); 783 int __sys_openat(int fd, const char * path, int flag, mode_t mode); 784 ssize_t __sys_readlinkat(int fd, const char * path, char * buf, size_t bufsize); 785 int __sys_renameat(int oldfd, const char * old, int newfd, const char * new); 786 int __sys_symlinkat(const char * path1, int fd, const char * path2); 787 int __sys_unlinkat(int fd, const char * path, int flag); 788 int __sys_posix_openpt(int flags); 789 int __sys_gssd_syscall(const char * path); 790 int __sys_jail_get(struct iovec * iovp, unsigned int iovcnt, int flags); 791 int __sys_jail_set(struct iovec * iovp, unsigned int iovcnt, int flags); 792 int __sys_jail_remove(int jid); 793 int __sys___semctl(int semid, int semnum, int cmd, union semun * arg); 794 int __sys_msgctl(int msqid, int cmd, struct msqid_ds * buf); 795 int __sys_shmctl(int shmid, int cmd, struct shmid_ds * buf); 796 int __sys_lpathconf(const char * path, int name); 797 int __sys___cap_rights_get(int version, int fd, cap_rights_t * rightsp); 798 int __sys_cap_enter(void); 799 int __sys_cap_getmode(u_int * modep); 800 int __sys_pdfork(int * fdp, int flags); 801 int __sys_pdkill(int fd, int signum); 802 int __sys_pdgetpid(int fd, pid_t * pidp); 803 int __sys_pselect(int nd, fd_set * in, fd_set * ou, fd_set * ex, const struct timespec * ts, const sigset_t * sm); 804 int __sys_getloginclass(char * namebuf, size_t namelen); 805 int __sys_setloginclass(const char * namebuf); 806 int __sys_rctl_get_racct(const void * inbufp, size_t inbuflen, void * outbufp, size_t outbuflen); 807 int __sys_rctl_get_rules(const void * inbufp, size_t inbuflen, void * outbufp, size_t outbuflen); 808 int __sys_rctl_get_limits(const void * inbufp, size_t inbuflen, void * outbufp, size_t outbuflen); 809 int __sys_rctl_add_rule(const void * inbufp, size_t inbuflen, void * outbufp, size_t outbuflen); 810 int __sys_rctl_remove_rule(const void * inbufp, size_t inbuflen, void * outbufp, size_t outbuflen); 811 int __sys_posix_fallocate(int fd, off_t offset, off_t len); 812 int __sys_posix_fadvise(int fd, off_t offset, off_t len, int advice); 813 int __sys_wait6(idtype_t idtype, id_t id, int * status, int options, struct __wrusage * wrusage, struct __siginfo * info); 814 int __sys_cap_rights_limit(int fd, cap_rights_t * rightsp); 815 int __sys_cap_ioctls_limit(int fd, const u_long * cmds, size_t ncmds); 816 ssize_t __sys_cap_ioctls_get(int fd, u_long * cmds, size_t maxcmds); 817 int __sys_cap_fcntls_limit(int fd, uint32_t fcntlrights); 818 int __sys_cap_fcntls_get(int fd, uint32_t * fcntlrightsp); 819 int __sys_bindat(int fd, int s, const struct sockaddr * name, __socklen_t namelen); 820 int __sys_connectat(int fd, int s, const struct sockaddr * name, __socklen_t namelen); 821 int __sys_chflagsat(int fd, const char * path, u_long flags, int atflag); 822 int __sys_accept4(int s, struct sockaddr * name, __socklen_t * anamelen, int flags); 823 int __sys_pipe2(int * fildes, int flags); 824 int __sys_aio_mlock(struct aiocb * aiocbp); 825 int __sys_procctl(idtype_t idtype, id_t id, int com, void * data); 826 int __sys_ppoll(struct pollfd * fds, u_int nfds, const struct timespec * ts, const sigset_t * set); 827 int __sys_futimens(int fd, const struct timespec * times); 828 int __sys_utimensat(int fd, const char * path, const struct timespec * times, int flag); 829 int __sys_fdatasync(int fd); 830 int __sys_fstat(int fd, struct stat * sb); 831 int __sys_fstatat(int fd, const char * path, struct stat * buf, int flag); 832 int __sys_fhstat(const struct fhandle * u_fhp, struct stat * sb); 833 ssize_t __sys_getdirentries(int fd, char * buf, size_t count, off_t * basep); 834 int __sys_statfs(const char * path, struct statfs * buf); 835 int __sys_fstatfs(int fd, struct statfs * buf); 836 int __sys_getfsstat(struct statfs * buf, long bufsize, int mode); 837 int __sys_fhstatfs(const struct fhandle * u_fhp, struct statfs * buf); 838 int __sys_mknodat(int fd, const char * path, mode_t mode, dev_t dev); 839 int __sys_kevent(int fd, const struct kevent * changelist, int nchanges, struct kevent * eventlist, int nevents, const struct timespec * timeout); 840 int __sys_cpuset_getdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t * mask, int * policy); 841 int __sys_cpuset_setdomain(cpulevel_t level, cpuwhich_t which, id_t id, size_t domainsetsize, domainset_t * mask, int policy); 842 int __sys_getrandom(void * buf, size_t buflen, unsigned int flags); 843 int __sys_getfhat(int fd, char * path, struct fhandle * fhp, int flags); 844 int __sys_fhlink(struct fhandle * fhp, const char * to); 845 int __sys_fhlinkat(struct fhandle * fhp, int tofd, const char * to); 846 int __sys_fhreadlink(struct fhandle * fhp, char * buf, size_t bufsize); 847 int __sys_funlinkat(int dfd, const char * path, int fd, int flag); 848 ssize_t __sys_copy_file_range(int infd, off_t * inoffp, int outfd, off_t * outoffp, size_t len, unsigned int flags); 849 int __sys___sysctlbyname(const char * name, size_t namelen, void * old, size_t * oldlenp, void * new, size_t newlen); 850 int __sys_shm_open2(const char * path, int flags, mode_t mode, int shmflags, const char * name); 851 int __sys_shm_rename(const char * path_from, const char * path_to, int flags); 852 int __sys_sigfastblock(int cmd, void * ptr); 853 int __sys___realpathat(int fd, const char * path, char * buf, size_t size, int flags); 854 int __sys_close_range(u_int lowfd, u_int highfd, int flags); 855 int __sys_rpctls_syscall(int op, const char * path); 856 int __sys___specialfd(int type, const void * req, size_t len); 857 int __sys_aio_writev(struct aiocb * aiocbp); 858 int __sys_aio_readv(struct aiocb * aiocbp); 859 int __sys_fspacectl(int fd, int cmd, const struct spacectl_range * rqsr, int flags, struct spacectl_range * rmsr); 860 int __sys_sched_getcpu(void); 861 int __sys_swapoff(const char * name, u_int flags); 862 int __sys_kqueuex(u_int flags); 863 int __sys_membarrier(int cmd, unsigned flags, int cpu_id); 864 int __sys_timerfd_create(int clockid, int flags); 865 int __sys_timerfd_gettime(int fd, struct itimerspec * curr_value); 866 int __sys_timerfd_settime(int fd, int flags, const struct itimerspec * new_value, struct itimerspec * old_value); 867 int __sys_kcmp(pid_t pid1, pid_t pid2, int type, uintptr_t idx1, uintptr_t idx2); 868 int __sys_getrlimitusage(u_int which, int flags, rlim_t * res); 869 int __sys_fchroot(int fd); 870 int __sys_setcred(u_int flags, const struct setcred * wcred, size_t size); 871 __END_DECLS 872 873 #endif /* __LIBSYS_H_ */ 874