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