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