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