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