From 653d430df8fe738d1ab58debda8bdb0f246b044b Mon Sep 17 00:00:00 2001 From: Thomas A Date: Fri, 20 May 2022 22:14:13 -0700 Subject: [PATCH] [kernel/libsyscall] Generate bsdsyscalls using xnu-7195.141.2 files --- src/kernel/libsyscall/bsdsyscalls/SYS.h | 525 ++++++++++++++++++ .../_____old_semwait_signal_nocancel.S | 18 + .../bsdsyscalls/_____sigwait_nocancel.S | 18 + .../bsdsyscalls/___abort_with_payload.S | 18 + src/kernel/libsyscall/bsdsyscalls/___accept.S | 38 ++ .../bsdsyscalls/___accept_nocancel.S | 38 ++ .../bsdsyscalls/___access_extended.S | 39 ++ .../bsdsyscalls/___aio_suspend_nocancel.S | 42 ++ src/kernel/libsyscall/bsdsyscalls/___bind.S | 38 ++ .../bsdsyscalls/___bsdthread_create.S | 18 + .../libsyscall/bsdsyscalls/___bsdthread_ctl.S | 18 + .../bsdsyscalls/___bsdthread_register.S | 18 + .../bsdsyscalls/___bsdthread_terminate.S | 19 + src/kernel/libsyscall/bsdsyscalls/___chmod.S | 28 + .../bsdsyscalls/___chmod_extended.S | 18 + .../bsdsyscalls/___close_nocancel.S | 42 ++ .../libsyscall/bsdsyscalls/___coalition.S | 18 + .../bsdsyscalls/___coalition_info.S | 18 + .../bsdsyscalls/___coalition_ledger.S | 18 + .../libsyscall/bsdsyscalls/___connect.S | 38 ++ .../bsdsyscalls/___connect_nocancel.S | 38 ++ .../libsyscall/bsdsyscalls/___copyfile.S | 18 + src/kernel/libsyscall/bsdsyscalls/___csrctl.S | 18 + src/kernel/libsyscall/bsdsyscalls/___delete.S | 18 + .../bsdsyscalls/___disable_threadsignal.S | 18 + src/kernel/libsyscall/bsdsyscalls/___exit.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/___fchmod.S | 28 + .../bsdsyscalls/___fchmod_extended.S | 18 + src/kernel/libsyscall/bsdsyscalls/___fcntl.S | 29 + .../bsdsyscalls/___fcntl_nocancel.S | 33 ++ src/kernel/libsyscall/bsdsyscalls/___fork.S | 177 ++++++ .../libsyscall/bsdsyscalls/___fs_snapshot.S | 18 + .../bsdsyscalls/___fstat64_extended.S | 18 + .../bsdsyscalls/___fstat_extended.S | 18 + .../bsdsyscalls/___fsync_nocancel.S | 42 ++ .../libsyscall/bsdsyscalls/___getattrlist.S | 40 ++ .../bsdsyscalls/___getdirentries64.S | 19 + .../libsyscall/bsdsyscalls/___gethostuuid.S | 18 + .../libsyscall/bsdsyscalls/___getlogin.S | 18 + .../libsyscall/bsdsyscalls/___getpeername.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/___getpid.S | 193 +++++++ .../libsyscall/bsdsyscalls/___getrlimit.S | 28 + .../libsyscall/bsdsyscalls/___getsgroups.S | 38 ++ .../libsyscall/bsdsyscalls/___getsockname.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/___gettid.S | 38 ++ .../libsyscall/bsdsyscalls/___gettimeofday.S | 120 ++++ .../libsyscall/bsdsyscalls/___getwgroups.S | 38 ++ .../___guarded_open_dprotected_np.S | 18 + .../bsdsyscalls/___guarded_open_np.S | 18 + .../libsyscall/bsdsyscalls/___identitysvc.S | 18 + .../libsyscall/bsdsyscalls/___initgroups.S | 18 + src/kernel/libsyscall/bsdsyscalls/___ioctl.S | 29 + .../libsyscall/bsdsyscalls/___iopolicysys.S | 18 + .../libsyscall/bsdsyscalls/___kdebug_trace.S | 22 + .../bsdsyscalls/___kdebug_trace64.S | 18 + .../bsdsyscalls/___kdebug_trace_string.S | 49 ++ .../bsdsyscalls/___kdebug_typefilter.S | 18 + src/kernel/libsyscall/bsdsyscalls/___kill.S | 18 + .../bsdsyscalls/___kqueue_workloop_ctl.S | 19 + src/kernel/libsyscall/bsdsyscalls/___lchown.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/___listen.S | 38 ++ .../libsyscall/bsdsyscalls/___log_data.S | 18 + src/kernel/libsyscall/bsdsyscalls/___lseek.S | 69 +++ .../bsdsyscalls/___lstat64_extended.S | 18 + .../bsdsyscalls/___lstat_extended.S | 18 + .../libsyscall/bsdsyscalls/___mac_execve.S | 38 ++ .../libsyscall/bsdsyscalls/___mac_get_fd.S | 18 + .../libsyscall/bsdsyscalls/___mac_get_file.S | 18 + .../libsyscall/bsdsyscalls/___mac_get_link.S | 18 + .../libsyscall/bsdsyscalls/___mac_get_mount.S | 18 + .../libsyscall/bsdsyscalls/___mac_get_pid.S | 18 + .../libsyscall/bsdsyscalls/___mac_get_proc.S | 18 + .../libsyscall/bsdsyscalls/___mac_getfsstat.S | 18 + .../libsyscall/bsdsyscalls/___mac_mount.S | 38 ++ .../libsyscall/bsdsyscalls/___mac_set_fd.S | 18 + .../libsyscall/bsdsyscalls/___mac_set_file.S | 18 + .../libsyscall/bsdsyscalls/___mac_set_link.S | 18 + .../libsyscall/bsdsyscalls/___mac_set_proc.S | 38 ++ .../libsyscall/bsdsyscalls/___mac_syscall.S | 38 ++ .../bsdsyscalls/___mach_bridge_remote_time.S | 18 + .../bsdsyscalls/___mach_eventlink_signal.S | 18 + .../___mach_eventlink_signal_wait_until.S | 18 + .../___mach_eventlink_wait_until.S | 18 + .../___memorystatus_available_memory.S | 18 + .../bsdsyscalls/___microstackshot.S | 18 + .../bsdsyscalls/___mkdir_extended.S | 18 + .../bsdsyscalls/___mkfifo_extended.S | 18 + src/kernel/libsyscall/bsdsyscalls/___mmap.S | 29 + .../libsyscall/bsdsyscalls/___mprotect.S | 39 ++ src/kernel/libsyscall/bsdsyscalls/___msgctl.S | 38 ++ .../bsdsyscalls/___msgrcv_nocancel.S | 44 ++ .../bsdsyscalls/___msgsnd_nocancel.S | 43 ++ src/kernel/libsyscall/bsdsyscalls/___msgsys.S | 33 ++ src/kernel/libsyscall/bsdsyscalls/___msync.S | 39 ++ .../bsdsyscalls/___msync_nocancel.S | 39 ++ src/kernel/libsyscall/bsdsyscalls/___munmap.S | 19 + .../bsdsyscalls/___old_semwait_signal.S | 18 + src/kernel/libsyscall/bsdsyscalls/___open.S | 30 + .../bsdsyscalls/___open_dprotected_np.S | 18 + .../libsyscall/bsdsyscalls/___open_extended.S | 18 + .../libsyscall/bsdsyscalls/___open_nocancel.S | 28 + src/kernel/libsyscall/bsdsyscalls/___openat.S | 28 + .../bsdsyscalls/___openat_nocancel.S | 28 + .../libsyscall/bsdsyscalls/___persona.S | 18 + src/kernel/libsyscall/bsdsyscalls/___pipe.S | 90 +++ .../libsyscall/bsdsyscalls/___poll_nocancel.S | 42 ++ .../libsyscall/bsdsyscalls/___posix_spawn.S | 18 + .../bsdsyscalls/___pread_nocancel.S | 43 ++ .../bsdsyscalls/___preadv_nocancel.S | 35 ++ .../libsyscall/bsdsyscalls/___proc_info.S | 18 + .../bsdsyscalls/___proc_info_extended_id.S | 18 + .../bsdsyscalls/___process_policy.S | 18 + .../libsyscall/bsdsyscalls/___pselect.S | 18 + .../bsdsyscalls/___pselect_nocancel.S | 18 + .../bsdsyscalls/___psynch_cvbroad.S | 18 + .../bsdsyscalls/___psynch_cvclrprepost.S | 18 + .../bsdsyscalls/___psynch_cvsignal.S | 18 + .../libsyscall/bsdsyscalls/___psynch_cvwait.S | 18 + .../bsdsyscalls/___psynch_mutexdrop.S | 18 + .../bsdsyscalls/___psynch_mutexwait.S | 18 + .../bsdsyscalls/___psynch_rw_downgrade.S | 18 + .../bsdsyscalls/___psynch_rw_longrdlock.S | 18 + .../bsdsyscalls/___psynch_rw_rdlock.S | 18 + .../bsdsyscalls/___psynch_rw_unlock.S | 18 + .../bsdsyscalls/___psynch_rw_unlock2.S | 18 + .../bsdsyscalls/___psynch_rw_upgrade.S | 18 + .../bsdsyscalls/___psynch_rw_wrlock.S | 18 + .../bsdsyscalls/___psynch_rw_yieldwrlock.S | 18 + .../bsdsyscalls/___pthread_canceled.S | 18 + .../libsyscall/bsdsyscalls/___pthread_chdir.S | 18 + .../bsdsyscalls/___pthread_fchdir.S | 18 + .../libsyscall/bsdsyscalls/___pthread_kill.S | 18 + .../bsdsyscalls/___pthread_markcancel.S | 18 + .../bsdsyscalls/___pthread_sigmask.S | 18 + src/kernel/libsyscall/bsdsyscalls/___ptrace.S | 94 ++++ .../bsdsyscalls/___pwrite_nocancel.S | 43 ++ .../bsdsyscalls/___pwritev_nocancel.S | 35 ++ .../libsyscall/bsdsyscalls/___read_nocancel.S | 43 ++ .../bsdsyscalls/___readv_nocancel.S | 42 ++ src/kernel/libsyscall/bsdsyscalls/___reboot.S | 18 + .../libsyscall/bsdsyscalls/___recvfrom.S | 39 ++ .../bsdsyscalls/___recvfrom_nocancel.S | 39 ++ .../libsyscall/bsdsyscalls/___recvmsg.S | 38 ++ .../bsdsyscalls/___recvmsg_nocancel.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/___rename.S | 18 + .../libsyscall/bsdsyscalls/___renameat.S | 18 + .../libsyscall/bsdsyscalls/___renameatx_np.S | 18 + src/kernel/libsyscall/bsdsyscalls/___rmdir.S | 18 + src/kernel/libsyscall/bsdsyscalls/___select.S | 38 ++ .../bsdsyscalls/___select_nocancel.S | 38 ++ .../libsyscall/bsdsyscalls/___sem_open.S | 33 ++ .../bsdsyscalls/___sem_wait_nocancel.S | 42 ++ src/kernel/libsyscall/bsdsyscalls/___semctl.S | 33 ++ src/kernel/libsyscall/bsdsyscalls/___semsys.S | 33 ++ .../bsdsyscalls/___semwait_signal.S | 18 + .../bsdsyscalls/___semwait_signal_nocancel.S | 18 + .../libsyscall/bsdsyscalls/___sendmsg.S | 38 ++ .../bsdsyscalls/___sendmsg_nocancel.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/___sendto.S | 39 ++ .../bsdsyscalls/___sendto_nocancel.S | 39 ++ .../libsyscall/bsdsyscalls/___setattrlist.S | 40 ++ .../libsyscall/bsdsyscalls/___setlogin.S | 18 + .../libsyscall/bsdsyscalls/___setpriority.S | 18 + .../libsyscall/bsdsyscalls/___setregid.S | 38 ++ .../libsyscall/bsdsyscalls/___setreuid.S | 38 ++ .../libsyscall/bsdsyscalls/___setrlimit.S | 28 + .../libsyscall/bsdsyscalls/___setsgroups.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/___settid.S | 38 ++ .../bsdsyscalls/___settid_with_pid.S | 18 + .../libsyscall/bsdsyscalls/___settimeofday.S | 18 + .../libsyscall/bsdsyscalls/___setwgroups.S | 38 ++ .../libsyscall/bsdsyscalls/___sfi_ctl.S | 18 + .../libsyscall/bsdsyscalls/___sfi_pidctl.S | 18 + .../bsdsyscalls/___shared_region_check_np.S | 18 + .../___shared_region_map_and_slide_2_np.S | 18 + .../___shared_region_map_and_slide_np.S | 18 + .../libsyscall/bsdsyscalls/___shm_open.S | 33 ++ src/kernel/libsyscall/bsdsyscalls/___shmctl.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/___shmsys.S | 33 ++ .../libsyscall/bsdsyscalls/___sigaction.S | 18 + .../libsyscall/bsdsyscalls/___sigaltstack.S | 59 ++ .../libsyscall/bsdsyscalls/___sigreturn.S | 49 ++ .../libsyscall/bsdsyscalls/___sigsuspend.S | 18 + .../bsdsyscalls/___sigsuspend_nocancel.S | 18 + .../libsyscall/bsdsyscalls/___sigwait.S | 18 + .../libsyscall/bsdsyscalls/___socketpair.S | 38 ++ .../___stack_snapshot_with_config.S | 19 + .../bsdsyscalls/___stat64_extended.S | 18 + .../libsyscall/bsdsyscalls/___stat_extended.S | 18 + .../libsyscall/bsdsyscalls/___syscall.S | 93 ++++ src/kernel/libsyscall/bsdsyscalls/___sysctl.S | 19 + .../libsyscall/bsdsyscalls/___sysctlbyname.S | 20 + .../libsyscall/bsdsyscalls/___telemetry.S | 18 + .../bsdsyscalls/___terminate_with_payload.S | 18 + .../libsyscall/bsdsyscalls/___thread_selfid.S | 47 ++ .../bsdsyscalls/___thread_selfusage.S | 47 ++ .../libsyscall/bsdsyscalls/___ulock_wait.S | 18 + .../libsyscall/bsdsyscalls/___ulock_wait2.S | 18 + .../libsyscall/bsdsyscalls/___ulock_wake.S | 18 + .../bsdsyscalls/___umask_extended.S | 18 + src/kernel/libsyscall/bsdsyscalls/___unlink.S | 18 + .../libsyscall/bsdsyscalls/___unlinkat.S | 18 + src/kernel/libsyscall/bsdsyscalls/___vfork.S | 279 ++++++++++ src/kernel/libsyscall/bsdsyscalls/___wait4.S | 18 + .../bsdsyscalls/___wait4_nocancel.S | 38 ++ .../bsdsyscalls/___waitid_nocancel.S | 42 ++ .../bsdsyscalls/___work_interval_ctl.S | 19 + .../bsdsyscalls/___workq_kernreturn.S | 18 + .../libsyscall/bsdsyscalls/___workq_open.S | 18 + .../bsdsyscalls/___write_nocancel.S | 43 ++ .../bsdsyscalls/___writev_nocancel.S | 42 ++ src/kernel/libsyscall/bsdsyscalls/_access.S | 18 + src/kernel/libsyscall/bsdsyscalls/_acct.S | 18 + src/kernel/libsyscall/bsdsyscalls/_adjtime.S | 18 + .../libsyscall/bsdsyscalls/_aio_cancel.S | 18 + .../libsyscall/bsdsyscalls/_aio_error.S | 18 + .../libsyscall/bsdsyscalls/_aio_fsync.S | 18 + src/kernel/libsyscall/bsdsyscalls/_aio_read.S | 18 + .../libsyscall/bsdsyscalls/_aio_return.S | 18 + .../libsyscall/bsdsyscalls/_aio_suspend.S | 30 + .../libsyscall/bsdsyscalls/_aio_write.S | 18 + src/kernel/libsyscall/bsdsyscalls/_audit.S | 18 + .../bsdsyscalls/_audit_session_join.S | 18 + .../bsdsyscalls/_audit_session_port.S | 18 + .../bsdsyscalls/_audit_session_self.S | 18 + src/kernel/libsyscall/bsdsyscalls/_auditctl.S | 18 + src/kernel/libsyscall/bsdsyscalls/_auditon.S | 18 + .../bsdsyscalls/_change_fdguard_np.S | 18 + src/kernel/libsyscall/bsdsyscalls/_chdir.S | 18 + src/kernel/libsyscall/bsdsyscalls/_chflags.S | 18 + src/kernel/libsyscall/bsdsyscalls/_chown.S | 18 + src/kernel/libsyscall/bsdsyscalls/_chroot.S | 18 + .../libsyscall/bsdsyscalls/_clonefileat.S | 18 + src/kernel/libsyscall/bsdsyscalls/_close.S | 30 + src/kernel/libsyscall/bsdsyscalls/_connectx.S | 18 + src/kernel/libsyscall/bsdsyscalls/_csops.S | 19 + .../bsdsyscalls/_csops_audittoken.S | 19 + .../libsyscall/bsdsyscalls/_disconnectx.S | 18 + src/kernel/libsyscall/bsdsyscalls/_dup.S | 18 + src/kernel/libsyscall/bsdsyscalls/_dup2.S | 18 + .../libsyscall/bsdsyscalls/_exchangedata.S | 19 + src/kernel/libsyscall/bsdsyscalls/_execve.S | 18 + .../libsyscall/bsdsyscalls/_faccessat.S | 18 + src/kernel/libsyscall/bsdsyscalls/_fchdir.S | 18 + src/kernel/libsyscall/bsdsyscalls/_fchflags.S | 18 + src/kernel/libsyscall/bsdsyscalls/_fchmodat.S | 18 + src/kernel/libsyscall/bsdsyscalls/_fchown.S | 18 + src/kernel/libsyscall/bsdsyscalls/_fchownat.S | 18 + .../libsyscall/bsdsyscalls/_fclonefileat.S | 18 + .../libsyscall/bsdsyscalls/_fdatasync.S | 18 + src/kernel/libsyscall/bsdsyscalls/_ffsctl.S | 19 + .../libsyscall/bsdsyscalls/_fgetattrlist.S | 20 + .../libsyscall/bsdsyscalls/_fgetxattr.S | 19 + src/kernel/libsyscall/bsdsyscalls/_fhopen.S | 18 + .../libsyscall/bsdsyscalls/_fileport_makefd.S | 18 + .../bsdsyscalls/_fileport_makeport.S | 18 + .../libsyscall/bsdsyscalls/_flistxattr.S | 19 + src/kernel/libsyscall/bsdsyscalls/_flock.S | 18 + src/kernel/libsyscall/bsdsyscalls/_fmount.S | 18 + .../libsyscall/bsdsyscalls/_fpathconf.S | 18 + .../libsyscall/bsdsyscalls/_fremovexattr.S | 18 + src/kernel/libsyscall/bsdsyscalls/_fsctl.S | 19 + .../libsyscall/bsdsyscalls/_fsetattrlist.S | 20 + .../libsyscall/bsdsyscalls/_fsetxattr.S | 19 + .../libsyscall/bsdsyscalls/_fsgetpath.S | 19 + .../libsyscall/bsdsyscalls/_fsgetpath_ext.S | 19 + src/kernel/libsyscall/bsdsyscalls/_fstat.S | 13 + src/kernel/libsyscall/bsdsyscalls/_fstat64.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/_fstatat.S | 13 + .../libsyscall/bsdsyscalls/_fstatat64.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/_fstatfs.S | 13 + .../libsyscall/bsdsyscalls/_fstatfs64.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/_fsync.S | 30 + .../libsyscall/bsdsyscalls/_ftruncate.S | 18 + src/kernel/libsyscall/bsdsyscalls/_futimes.S | 18 + .../libsyscall/bsdsyscalls/_getattrlistat.S | 20 + .../libsyscall/bsdsyscalls/_getattrlistbulk.S | 19 + .../libsyscall/bsdsyscalls/_getaudit_addr.S | 18 + src/kernel/libsyscall/bsdsyscalls/_getauid.S | 18 + .../libsyscall/bsdsyscalls/_getdirentries.S | 18 + .../bsdsyscalls/_getdirentriesattr.S | 20 + .../libsyscall/bsdsyscalls/_getdtablesize.S | 18 + src/kernel/libsyscall/bsdsyscalls/_getegid.S | 18 + .../libsyscall/bsdsyscalls/_getentropy.S | 19 + src/kernel/libsyscall/bsdsyscalls/_geteuid.S | 18 + src/kernel/libsyscall/bsdsyscalls/_getfh.S | 18 + .../libsyscall/bsdsyscalls/_getfsstat.S | 13 + .../libsyscall/bsdsyscalls/_getfsstat64.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/_getgid.S | 18 + .../libsyscall/bsdsyscalls/_getgroups.S | 18 + .../libsyscall/bsdsyscalls/_getitimer.S | 18 + src/kernel/libsyscall/bsdsyscalls/_getpgid.S | 18 + src/kernel/libsyscall/bsdsyscalls/_getpgrp.S | 18 + src/kernel/libsyscall/bsdsyscalls/_getppid.S | 18 + .../libsyscall/bsdsyscalls/_getpriority.S | 18 + .../libsyscall/bsdsyscalls/_getrusage.S | 18 + src/kernel/libsyscall/bsdsyscalls/_getsid.S | 18 + .../libsyscall/bsdsyscalls/_getsockopt.S | 18 + src/kernel/libsyscall/bsdsyscalls/_getuid.S | 18 + src/kernel/libsyscall/bsdsyscalls/_getxattr.S | 19 + .../libsyscall/bsdsyscalls/_grab_pgo_data.S | 19 + .../bsdsyscalls/_guarded_close_np.S | 18 + .../bsdsyscalls/_guarded_kqueue_np.S | 18 + .../bsdsyscalls/_guarded_pwrite_np.S | 19 + .../bsdsyscalls/_guarded_write_np.S | 19 + .../bsdsyscalls/_guarded_writev_np.S | 18 + .../libsyscall/bsdsyscalls/_issetugid.S | 18 + src/kernel/libsyscall/bsdsyscalls/_kas_info.S | 18 + src/kernel/libsyscall/bsdsyscalls/_kevent.S | 18 + src/kernel/libsyscall/bsdsyscalls/_kevent64.S | 18 + .../libsyscall/bsdsyscalls/_kevent_id.S | 18 + .../libsyscall/bsdsyscalls/_kevent_qos.S | 18 + src/kernel/libsyscall/bsdsyscalls/_kqueue.S | 18 + src/kernel/libsyscall/bsdsyscalls/_ledger.S | 18 + src/kernel/libsyscall/bsdsyscalls/_link.S | 18 + src/kernel/libsyscall/bsdsyscalls/_linkat.S | 18 + .../libsyscall/bsdsyscalls/_lio_listio.S | 18 + .../libsyscall/bsdsyscalls/_listxattr.S | 19 + src/kernel/libsyscall/bsdsyscalls/_lstat.S | 13 + src/kernel/libsyscall/bsdsyscalls/_lstat64.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/_madvise.S | 39 ++ .../bsdsyscalls/_memorystatus_control.S | 19 + .../bsdsyscalls/_memorystatus_get_level.S | 18 + src/kernel/libsyscall/bsdsyscalls/_mincore.S | 19 + src/kernel/libsyscall/bsdsyscalls/_minherit.S | 19 + src/kernel/libsyscall/bsdsyscalls/_mkdir.S | 18 + src/kernel/libsyscall/bsdsyscalls/_mkdirat.S | 18 + src/kernel/libsyscall/bsdsyscalls/_mkfifo.S | 18 + src/kernel/libsyscall/bsdsyscalls/_mknod.S | 18 + src/kernel/libsyscall/bsdsyscalls/_mlock.S | 19 + src/kernel/libsyscall/bsdsyscalls/_mlockall.S | 18 + src/kernel/libsyscall/bsdsyscalls/_mount.S | 18 + .../bsdsyscalls/_mremap_encrypted.S | 19 + src/kernel/libsyscall/bsdsyscalls/_msgget.S | 18 + src/kernel/libsyscall/bsdsyscalls/_msgrcv.S | 32 ++ src/kernel/libsyscall/bsdsyscalls/_msgsnd.S | 31 ++ src/kernel/libsyscall/bsdsyscalls/_munlock.S | 19 + .../libsyscall/bsdsyscalls/_munlockall.S | 18 + .../bsdsyscalls/_necp_client_action.S | 20 + .../bsdsyscalls/_necp_match_policy.S | 19 + .../libsyscall/bsdsyscalls/_necp_open.S | 18 + .../bsdsyscalls/_necp_session_action.S | 20 + .../bsdsyscalls/_necp_session_open.S | 18 + .../bsdsyscalls/_net_qos_guideline.S | 18 + .../bsdsyscalls/_netagent_trigger.S | 19 + src/kernel/libsyscall/bsdsyscalls/_nfsclnt.S | 18 + src/kernel/libsyscall/bsdsyscalls/_nfssvc.S | 18 + .../libsyscall/bsdsyscalls/_ntp_adjtime.S | 18 + .../libsyscall/bsdsyscalls/_ntp_gettime.S | 18 + .../libsyscall/bsdsyscalls/_openbyid_np.S | 18 + .../bsdsyscalls/_os_fault_with_payload.S | 18 + src/kernel/libsyscall/bsdsyscalls/_pathconf.S | 18 + src/kernel/libsyscall/bsdsyscalls/_peeloff.S | 18 + .../libsyscall/bsdsyscalls/_pid_hibernate.S | 18 + .../libsyscall/bsdsyscalls/_pid_resume.S | 18 + .../bsdsyscalls/_pid_shutdown_sockets.S | 18 + .../libsyscall/bsdsyscalls/_pid_suspend.S | 18 + .../libsyscall/bsdsyscalls/_pivot_root.S | 18 + src/kernel/libsyscall/bsdsyscalls/_poll.S | 30 + src/kernel/libsyscall/bsdsyscalls/_pread.S | 31 ++ src/kernel/libsyscall/bsdsyscalls/_preadv.S | 20 + .../bsdsyscalls/_proc_rlimit_control.S | 18 + .../libsyscall/bsdsyscalls/_proc_trace_log.S | 18 + .../bsdsyscalls/_proc_uuid_policy.S | 19 + src/kernel/libsyscall/bsdsyscalls/_pwrite.S | 31 ++ src/kernel/libsyscall/bsdsyscalls/_pwritev.S | 20 + src/kernel/libsyscall/bsdsyscalls/_quotactl.S | 18 + src/kernel/libsyscall/bsdsyscalls/_read.S | 31 ++ src/kernel/libsyscall/bsdsyscalls/_readlink.S | 18 + .../libsyscall/bsdsyscalls/_readlinkat.S | 19 + src/kernel/libsyscall/bsdsyscalls/_readv.S | 30 + .../libsyscall/bsdsyscalls/_recvmsg_x.S | 18 + .../libsyscall/bsdsyscalls/_removexattr.S | 18 + src/kernel/libsyscall/bsdsyscalls/_revoke.S | 18 + src/kernel/libsyscall/bsdsyscalls/_searchfs.S | 18 + .../libsyscall/bsdsyscalls/_sem_close.S | 18 + src/kernel/libsyscall/bsdsyscalls/_sem_post.S | 18 + .../libsyscall/bsdsyscalls/_sem_trywait.S | 18 + .../libsyscall/bsdsyscalls/_sem_unlink.S | 18 + src/kernel/libsyscall/bsdsyscalls/_sem_wait.S | 30 + src/kernel/libsyscall/bsdsyscalls/_semget.S | 18 + src/kernel/libsyscall/bsdsyscalls/_semop.S | 18 + src/kernel/libsyscall/bsdsyscalls/_sendfile.S | 18 + .../libsyscall/bsdsyscalls/_sendmsg_x.S | 18 + .../libsyscall/bsdsyscalls/_setattrlistat.S | 19 + .../libsyscall/bsdsyscalls/_setaudit_addr.S | 18 + src/kernel/libsyscall/bsdsyscalls/_setauid.S | 18 + src/kernel/libsyscall/bsdsyscalls/_setegid.S | 18 + src/kernel/libsyscall/bsdsyscalls/_seteuid.S | 18 + src/kernel/libsyscall/bsdsyscalls/_setgid.S | 18 + .../libsyscall/bsdsyscalls/_setgroups.S | 18 + .../libsyscall/bsdsyscalls/_setitimer.S | 18 + src/kernel/libsyscall/bsdsyscalls/_setpgid.S | 28 + .../libsyscall/bsdsyscalls/_setprivexec.S | 18 + src/kernel/libsyscall/bsdsyscalls/_setsid.S | 18 + .../libsyscall/bsdsyscalls/_setsockopt.S | 18 + src/kernel/libsyscall/bsdsyscalls/_setuid.S | 18 + src/kernel/libsyscall/bsdsyscalls/_setxattr.S | 19 + .../libsyscall/bsdsyscalls/_shm_unlink.S | 18 + src/kernel/libsyscall/bsdsyscalls/_shmat.S | 18 + src/kernel/libsyscall/bsdsyscalls/_shmdt.S | 18 + src/kernel/libsyscall/bsdsyscalls/_shmget.S | 19 + src/kernel/libsyscall/bsdsyscalls/_shutdown.S | 18 + .../libsyscall/bsdsyscalls/_sigpending.S | 18 + .../libsyscall/bsdsyscalls/_sigprocmask.S | 18 + src/kernel/libsyscall/bsdsyscalls/_socket.S | 18 + .../libsyscall/bsdsyscalls/_socket_delegate.S | 18 + src/kernel/libsyscall/bsdsyscalls/_stat.S | 13 + src/kernel/libsyscall/bsdsyscalls/_stat64.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/_statfs.S | 13 + src/kernel/libsyscall/bsdsyscalls/_statfs64.S | 38 ++ src/kernel/libsyscall/bsdsyscalls/_swapon.S | 18 + src/kernel/libsyscall/bsdsyscalls/_symlink.S | 18 + .../libsyscall/bsdsyscalls/_symlinkat.S | 18 + src/kernel/libsyscall/bsdsyscalls/_sync.S | 18 + .../libsyscall/bsdsyscalls/_system_override.S | 18 + .../bsdsyscalls/_task_inspect_for_pid.S | 18 + .../bsdsyscalls/_task_read_for_pid.S | 18 + .../bsdsyscalls/_thread_selfcounts.S | 19 + src/kernel/libsyscall/bsdsyscalls/_truncate.S | 18 + src/kernel/libsyscall/bsdsyscalls/_umask.S | 18 + src/kernel/libsyscall/bsdsyscalls/_undelete.S | 18 + src/kernel/libsyscall/bsdsyscalls/_unmount.S | 18 + src/kernel/libsyscall/bsdsyscalls/_usrctl.S | 18 + src/kernel/libsyscall/bsdsyscalls/_utimes.S | 18 + .../libsyscall/bsdsyscalls/_vfs_purge.S | 18 + .../bsdsyscalls/_vm_pressure_monitor.S | 18 + src/kernel/libsyscall/bsdsyscalls/_waitid.S | 30 + src/kernel/libsyscall/bsdsyscalls/_write.S | 31 ++ src/kernel/libsyscall/bsdsyscalls/_writev.S | 30 + src/kernel/libsyscall/bsdsyscalls/custom.S | 149 +++++ src/kernel/libsyscall/bsdsyscalls/stubs.list | 430 ++++++++++++++ 432 files changed, 11778 insertions(+) create mode 100644 src/kernel/libsyscall/bsdsyscalls/SYS.h create mode 100644 src/kernel/libsyscall/bsdsyscalls/_____old_semwait_signal_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_____sigwait_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___abort_with_payload.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___accept.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___accept_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___access_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___aio_suspend_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___bind.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___bsdthread_create.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___bsdthread_ctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___bsdthread_register.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___bsdthread_terminate.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___chmod.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___chmod_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___close_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___coalition.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___coalition_info.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___coalition_ledger.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___connect.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___connect_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___copyfile.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___csrctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___delete.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___disable_threadsignal.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___exit.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___fchmod.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___fchmod_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___fcntl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___fcntl_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___fork.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___fs_snapshot.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___fstat64_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___fstat_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___fsync_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___getattrlist.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___getdirentries64.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___gethostuuid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___getlogin.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___getpeername.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___getpid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___getrlimit.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___getsgroups.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___getsockname.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___gettid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___gettimeofday.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___getwgroups.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___guarded_open_dprotected_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___guarded_open_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___identitysvc.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___initgroups.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___ioctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___iopolicysys.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___kdebug_trace.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___kdebug_trace64.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___kdebug_trace_string.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___kdebug_typefilter.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___kill.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___kqueue_workloop_ctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___lchown.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___listen.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___log_data.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___lseek.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___lstat64_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___lstat_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_execve.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_get_fd.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_get_file.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_get_link.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_get_mount.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_get_pid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_get_proc.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_getfsstat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_mount.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_set_fd.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_set_file.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_set_link.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_set_proc.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mac_syscall.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mach_bridge_remote_time.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_signal.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_signal_wait_until.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_wait_until.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___memorystatus_available_memory.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___microstackshot.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mkdir_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mkfifo_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mmap.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___mprotect.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___msgctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___msgrcv_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___msgsnd_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___msgsys.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___msync.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___msync_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___munmap.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___old_semwait_signal.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___open.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___open_dprotected_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___open_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___open_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___openat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___openat_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___persona.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pipe.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___poll_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___posix_spawn.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pread_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___preadv_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___proc_info.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___proc_info_extended_id.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___process_policy.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pselect.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pselect_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_cvbroad.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_cvclrprepost.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_cvsignal.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_cvwait.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_mutexdrop.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_mutexwait.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_rw_downgrade.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_rw_longrdlock.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_rw_rdlock.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock2.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_rw_upgrade.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_rw_wrlock.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___psynch_rw_yieldwrlock.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pthread_canceled.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pthread_chdir.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pthread_fchdir.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pthread_kill.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pthread_markcancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pthread_sigmask.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___ptrace.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pwrite_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___pwritev_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___read_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___readv_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___reboot.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___recvfrom.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___recvfrom_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___recvmsg.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___recvmsg_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___rename.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___renameat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___renameatx_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___rmdir.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___select.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___select_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sem_open.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sem_wait_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___semctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___semsys.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___semwait_signal.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___semwait_signal_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sendmsg.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sendmsg_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sendto.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sendto_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___setattrlist.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___setlogin.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___setpriority.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___setregid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___setreuid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___setrlimit.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___setsgroups.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___settid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___settid_with_pid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___settimeofday.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___setwgroups.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sfi_ctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sfi_pidctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___shared_region_check_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_2_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___shm_open.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___shmctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___shmsys.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sigaction.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sigaltstack.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sigreturn.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sigsuspend.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sigsuspend_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sigwait.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___socketpair.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___stack_snapshot_with_config.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___stat64_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___stat_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___syscall.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sysctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___sysctlbyname.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___telemetry.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___terminate_with_payload.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___thread_selfid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___thread_selfusage.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___ulock_wait.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___ulock_wait2.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___ulock_wake.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___umask_extended.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___unlink.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___unlinkat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___vfork.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___wait4.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___wait4_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___waitid_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___work_interval_ctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___workq_kernreturn.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___workq_open.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___write_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/___writev_nocancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_access.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_acct.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_adjtime.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_aio_cancel.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_aio_error.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_aio_fsync.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_aio_read.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_aio_return.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_aio_suspend.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_aio_write.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_audit.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_audit_session_join.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_audit_session_port.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_audit_session_self.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_auditctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_auditon.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_change_fdguard_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_chdir.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_chflags.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_chown.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_chroot.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_clonefileat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_close.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_connectx.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_csops.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_csops_audittoken.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_disconnectx.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_dup.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_dup2.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_exchangedata.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_execve.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_faccessat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fchdir.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fchflags.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fchmodat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fchown.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fchownat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fclonefileat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fdatasync.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_ffsctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fgetattrlist.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fgetxattr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fhopen.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fileport_makefd.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fileport_makeport.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_flistxattr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_flock.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fmount.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fpathconf.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fremovexattr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fsctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fsetattrlist.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fsetxattr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fsgetpath.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fsgetpath_ext.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fstat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fstat64.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fstatat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fstatat64.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fstatfs.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fstatfs64.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_fsync.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_ftruncate.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_futimes.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getattrlistat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getattrlistbulk.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getaudit_addr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getauid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getdirentries.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getdirentriesattr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getdtablesize.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getegid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getentropy.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_geteuid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getfh.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getfsstat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getfsstat64.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getgid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getgroups.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getitimer.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getpgid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getpgrp.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getppid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getpriority.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getrusage.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getsid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getsockopt.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getuid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_getxattr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_grab_pgo_data.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_guarded_close_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_guarded_kqueue_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_guarded_pwrite_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_guarded_write_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_guarded_writev_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_issetugid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_kas_info.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_kevent.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_kevent64.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_kevent_id.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_kevent_qos.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_kqueue.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_ledger.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_link.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_linkat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_lio_listio.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_listxattr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_lstat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_lstat64.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_madvise.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_memorystatus_control.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_memorystatus_get_level.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_mincore.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_minherit.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_mkdir.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_mkdirat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_mkfifo.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_mknod.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_mlock.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_mlockall.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_mount.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_mremap_encrypted.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_msgget.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_msgrcv.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_msgsnd.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_munlock.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_munlockall.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_necp_client_action.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_necp_match_policy.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_necp_open.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_necp_session_action.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_necp_session_open.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_net_qos_guideline.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_netagent_trigger.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_nfsclnt.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_nfssvc.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_ntp_adjtime.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_ntp_gettime.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_openbyid_np.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_os_fault_with_payload.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_pathconf.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_peeloff.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_pid_hibernate.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_pid_resume.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_pid_shutdown_sockets.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_pid_suspend.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_pivot_root.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_poll.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_pread.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_preadv.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_proc_rlimit_control.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_proc_trace_log.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_proc_uuid_policy.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_pwrite.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_pwritev.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_quotactl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_read.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_readlink.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_readlinkat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_readv.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_recvmsg_x.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_removexattr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_revoke.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_searchfs.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_sem_close.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_sem_post.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_sem_trywait.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_sem_unlink.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_sem_wait.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_semget.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_semop.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_sendfile.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_sendmsg_x.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setattrlistat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setaudit_addr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setauid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setegid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_seteuid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setgid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setgroups.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setitimer.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setpgid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setprivexec.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setsid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setsockopt.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setuid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_setxattr.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_shm_unlink.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_shmat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_shmdt.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_shmget.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_shutdown.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_sigpending.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_sigprocmask.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_socket.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_socket_delegate.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_stat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_stat64.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_statfs.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_statfs64.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_swapon.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_symlink.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_symlinkat.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_sync.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_system_override.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_task_inspect_for_pid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_task_read_for_pid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_thread_selfcounts.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_truncate.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_umask.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_undelete.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_unmount.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_usrctl.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_utimes.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_vfs_purge.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_vm_pressure_monitor.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_waitid.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_write.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/_writev.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/custom.S create mode 100644 src/kernel/libsyscall/bsdsyscalls/stubs.list diff --git a/src/kernel/libsyscall/bsdsyscalls/SYS.h b/src/kernel/libsyscall/bsdsyscalls/SYS.h new file mode 100644 index 000000000..1367abd56 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/SYS.h @@ -0,0 +1,525 @@ +/* + * Copyright (c) 1999-2011 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ +/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. + * + * File: SYS.h + * + * Definition of the user side of the UNIX system call interface + * for M98K. + * + * Errors are flagged by the location of the trap return (ie., which + * instruction is executed upon rfi): + * + * SC PC + 4: Error (typically branch to cerror()) + * SC PC + 8: Success + * + * HISTORY + * 18-Nov-92 Ben Fathi (benf@next.com) + * Ported to m98k. + * + * 9-Jan-92 Peter King (king@next.com) + * Created. + */ + +#include + +#if defined(__i386__) + +#include +#include + +/* + * We have two entry points. int's is used for syscalls which need to preserve + * %ecx across the call, or return a 64-bit value in %eax:%edx. sysenter is used + * for the majority of syscalls which just return a value in %eax. + */ + +#ifdef DARLING + #define UNIX_SYSCALL_SYSENTER call __darling_bsd_syscall +#else + #define UNIX_SYSCALL_SYSENTER call __sysenter_trap +#endif +#define UNIX_SYSCALL(name, nargs) \ + .globl tramp_cerror ;\ +LEAF(_##name, 0) ;\ + movl $ SYS_##name, %eax ;\ + UNIX_SYSCALL_SYSENTER ;\ + jnb 2f ;\ + BRANCH_EXTERN(tramp_cerror) ;\ +2: + +#define UNIX_SYSCALL_INT(name, nargs) \ + .globl tramp_cerror ;\ +LEAF(_##name, 0) ;\ + movl $ SYS_##name, %eax ;\ + UNIX_SYSCALL_TRAP ;\ + jnb 2f ;\ + BRANCH_EXTERN(tramp_cerror) ;\ +2: + +#if defined(__SYSCALL_32BIT_ARG_BYTES) && ((__SYSCALL_32BIT_ARG_BYTES >= 4) && (__SYSCALL_32BIT_ARG_BYTES <= 20)) +#define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ + movl $(SYS_##name | (__SYSCALL_32BIT_ARG_BYTES << I386_SYSCALL_ARG_BYTES_SHIFT)), %eax ;\ + UNIX_SYSCALL_SYSENTER ;\ + jnb 2f ;\ + BRANCH_EXTERN(tramp_##cerror) ;\ +2: +#else /* __SYSCALL_32BIT_ARG_BYTES < 4 || > 20 */ +#define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ + movl $ SYS_##name, %eax ;\ + UNIX_SYSCALL_SYSENTER ;\ + jnb 2f ;\ + BRANCH_EXTERN(tramp_##cerror) ;\ +2: +#endif + +#define UNIX_SYSCALL_INT_NONAME(name, nargs) \ + .globl tramp_cerror_nocancel ;\ + movl $ SYS_##name, %eax ;\ + UNIX_SYSCALL_TRAP ;\ + jnb 2f ;\ + BRANCH_EXTERN(tramp_cerror_nocancel) ;\ +2: + +#define PSEUDO(pseudo, name, nargs, cerror) \ +LEAF(pseudo, 0) ;\ + UNIX_SYSCALL_NONAME(name, nargs, cerror) + +#define PSEUDO_INT(pseudo, name, nargs) \ +LEAF(pseudo, 0) ;\ + UNIX_SYSCALL_INT_NONAME(name, nargs) + +#define __SYSCALL2(pseudo, name, nargs, cerror) \ + PSEUDO(pseudo, name, nargs, cerror) ;\ + ret + +#define __SYSCALL(pseudo, name, nargs) \ + PSEUDO(pseudo, name, nargs, cerror) ;\ + ret + +#define __SYSCALL_INT(pseudo, name, nargs) \ + PSEUDO_INT(pseudo, name, nargs) ;\ + ret + +#elif defined(__x86_64__) + +#include +#include + +#ifdef DARLING + #define UNIX_SYSCALL(name, nargs) \ + .globl cerror ;\ + LEAF(_#name, 0) ;\ + movl $ SYS_##name, %eax ;\ + call __darling_bsd_syscall ;\ + cmpq $-4095, %rax ;\ + jb 2f ;\ + movq %rax, %rdi ;\ + negq %rdi ;\ + BRANCH_EXTERN(_cerror) ;\ + 2: + + #define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ + .globl cerror ;\ + movl $ SYS_##name, %eax ;\ + call __darling_bsd_syscall ;\ + cmpq $-4095, %rax ;\ + jb 2f ;\ + movq %rax, %rdi ;\ + negq %rdi ;\ + BRANCH_EXTERN(_##cerror) ;\ + 2: +#else +#define UNIX_SYSCALL_SYSCALL \ + movq %rcx, %r10 ;\ + syscall + +#define UNIX_SYSCALL(name, nargs) \ + .globl cerror ;\ +LEAF(_##name, 0) ;\ + movl $ SYSCALL_CONSTRUCT_UNIX(SYS_##name), %eax ;\ + UNIX_SYSCALL_SYSCALL ;\ + jnb 2f ;\ + movq %rax, %rdi ;\ + BRANCH_EXTERN(_cerror) ;\ +2: + +#define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ + .globl cerror ;\ + movl $ SYSCALL_CONSTRUCT_UNIX(SYS_##name), %eax ;\ + UNIX_SYSCALL_SYSCALL ;\ + jnb 2f ;\ + movq %rax, %rdi ;\ + BRANCH_EXTERN(_##cerror) ;\ +2: +#endif + +#define PSEUDO(pseudo, name, nargs, cerror) \ +LEAF(pseudo, 0) ;\ + UNIX_SYSCALL_NONAME(name, nargs, cerror) + +#define __SYSCALL2(pseudo, name, nargs, cerror) \ + PSEUDO(pseudo, name, nargs, cerror) ;\ + ret + +#define __SYSCALL(pseudo, name, nargs) \ + PSEUDO(pseudo, name, nargs, cerror) ;\ + ret + +#elif defined(__arm__) + +#include +#include + +/* + * ARM system call interface: + * + * swi 0x80 + * args: r0-r6 + * return code: r0 + * on error, carry bit is set in the psr, otherwise carry bit is cleared. + */ + +/* + * Macros. + */ + +/* + * until we update the architecture project, these live here + */ + +#if defined(__DYNAMIC__) +#define MI_GET_ADDRESS(reg,var) \ + ldr reg, 4f ;\ +3: ldr reg, [pc, reg] ;\ + b 5f ;\ +4: .long 6f - (3b + 8) ;\ +5: ;\ + .non_lazy_symbol_pointer ;\ +6: ;\ + .indirect_symbol var ;\ + .long 0 ;\ + .text ;\ + .align 2 +#else +#define MI_GET_ADDRESS(reg,var) \ + ldr reg, 3f ;\ + b 4f ;\ +3: .long var ;\ +4: +#endif + +#if defined(__DYNAMIC__) +#define MI_BRANCH_EXTERNAL(var) \ + .globl var ;\ + MI_GET_ADDRESS(ip, var) ;\ + bx ip +#else +#define MI_BRANCH_EXTERNAL(var) ;\ + .globl var ;\ + b var +#endif + +#if defined(__DYNAMIC__) +#define MI_CALL_EXTERNAL(var) \ + .globl var ;\ + MI_GET_ADDRESS(ip,var) ;\ + blx ip +#else +#define MI_CALL_EXTERNAL(var) \ + .globl var ;\ + bl var +#endif + +#define MI_ENTRY_POINT(name) \ + .text ;\ + .align 2 ;\ + .globl name ;\ +name: + +/* load the syscall number into r12 and trap */ +#define DO_SYSCALL(num) \ + .if (((num) & 0xff) == (num)) ;\ + mov r12, #(num) ;\ + .elseif (((num) & 0x3fc) == (num)) ;\ + mov r12, #(num) ;\ + .else ;\ + mov r12, #((num) & 0xffffff00) /* top half of the syscall number */ ;\ + orr r12, r12, #((num) & 0xff) /* bottom half */ ;\ + .endif ;\ + swi #SWI_SYSCALL + +/* simple syscalls (0 to 4 args) */ +#define SYSCALL_0to4(name, cerror) \ + MI_ENTRY_POINT(_##name) ;\ + DO_SYSCALL(SYS_##name) ;\ + bxcc lr /* return if carry is clear (no error) */ ; \ +1: MI_BRANCH_EXTERNAL(_##cerror) + +/* syscalls with 5 args is different, because of the single arg register load */ +#define SYSCALL_5(name, cerror) \ + MI_ENTRY_POINT(_##name) ;\ + mov ip, sp /* save a pointer to the args */ ; \ + stmfd sp!, { r4-r5 } /* save r4-r5 */ ;\ + ldr r4, [ip] /* load 5th arg */ ; \ + DO_SYSCALL(SYS_##name) ;\ + ldmfd sp!, { r4-r5 } /* restore r4-r5 */ ; \ + bxcc lr /* return if carry is clear (no error) */ ; \ +1: MI_BRANCH_EXTERNAL(_##cerror) + +/* syscalls with 6 to 12 args. kernel may have to read from stack */ +#define SYSCALL_6to12(name, save_regs, arg_regs, cerror) \ + MI_ENTRY_POINT(_##name) ;\ + mov ip, sp /* save a pointer to the args */ ; \ + stmfd sp!, { save_regs } /* callee saved regs */ ;\ + ldmia ip, { arg_regs } /* load arg regs */ ; \ + DO_SYSCALL(SYS_##name) ;\ + ldmfd sp!, { save_regs } /* restore callee saved regs */ ; \ + bxcc lr /* return if carry is clear (no error) */ ; \ +1: MI_BRANCH_EXTERNAL(_##cerror) + +#define COMMA , + +#if __BIGGEST_ALIGNMENT__ > 4 + +/* For the armv7k ABI, the alignment requirements may add padding. So we + * let the kernel figure it out and push extra on the stack to avoid un-needed + * copy-ins */ + + /* We'll also use r8 for moving arguments */ + +#define SYSCALL_0(name) SYSCALL_0to4(name) +#define SYSCALL_1(name) SYSCALL_0to4(name) +#define SYSCALL_2(name) SYSCALL_0to4(name) +#define SYSCALL_3(name) SYSCALL_0to4(name) +#define SYSCALL_4(name) SYSCALL_6to12(name, r4-r5, r4-r5) +#undef SYSCALL_5 +#define SYSCALL_5(name) SYSCALL_6to12(name, r4-r5, r4-r5) +#define SYSCALL_6(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8) +#define SYSCALL_7(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8) +#define SYSCALL_8(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8) +#define SYSCALL_12(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8) + +#else // !(__BIGGEST_ALIGNMENT__ > 4) (the normal arm32 ABI case) + +#define SYSCALL_0(name) SYSCALL_0to4(name) +#define SYSCALL_1(name) SYSCALL_0to4(name) +#define SYSCALL_2(name) SYSCALL_0to4(name) +#define SYSCALL_3(name) SYSCALL_0to4(name) +#define SYSCALL_4(name) SYSCALL_0to4(name) +/* SYSCALL_5 declared above */ +#define SYSCALL_6(name) SYSCALL_6to12(name, r4-r5, r4-r5) +#define SYSCALL_7(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6) +#define SYSCALL_8(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6) /* 8th on stack */ +#define SYSCALL_12(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6) /* 8th-12th on stack */ + +#endif // __BIGGEST_ALIGNMENT__ > 4 + +/* select the appropriate syscall code, based on the number of arguments */ +#ifndef __SYSCALL_32BIT_ARG_BYTES +#define SYSCALL(name, nargs, cerror) SYSCALL_##nargs(name, cerror) +#define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_##nargs(name, cerror) +#else +#if __SYSCALL_32BIT_ARG_BYTES < 20 +#define SYSCALL(name, nargs, cerror) SYSCALL_0to4(name, cerror) +#define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_0to4(name, cerror) +#elif __SYSCALL_32BIT_ARG_BYTES == 20 +#define SYSCALL(name, nargs, cerror) SYSCALL_5(name, cerror) +#define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_5(name, cerror) +#elif __SYSCALL_32BIT_ARG_BYTES == 24 +#define SYSCALL(name, nargs, cerror) SYSCALL_6(name, cerror) +#define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_6(name, cerror) +#elif __SYSCALL_32BIT_ARG_BYTES == 28 +#define SYSCALL(name, nargs, cerror) SYSCALL_7(name, cerror) +#define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_7(name, cerror) +#elif __SYSCALL_32BIT_ARG_BYTES == 32 +#define SYSCALL(name, nargs, cerror) SYSCALL_8(name, cerror) +#define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_8(name, cerror) +#elif __SYSCALL_32BIT_ARG_BYTES == 36 +#define SYSCALL(name, nargs, cerror) SYSCALL_8(name, cerror) +#define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_8(name, cerror) +#elif __SYSCALL_32BIT_ARG_BYTES == 40 +#define SYSCALL(name, nargs, cerror) SYSCALL_8(name, cerror) +#define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_8(name, cerror) +#elif __SYSCALL_32BIT_ARG_BYTES == 44 +#define SYSCALL(name, nargs, cerror) SYSCALL_8(name, cerror) +#define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_8(name, cerror) +#elif __SYSCALL_32BIT_ARG_BYTES == 48 +#define SYSCALL(name, nargs, cerror) SYSCALL_12(name, cerror) +#define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_12(name, cerror) +#endif +#endif + +#define SYSCALL_NONAME_0to4(name, cerror) \ + DO_SYSCALL(SYS_##name) ;\ + bcc 1f /* branch if carry bit is clear (no error) */ ; \ + MI_BRANCH_EXTERNAL(_##cerror) /* call cerror */ ; \ +1: + +#define SYSCALL_NONAME_5(name, cerror) \ + mov ip, sp /* save a pointer to the args */ ; \ + stmfd sp!, { r4-r5 } /* save r4-r5 */ ;\ + ldr r4, [ip] /* load 5th arg */ ; \ + DO_SYSCALL(SYS_##name) ;\ + ldmfd sp!, { r4-r5 } /* restore r4-r7 */ ; \ + bcc 1f /* branch if carry bit is clear (no error) */ ; \ + MI_BRANCH_EXTERNAL(_##cerror) /* call cerror */ ; \ +1: + +#define SYSCALL_NONAME_6to12(name, save_regs, arg_regs, cerror) \ + mov ip, sp /* save a pointer to the args */ ; \ + stmfd sp!, { save_regs } /* callee save regs */ ;\ + ldmia ip, { arg_regs } /* load arguments */ ; \ + DO_SYSCALL(SYS_##name) ;\ + ldmfd sp!, { save_regs } /* restore callee saved regs */ ; \ + bcc 1f /* branch if carry bit is clear (no error) */ ; \ + MI_BRANCH_EXTERNAL(_##cerror) /* call cerror */ ; \ +1: + + +#if __BIGGEST_ALIGNMENT__ > 4 + +/* For the armv7k ABI, the alignment requirements may add padding. So we + * let the kernel figure it out and push extra on the stack to avoid un-needed + * copy-ins. We are relying on arguments that aren't in registers starting + * 32 bytes from sp. We also use r8 like in the mach case. */ + +#define SYSCALL_NONAME_0(name, cerror) SYSCALL_NONAME_0to4(name, cerror) +#define SYSCALL_NONAME_1(name, cerror) SYSCALL_NONAME_0to4(name, cerror) +#define SYSCALL_NONAME_2(name, cerror) SYSCALL_NONAME_0to4(name, cerror) +#define SYSCALL_NONAME_3(name, cerror) SYSCALL_NONAME_0to4(name, cerror) +#define SYSCALL_NONAME_4(name, cerror) SYSCALL_NONAME_6to12(name, r4-r5, r4-r5, cerror) +#undef SYSCALL_NONAME_5 +#define SYSCALL_NONAME_5(name, cerror) SYSCALL_NONAME_6to12(name, r4-r5, r4-r5, cerror) +#define SYSCALL_NONAME_6(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8, cerror) +#define SYSCALL_NONAME_7(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8, cerror) +#define SYSCALL_NONAME_8(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8, cerror) +#define SYSCALL_NONAME_12(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8, cerror) + +#else // !(__BIGGEST_ALIGNMENT__ > 4) (the normal arm32 ABI case) + +#define SYSCALL_NONAME_0(name, cerror) SYSCALL_NONAME_0to4(name, cerror) +#define SYSCALL_NONAME_1(name, cerror) SYSCALL_NONAME_0to4(name, cerror) +#define SYSCALL_NONAME_2(name, cerror) SYSCALL_NONAME_0to4(name, cerror) +#define SYSCALL_NONAME_3(name, cerror) SYSCALL_NONAME_0to4(name, cerror) +#define SYSCALL_NONAME_4(name, cerror) SYSCALL_NONAME_0to4(name, cerror) +/* SYSCALL_NONAME_5 declared above */ +#define SYSCALL_NONAME_6(name, cerror) SYSCALL_NONAME_6to12(name, r4-r5, r4-r5, cerror) +#define SYSCALL_NONAME_7(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6, cerror) +#define SYSCALL_NONAME_8(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6, cerror) +#define SYSCALL_NONAME_12(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6, cerror) + +#endif // __BIGGEST_ALIGNMENT__ > 4 + +#define PSEUDO(pseudo, name, nargs, cerror) \ + .globl pseudo ;\ + .text ;\ + .align 2 ;\ +pseudo: ;\ + SYSCALL_NONAME(name, nargs, cerror) + +#define __SYSCALL2(pseudo, name, nargs, cerror) \ + PSEUDO(pseudo, name, nargs, cerror) ;\ + bx lr + +#define __SYSCALL(pseudo, name, nargs) \ + PSEUDO(pseudo, name, nargs, cerror) ;\ + bx lr + +#elif defined(__arm64__) + +#include +#include +#include + +#if defined(__arm64__) && !defined(__LP64__) +#define ZERO_EXTEND(argnum) uxtw x ## argnum, w ## argnum +#else +#define ZERO_EXTEND(argnum) +#endif + +#if defined(__arm64__) && !defined(__LP64__) +#define SIGN_EXTEND(argnum) sxtw x ## argnum, w ## argnum +#else +#define SIGN_EXTEND(argnum) +#endif + +/* + * ARM64 system call interface: + * + * TBD + */ + +#define DO_SYSCALL(num, cerror) \ + mov x16, #(num) %%\ + svc #SWI_SYSCALL %%\ + b.cc 2f %%\ + ARM64_STACK_PROLOG %%\ + PUSH_FRAME %%\ + bl _##cerror %%\ + POP_FRAME %%\ + ARM64_STACK_EPILOG %%\ +2: + +#define MI_GET_ADDRESS(reg,var) \ + adrp reg, var@page %%\ + add reg, reg, var@pageoff %% + +#define MI_CALL_EXTERNAL(sym) \ + .globl sym %% \ + bl sym + +#define SYSCALL_NONAME(name, nargs, cerror) \ + DO_SYSCALL(SYS_##name, cerror) %% \ +1: + +#define MI_ENTRY_POINT(name) \ + .text %% \ + .align 2 %% \ + .globl name %% \ +name: + +#define PSEUDO(pseudo, name, nargs, cerror) \ + .text %% \ + .align 2 %% \ + .globl pseudo %% \ + pseudo: %% \ + SYSCALL_NONAME(name, nargs, cerror) + +#define __SYSCALL(pseudo, name, nargs) \ + PSEUDO(pseudo, name, nargs, cerror) %% \ + ret + +#define __SYSCALL2(pseudo, name, nargs, cerror) \ + PSEUDO(pseudo, name, nargs, cerror) %% \ + ret + +#else +#error Unsupported architecture +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_____old_semwait_signal_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/_____old_semwait_signal_nocancel.S new file mode 100644 index 000000000..10f654ecc --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_____old_semwait_signal_nocancel.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS___old_semwait_signal_nocancel +#error "SYS___old_semwait_signal_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_____old_semwait_signal_nocancel) +SYSCALL_NONAME(__old_semwait_signal_nocancel, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_____old_semwait_signal_nocancel, __old_semwait_signal_nocancel, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_____sigwait_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/_____sigwait_nocancel.S new file mode 100644 index 000000000..6b16387fa --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_____sigwait_nocancel.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___sigwait_nocancel +#error "SYS___sigwait_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_____sigwait_nocancel) +SYSCALL_NONAME(__sigwait_nocancel, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_____sigwait_nocancel, __sigwait_nocancel, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___abort_with_payload.S b/src/kernel/libsyscall/bsdsyscalls/___abort_with_payload.S new file mode 100644 index 000000000..e9befb350 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___abort_with_payload.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 32 +#include "SYS.h" + +#ifndef SYS_abort_with_payload +#error "SYS_abort_with_payload not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___abort_with_payload) +SYSCALL_NONAME(abort_with_payload, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___abort_with_payload, abort_with_payload, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___accept.S b/src/kernel/libsyscall/bsdsyscalls/___accept.S new file mode 100644 index 000000000..e1e3682bf --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___accept.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_accept +#error "SYS_accept not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___accept) +SYSCALL_NONAME(accept, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___accept, accept, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _accept$UNIX2003 + .set _accept$UNIX2003, ___accept +#endif + +#if defined(__x86_64__) + .globl _accept + .set _accept, ___accept +#endif + +#if defined(__ppc__) + .globl _accept$UNIX2003 + .set _accept$UNIX2003, ___accept +#endif + +#if defined(__arm64__) + .globl _accept + .set _accept, ___accept +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___accept_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___accept_nocancel.S new file mode 100644 index 000000000..08e9c4ae0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___accept_nocancel.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_accept_nocancel +#error "SYS_accept_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___accept_nocancel) +SYSCALL_NONAME(accept_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___accept_nocancel, accept_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _accept$NOCANCEL$UNIX2003 + .set _accept$NOCANCEL$UNIX2003, ___accept_nocancel +#endif + +#if defined(__x86_64__) + .globl _accept$NOCANCEL + .set _accept$NOCANCEL, ___accept_nocancel +#endif + +#if defined(__ppc__) + .globl _accept$NOCANCEL$UNIX2003 + .set _accept$NOCANCEL$UNIX2003, ___accept_nocancel +#endif + +#if defined(__arm64__) + .globl _accept$NOCANCEL + .set _accept$NOCANCEL, ___accept_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___access_extended.S b/src/kernel/libsyscall/bsdsyscalls/___access_extended.S new file mode 100644 index 000000000..3e7ebf8d8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___access_extended.S @@ -0,0 +1,39 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_access_extended +#error "SYS_access_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___access_extended) +ZERO_EXTEND(1) +SYSCALL_NONAME(access_extended, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___access_extended, access_extended, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _accessx_np + .set _accessx_np, ___access_extended +#endif + +#if defined(__x86_64__) + .globl _accessx_np + .set _accessx_np, ___access_extended +#endif + +#if defined(__ppc__) + .globl _accessx_np + .set _accessx_np, ___access_extended +#endif + +#if defined(__arm64__) + .globl _accessx_np + .set _accessx_np, ___access_extended +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___aio_suspend_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___aio_suspend_nocancel.S new file mode 100644 index 000000000..e251c03bf --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___aio_suspend_nocancel.S @@ -0,0 +1,42 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_aio_suspend_nocancel +#error "SYS_aio_suspend_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___aio_suspend_nocancel) +SYSCALL_NONAME(aio_suspend_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___aio_suspend_nocancel, aio_suspend_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _aio_suspend + .set _aio_suspend, ___aio_suspend_nocancel + .globl _aio_suspend$NOCANCEL$UNIX2003 + .set _aio_suspend$NOCANCEL$UNIX2003, ___aio_suspend_nocancel +#endif + +#if defined(__x86_64__) + .globl _aio_suspend$NOCANCEL + .set _aio_suspend$NOCANCEL, ___aio_suspend_nocancel +#endif + +#if defined(__ppc__) + .globl _aio_suspend + .set _aio_suspend, ___aio_suspend_nocancel + .globl _aio_suspend$NOCANCEL$UNIX2003 + .set _aio_suspend$NOCANCEL$UNIX2003, ___aio_suspend_nocancel +#endif + +#if defined(__arm64__) + .globl _aio_suspend$NOCANCEL + .set _aio_suspend$NOCANCEL, ___aio_suspend_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___bind.S b/src/kernel/libsyscall/bsdsyscalls/___bind.S new file mode 100644 index 000000000..988cd5160 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___bind.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_bind +#error "SYS_bind not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___bind) +SYSCALL_NONAME(bind, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___bind, bind, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _bind$UNIX2003 + .set _bind$UNIX2003, ___bind +#endif + +#if defined(__x86_64__) + .globl _bind + .set _bind, ___bind +#endif + +#if defined(__ppc__) + .globl _bind$UNIX2003 + .set _bind$UNIX2003, ___bind +#endif + +#if defined(__arm64__) + .globl _bind + .set _bind, ___bind +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___bsdthread_create.S b/src/kernel/libsyscall/bsdsyscalls/___bsdthread_create.S new file mode 100644 index 000000000..01048c374 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___bsdthread_create.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_bsdthread_create +#error "SYS_bsdthread_create not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___bsdthread_create) +SYSCALL_NONAME(bsdthread_create, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___bsdthread_create, bsdthread_create, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___bsdthread_ctl.S b/src/kernel/libsyscall/bsdsyscalls/___bsdthread_ctl.S new file mode 100644 index 000000000..4c3adccb7 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___bsdthread_ctl.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_bsdthread_ctl +#error "SYS_bsdthread_ctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___bsdthread_ctl) +SYSCALL_NONAME(bsdthread_ctl, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___bsdthread_ctl, bsdthread_ctl, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___bsdthread_register.S b/src/kernel/libsyscall/bsdsyscalls/___bsdthread_register.S new file mode 100644 index 000000000..22158e6af --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___bsdthread_register.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 28 +#include "SYS.h" + +#ifndef SYS_bsdthread_register +#error "SYS_bsdthread_register not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___bsdthread_register) +SYSCALL_NONAME(bsdthread_register, 7, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___bsdthread_register, bsdthread_register, 7, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___bsdthread_terminate.S b/src/kernel/libsyscall/bsdsyscalls/___bsdthread_terminate.S new file mode 100644 index 000000000..5b927c177 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___bsdthread_terminate.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_bsdthread_terminate +#error "SYS_bsdthread_terminate not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___bsdthread_terminate) +ZERO_EXTEND(1) +SYSCALL_NONAME(bsdthread_terminate, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___bsdthread_terminate, bsdthread_terminate, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___chmod.S b/src/kernel/libsyscall/bsdsyscalls/___chmod.S new file mode 100644 index 000000000..a56c15383 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___chmod.S @@ -0,0 +1,28 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_chmod +#error "SYS_chmod not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___chmod) +SYSCALL_NONAME(chmod, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___chmod, chmod, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _chmod + .set _chmod, ___chmod +#endif + +#if defined(__ppc__) + .globl _chmod + .set _chmod, ___chmod +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___chmod_extended.S b/src/kernel/libsyscall/bsdsyscalls/___chmod_extended.S new file mode 100644 index 000000000..0807b39fd --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___chmod_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_chmod_extended +#error "SYS_chmod_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___chmod_extended) +SYSCALL_NONAME(chmod_extended, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___chmod_extended, chmod_extended, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___close_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___close_nocancel.S new file mode 100644 index 000000000..3f5faac8f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___close_nocancel.S @@ -0,0 +1,42 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_close_nocancel +#error "SYS_close_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___close_nocancel) +SYSCALL_NONAME(close_nocancel, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___close_nocancel, close_nocancel, 1, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _close + .set _close, ___close_nocancel + .globl _close$NOCANCEL$UNIX2003 + .set _close$NOCANCEL$UNIX2003, ___close_nocancel +#endif + +#if defined(__x86_64__) + .globl _close$NOCANCEL + .set _close$NOCANCEL, ___close_nocancel +#endif + +#if defined(__ppc__) + .globl _close + .set _close, ___close_nocancel + .globl _close$NOCANCEL$UNIX2003 + .set _close$NOCANCEL$UNIX2003, ___close_nocancel +#endif + +#if defined(__arm64__) + .globl _close$NOCANCEL + .set _close$NOCANCEL, ___close_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___coalition.S b/src/kernel/libsyscall/bsdsyscalls/___coalition.S new file mode 100644 index 000000000..d6688d68b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___coalition.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_coalition +#error "SYS_coalition not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___coalition) +SYSCALL_NONAME(coalition, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___coalition, coalition, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___coalition_info.S b/src/kernel/libsyscall/bsdsyscalls/___coalition_info.S new file mode 100644 index 000000000..9cec1cf8f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___coalition_info.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_coalition_info +#error "SYS_coalition_info not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___coalition_info) +SYSCALL_NONAME(coalition_info, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___coalition_info, coalition_info, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___coalition_ledger.S b/src/kernel/libsyscall/bsdsyscalls/___coalition_ledger.S new file mode 100644 index 000000000..c0175466d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___coalition_ledger.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_coalition_ledger +#error "SYS_coalition_ledger not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___coalition_ledger) +SYSCALL_NONAME(coalition_ledger, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___coalition_ledger, coalition_ledger, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___connect.S b/src/kernel/libsyscall/bsdsyscalls/___connect.S new file mode 100644 index 000000000..ee303012b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___connect.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_connect +#error "SYS_connect not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___connect) +SYSCALL_NONAME(connect, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___connect, connect, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _connect$UNIX2003 + .set _connect$UNIX2003, ___connect +#endif + +#if defined(__x86_64__) + .globl _connect + .set _connect, ___connect +#endif + +#if defined(__ppc__) + .globl _connect$UNIX2003 + .set _connect$UNIX2003, ___connect +#endif + +#if defined(__arm64__) + .globl _connect + .set _connect, ___connect +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___connect_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___connect_nocancel.S new file mode 100644 index 000000000..f45a5ab88 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___connect_nocancel.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_connect_nocancel +#error "SYS_connect_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___connect_nocancel) +SYSCALL_NONAME(connect_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___connect_nocancel, connect_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _connect$NOCANCEL$UNIX2003 + .set _connect$NOCANCEL$UNIX2003, ___connect_nocancel +#endif + +#if defined(__x86_64__) + .globl _connect$NOCANCEL + .set _connect$NOCANCEL, ___connect_nocancel +#endif + +#if defined(__ppc__) + .globl _connect$NOCANCEL$UNIX2003 + .set _connect$NOCANCEL$UNIX2003, ___connect_nocancel +#endif + +#if defined(__arm64__) + .globl _connect$NOCANCEL + .set _connect$NOCANCEL, ___connect_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___copyfile.S b/src/kernel/libsyscall/bsdsyscalls/___copyfile.S new file mode 100644 index 000000000..4c811a1f5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___copyfile.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_copyfile +#error "SYS_copyfile not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___copyfile) +SYSCALL_NONAME(copyfile, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___copyfile, copyfile, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___csrctl.S b/src/kernel/libsyscall/bsdsyscalls/___csrctl.S new file mode 100644 index 000000000..1bef4600f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___csrctl.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_csrctl +#error "SYS_csrctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___csrctl) +SYSCALL_NONAME(csrctl, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___csrctl, csrctl, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___delete.S b/src/kernel/libsyscall/bsdsyscalls/___delete.S new file mode 100644 index 000000000..9b2c9c49b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___delete.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_delete +#error "SYS_delete not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___delete) +SYSCALL_NONAME(delete, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___delete, delete, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___disable_threadsignal.S b/src/kernel/libsyscall/bsdsyscalls/___disable_threadsignal.S new file mode 100644 index 000000000..7f60803e1 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___disable_threadsignal.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS___disable_threadsignal +#error "SYS___disable_threadsignal not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___disable_threadsignal) +SYSCALL_NONAME(__disable_threadsignal, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___disable_threadsignal, __disable_threadsignal, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___exit.S b/src/kernel/libsyscall/bsdsyscalls/___exit.S new file mode 100644 index 000000000..d96e6800f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___exit.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_exit +#error "SYS_exit not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___exit) +SYSCALL_NONAME(exit, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___exit, exit, 1, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl __exit + .set __exit, ___exit +#endif + +#if defined(__x86_64__) + .globl __exit + .set __exit, ___exit +#endif + +#if defined(__ppc__) + .globl __exit + .set __exit, ___exit +#endif + +#if defined(__arm64__) + .globl __exit + .set __exit, ___exit +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___fchmod.S b/src/kernel/libsyscall/bsdsyscalls/___fchmod.S new file mode 100644 index 000000000..f97c06e0c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___fchmod.S @@ -0,0 +1,28 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_fchmod +#error "SYS_fchmod not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___fchmod) +SYSCALL_NONAME(fchmod, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___fchmod, fchmod, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _fchmod + .set _fchmod, ___fchmod +#endif + +#if defined(__ppc__) + .globl _fchmod + .set _fchmod, ___fchmod +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___fchmod_extended.S b/src/kernel/libsyscall/bsdsyscalls/___fchmod_extended.S new file mode 100644 index 000000000..266adff07 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___fchmod_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_fchmod_extended +#error "SYS_fchmod_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___fchmod_extended) +SYSCALL_NONAME(fchmod_extended, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___fchmod_extended, fchmod_extended, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___fcntl.S b/src/kernel/libsyscall/bsdsyscalls/___fcntl.S new file mode 100644 index 000000000..d48d858b6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___fcntl.S @@ -0,0 +1,29 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_fcntl +#error "SYS_fcntl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___fcntl) +SIGN_EXTEND(2) +SYSCALL_NONAME(fcntl, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___fcntl, fcntl, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _fcntl$UNIX2003 + .set _fcntl$UNIX2003, ___fcntl +#endif + +#if defined(__ppc__) + .globl _fcntl$UNIX2003 + .set _fcntl$UNIX2003, ___fcntl +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___fcntl_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___fcntl_nocancel.S new file mode 100644 index 000000000..3d071b1b8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___fcntl_nocancel.S @@ -0,0 +1,33 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_fcntl_nocancel +#error "SYS_fcntl_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___fcntl_nocancel) +SIGN_EXTEND(2) +SYSCALL_NONAME(fcntl_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___fcntl_nocancel, fcntl_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _fcntl + .set _fcntl, ___fcntl_nocancel + .globl _fcntl$NOCANCEL$UNIX2003 + .set _fcntl$NOCANCEL$UNIX2003, ___fcntl_nocancel +#endif + +#if defined(__ppc__) + .globl _fcntl + .set _fcntl, ___fcntl_nocancel + .globl _fcntl$NOCANCEL$UNIX2003 + .set _fcntl$NOCANCEL$UNIX2003, ___fcntl_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___fork.S b/src/kernel/libsyscall/bsdsyscalls/___fork.S new file mode 100644 index 000000000..9f4de9d66 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___fork.S @@ -0,0 +1,177 @@ +/* + * Copyright (c) 1999-2010 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ +/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. + * + * File: libc/ppc/sys/fork.s + * + * HISTORY + * 18-Nov-92 Ben Fathi (benf@next.com) + * Created from M88K sources + * + * 11-Jan-92 Peter King (king@next.com) + * Created from M68K sources + */ + +/* + * All of the asm stubs in this file have been adjusted so the pre/post + * fork handlers and dyld fixup are done in C inside Libc. As such, Libc + * expects the __fork asm to fix up the return code to be -1, 0 or pid + * and errno if needed. + */ + +#include "SYS.h" + +#if defined(__i386__) + +LEAF(___fork, 0) + subl $28, %esp // Align the stack, with 16 bytes of extra padding that we'll need + + movl $ SYS_fork,%eax; // code for fork -> eax +#ifdef DARLING + call __darling_bsd_syscall + cmpl $0, %eax + jnb L1 +#else + UNIX_SYSCALL_TRAP // do the system call + jnc L1 // jump if CF==0 +#endif + + CALL_EXTERN(tramp_cerror) + movl $-1,%eax + addl $28, %esp // restore the stack + ret + +L1: + orl %edx,%edx // CF=OF=0, ZF set if zero result + jz L2 // parent, since r1 == 0 in parent, 1 in child + + //child here... + xorl %eax,%eax // zero eax + REG_TO_EXTERN(%eax, __current_pid); +L2: + addl $28, %esp // restore the stack + // parent ends up here skipping child portion + ret + +#elif defined(__x86_64__) + +LEAF(___fork, 0) + subq $24, %rsp // Align the stack, plus room for local storage + +#ifdef DARLING + movl $ SYS_fork, %eax + call __darling_bsd_syscall + cmpq $0, %rax + jnb L1 +#else + movl $ SYSCALL_CONSTRUCT_UNIX(SYS_fork),%eax; // code for fork -> rax + UNIX_SYSCALL_TRAP // do the system call + jnc L1 // jump if CF==0 +#endif + + movq %rax, %rdi + CALL_EXTERN(_cerror) + movq $-1, %rax + addq $24, %rsp // restore the stack + ret + +L1: +#ifdef DARLING + testl %eax, %eax + jnz L2 +#else + orl %edx,%edx // CF=OF=0, ZF set if zero result + jz L2 // parent, since r1 == 0 in parent, 1 in child +#endif + + //child here... + xorq %rax, %rax + PICIFY(__current_pid) + movl %eax,(%r11) +L2: + // parent ends up here skipping child portion + addq $24, %rsp // restore the stack + ret + +#elif defined(__arm__) + +MI_ENTRY_POINT(___fork) + stmfd sp!, {r4, r7, lr} + add r7, sp, #4 + + mov r1, #1 // prime results + mov r12, #SYS_fork + swi #SWI_SYSCALL // make the syscall + bcs Lbotch // error? + + cmp r1, #0 // parent (r1=0) or child(r1=1) + beq Lparent + + //child here... + MI_GET_ADDRESS(r3, __current_pid) + mov r0, #0 + str r0, [r3] // clear cached pid in child + ldmfd sp!, {r4, r7, pc} + +Lbotch: + MI_CALL_EXTERNAL(_cerror) // jump here on error + mov r0,#-1 // set the error + // fall thru +Lparent: + ldmfd sp!, {r4, r7, pc} // pop and return + +#elif defined(__arm64__) + +#include + +MI_ENTRY_POINT(___fork) + ARM64_STACK_PROLOG + PUSH_FRAME + // ARM moves a 1 in to r1 here, but I can't see why. + mov x16, #SYS_fork // Syscall code + svc #SWI_SYSCALL // Trap to kernel + b.cs Lbotch // Carry bit indicates failure + cbz x1, Lparent // x1 == 0 indicates that we are the parent + + // Child + MI_GET_ADDRESS(x9, __current_pid) // Get address of cached "current pid" + mov w0, #0 + str w0, [x9] // Clear cached current pid + POP_FRAME // And done + ARM64_STACK_EPILOG + +Lbotch: + MI_CALL_EXTERNAL(_cerror) // Handle error + mov w0, #-1 // Return value is -1 +Lparent: + POP_FRAME // Return + ARM64_STACK_EPILOG + +#else +#error Unsupported architecture +#endif diff --git a/src/kernel/libsyscall/bsdsyscalls/___fs_snapshot.S b/src/kernel/libsyscall/bsdsyscalls/___fs_snapshot.S new file mode 100644 index 000000000..80cf9965e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___fs_snapshot.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_fs_snapshot +#error "SYS_fs_snapshot not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___fs_snapshot) +SYSCALL_NONAME(fs_snapshot, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___fs_snapshot, fs_snapshot, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___fstat64_extended.S b/src/kernel/libsyscall/bsdsyscalls/___fstat64_extended.S new file mode 100644 index 000000000..ceeb976e8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___fstat64_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_fstat64_extended +#error "SYS_fstat64_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___fstat64_extended) +SYSCALL_NONAME(fstat64_extended, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___fstat64_extended, fstat64_extended, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___fstat_extended.S b/src/kernel/libsyscall/bsdsyscalls/___fstat_extended.S new file mode 100644 index 000000000..b3c57211e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___fstat_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_fstat_extended +#error "SYS_fstat_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___fstat_extended) +SYSCALL_NONAME(fstat_extended, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___fstat_extended, fstat_extended, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___fsync_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___fsync_nocancel.S new file mode 100644 index 000000000..d800db7d0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___fsync_nocancel.S @@ -0,0 +1,42 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_fsync_nocancel +#error "SYS_fsync_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___fsync_nocancel) +SYSCALL_NONAME(fsync_nocancel, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___fsync_nocancel, fsync_nocancel, 1, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _fsync + .set _fsync, ___fsync_nocancel + .globl _fsync$NOCANCEL$UNIX2003 + .set _fsync$NOCANCEL$UNIX2003, ___fsync_nocancel +#endif + +#if defined(__x86_64__) + .globl _fsync$NOCANCEL + .set _fsync$NOCANCEL, ___fsync_nocancel +#endif + +#if defined(__ppc__) + .globl _fsync + .set _fsync, ___fsync_nocancel + .globl _fsync$NOCANCEL$UNIX2003 + .set _fsync$NOCANCEL$UNIX2003, ___fsync_nocancel +#endif + +#if defined(__arm64__) + .globl _fsync$NOCANCEL + .set _fsync$NOCANCEL, ___fsync_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___getattrlist.S b/src/kernel/libsyscall/bsdsyscalls/___getattrlist.S new file mode 100644 index 000000000..6dca24f17 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___getattrlist.S @@ -0,0 +1,40 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_getattrlist +#error "SYS_getattrlist not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___getattrlist) +ZERO_EXTEND(4) +ZERO_EXTEND(3) +SYSCALL_NONAME(getattrlist, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___getattrlist, getattrlist, 5, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _getattrlist$UNIX2003 + .set _getattrlist$UNIX2003, ___getattrlist +#endif + +#if defined(__x86_64__) + .globl _getattrlist + .set _getattrlist, ___getattrlist +#endif + +#if defined(__ppc__) + .globl _getattrlist$UNIX2003 + .set _getattrlist$UNIX2003, ___getattrlist +#endif + +#if defined(__arm64__) + .globl _getattrlist + .set _getattrlist, ___getattrlist +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___getdirentries64.S b/src/kernel/libsyscall/bsdsyscalls/___getdirentries64.S new file mode 100644 index 000000000..f5ccc757d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___getdirentries64.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_getdirentries64 +#error "SYS_getdirentries64 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___getdirentries64) +ZERO_EXTEND(2) +SYSCALL_NONAME(getdirentries64, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___getdirentries64, getdirentries64, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___gethostuuid.S b/src/kernel/libsyscall/bsdsyscalls/___gethostuuid.S new file mode 100644 index 000000000..0b7b5ac8f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___gethostuuid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_gethostuuid +#error "SYS_gethostuuid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___gethostuuid) +SYSCALL_NONAME(gethostuuid, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___gethostuuid, gethostuuid, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___getlogin.S b/src/kernel/libsyscall/bsdsyscalls/___getlogin.S new file mode 100644 index 000000000..02b311fe0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___getlogin.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getlogin +#error "SYS_getlogin not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___getlogin) +SYSCALL_NONAME(getlogin, 2, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___getlogin, getlogin, 2, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___getpeername.S b/src/kernel/libsyscall/bsdsyscalls/___getpeername.S new file mode 100644 index 000000000..c2136a9e9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___getpeername.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_getpeername +#error "SYS_getpeername not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___getpeername) +SYSCALL_NONAME(getpeername, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___getpeername, getpeername, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _getpeername$UNIX2003 + .set _getpeername$UNIX2003, ___getpeername +#endif + +#if defined(__x86_64__) + .globl _getpeername + .set _getpeername, ___getpeername +#endif + +#if defined(__ppc__) + .globl _getpeername$UNIX2003 + .set _getpeername$UNIX2003, ___getpeername +#endif + +#if defined(__arm64__) + .globl _getpeername + .set _getpeername, ___getpeername +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___getpid.S b/src/kernel/libsyscall/bsdsyscalls/___getpid.S new file mode 100644 index 000000000..fcc21e39c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___getpid.S @@ -0,0 +1,193 @@ +/* + * Copyright (c) 1999-2007 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ + +#include "SYS.h" + +#if defined(__i386__) + + .data + .private_extern __current_pid +L__current_pid_addr: + __current_pid: + .long 0 + +#if defined(__DYNAMIC__) +#define GET_CURRENT_PID \ + call 0f ; \ +0: ; \ + popl %ecx ; \ + leal L__current_pid_addr-0b(%ecx), %ecx + +#define __current_pid (%ecx) + +#else +#define GET_CURRENT_PID +#endif + +/* + * If __current_pid is > 0, return it, else make syscall. + * If __current_pid is 0, cache result of syscall. + */ +TEXT +LEAF(___getpid, 0) + GET_CURRENT_PID + movl __current_pid, %eax + testl %eax, %eax + jle 1f + ret +1: + UNIX_SYSCALL_NONAME(getpid, 0, cerror_nocancel) + movl %eax, %edx + xorl %eax, %eax + GET_CURRENT_PID + lock + cmpxchgl %edx, __current_pid + movl %edx, %eax + ret + +#elif defined(__x86_64__) + + .data + .private_extern __current_pid +__current_pid: + .long 0 + +/* + * If __current_pid is > 0, return it, else make syscall. + * If __current_pid is 0, cache result of syscall. + */ +TEXT +LEAF(___getpid, 0) + movl __current_pid(%rip), %eax + testl %eax, %eax + jle 1f + ret +1: + UNIX_SYSCALL_NONAME(getpid, 0, cerror_nocancel) + movl %eax, %edx + xorl %eax, %eax + leaq __current_pid(%rip), %rcx + lock + cmpxchgl %edx, (%rcx) + movl %edx, %eax + ret + +#elif defined(__arm__) + +#include + + .data + .globl __current_pid + .align 2 +__current_pid: + /* Cached pid. Possible values: + * 0: no value cached + * > 0: cached PID of current process + * < 0: negative number of vforks in progress + * INT_MIN: for pre-ARMv6, "looking" value (0x80000000) + */ + .long 0 + +MI_ENTRY_POINT(___getpid) + ldr r3, L__current_pid +L1: add r3, pc, r3 // r3 = &__current_pid + ldr r0, [r3] // get the cached pid + cmp r0, #0 + bxgt lr // if positive, return it + + SYSCALL_NONAME(getpid, 0, cerror_nocancel) + +#ifdef _ARM_ARCH_6 + ldrex r2, [r3] // see if we can cache it + cmp r2, #0 // we can't if there are any... + bxlt lr // ...vforks in progress + strex r2, r0, [r3] // ignore conflicts +#else + mov r1, #0x80000000 // load "looking" value + swp r2, r1, [r3] // look at the value, lock others out + cmp r2, r1 // anyone else trying to look? + bxeq lr // yes, so return immediately/ + cmp r2, #0 // see if we can cache it + streq r0, [r3] // if zero, we can + strne r2, [r3] // otherwise restore previous value +#endif + + bx lr + +L__current_pid: + .long __current_pid - (L1+8) + +#elif defined(__arm64__) + .data + .globl __current_pid + .align 2 +__current_pid: + /* cached pid. possible values: + * 0: no value cached + * > 0: cached pid of current process + * < 0: negative number of vforks in progress + * int_min: for pre-armv6, "looking" value (0x80000000) + */ + .long 0 + +MI_ENTRY_POINT(___getpid) + MI_GET_ADDRESS(x9, __current_pid) // Get address of cached value + ldr w0, [x9] // Load it + cmp w0, #0 // See if there's a cached value + b.le L_notcached // If not, make syscall + ret // Else, we're done +L_notcached: + SYSCALL_NONAME(getpid, 0, cerror_nocancel) + ldxr w10, [x9] // Exclusive load + cbnz w10, L_done // Unless unset, don't even try + stxr wzr, w0, [x9] // Try to store, but don't care if we fail (someone will win, or not) +L_done: + ret // Done +#else +#error Unsupported architecture +#endif +#if defined(__i386__) + .globl _getpid + .set _getpid, ___getpid +#endif + +#if defined(__x86_64__) + .globl _getpid + .set _getpid, ___getpid +#endif + +#if defined(__ppc__) + .globl _getpid + .set _getpid, ___getpid +#endif + +#if defined(__arm64__) + .globl _getpid + .set _getpid, ___getpid +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___getrlimit.S b/src/kernel/libsyscall/bsdsyscalls/___getrlimit.S new file mode 100644 index 000000000..307049853 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___getrlimit.S @@ -0,0 +1,28 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getrlimit +#error "SYS_getrlimit not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___getrlimit) +SYSCALL_NONAME(getrlimit, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___getrlimit, getrlimit, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _getrlimit + .set _getrlimit, ___getrlimit +#endif + +#if defined(__ppc__) + .globl _getrlimit + .set _getrlimit, ___getrlimit +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___getsgroups.S b/src/kernel/libsyscall/bsdsyscalls/___getsgroups.S new file mode 100644 index 000000000..df6235901 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___getsgroups.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getsgroups +#error "SYS_getsgroups not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___getsgroups) +SYSCALL_NONAME(getsgroups, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___getsgroups, getsgroups, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _getsgroups_np + .set _getsgroups_np, ___getsgroups +#endif + +#if defined(__x86_64__) + .globl _getsgroups_np + .set _getsgroups_np, ___getsgroups +#endif + +#if defined(__ppc__) + .globl _getsgroups_np + .set _getsgroups_np, ___getsgroups +#endif + +#if defined(__arm64__) + .globl _getsgroups_np + .set _getsgroups_np, ___getsgroups +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___getsockname.S b/src/kernel/libsyscall/bsdsyscalls/___getsockname.S new file mode 100644 index 000000000..89b57a774 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___getsockname.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_getsockname +#error "SYS_getsockname not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___getsockname) +SYSCALL_NONAME(getsockname, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___getsockname, getsockname, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _getsockname$UNIX2003 + .set _getsockname$UNIX2003, ___getsockname +#endif + +#if defined(__x86_64__) + .globl _getsockname + .set _getsockname, ___getsockname +#endif + +#if defined(__ppc__) + .globl _getsockname$UNIX2003 + .set _getsockname$UNIX2003, ___getsockname +#endif + +#if defined(__arm64__) + .globl _getsockname + .set _getsockname, ___getsockname +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___gettid.S b/src/kernel/libsyscall/bsdsyscalls/___gettid.S new file mode 100644 index 000000000..7d294bf8a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___gettid.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_gettid +#error "SYS_gettid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___gettid) +SYSCALL_NONAME(gettid, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___gettid, gettid, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _pthread_getugid_np + .set _pthread_getugid_np, ___gettid +#endif + +#if defined(__x86_64__) + .globl _pthread_getugid_np + .set _pthread_getugid_np, ___gettid +#endif + +#if defined(__ppc__) + .globl _pthread_getugid_np + .set _pthread_getugid_np, ___gettid +#endif + +#if defined(__arm64__) + .globl _pthread_getugid_np + .set _pthread_getugid_np, ___gettid +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___gettimeofday.S b/src/kernel/libsyscall/bsdsyscalls/___gettimeofday.S new file mode 100644 index 000000000..47aada592 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___gettimeofday.S @@ -0,0 +1,120 @@ +/* + * Copyright (c) 1999-2016 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ + +#include "SYS.h" + +/* + * A third argument, of type uint64_t*, was added to the gettimeofday syscall + * for use cases that also want to know the mach_absolute_time that matches the + * time value returned. + * + * __gettimeofday takes the traditional two arguments. It will zero out the + * third argument argument before entering the kernel, behaving like the old + * call. + * + * __gettimeofday_with_mach will pass it through and supporting kernels will + * copy-out the mach_absolute_time. Old kernels will leave the pointed to + * value alone. + */ + +.private_extern ___gettimeofday_with_mach + +#if defined(__i386__) + +LABEL(___gettimeofday) + pushl $0 + pushl 12(%esp) + pushl 12(%esp) + calll ___gettimeofday_with_mach + addl $12, %esp + ret + +LABEL(___gettimeofday_with_mach) + UNIX_SYSCALL_INT_NONAME(gettimeofday,0) + /* + * + * If eax is 0, we're on a new kernel and timeval was written by the kernel. + * Otherwise, eax:edx contains the timeval and we marshal into timeval. + */ + cmp $0, %eax + je 2f + mov 4(%esp),%ecx + mov %eax,(%ecx) + mov %edx,4(%ecx) + xor %eax,%eax +2: + ret + +#elif defined(__x86_64__) + +__SYSCALL(___gettimeofday_with_mach, gettimeofday, 3) + +LABEL(___gettimeofday) + movq $0x0, %rdx // zero out third argument + + UNIX_SYSCALL_NONAME(gettimeofday,0,cerror_nocancel) + /* + * + * If rax is 0, we're on a new kernel and timeval was written by the kernel. + * Otherwise, rax:rdx contains the timeval and we marshal into timeval. + */ + cmp $0, %rax + je 2f + movq %rax, (%rdi) + movl %edx, 8(%rdi) + xorl %eax, %eax +2: + ret + +#elif defined(__arm__) + +__SYSCALL2(___gettimeofday_with_mach, gettimeofday, 3, cerror_nocancel) + +.text +.align 2 +.globl ___gettimeofday +___gettimeofday: + mov r2, #0x0 + SYSCALL_NONAME(gettimeofday, 3, cerror_nocancel) + bx lr + +#elif defined(__arm64__) + +__SYSCALL2(___gettimeofday_with_mach, gettimeofday, 3, cerror_nocancel) + +.text +.align 2 +.globl ___gettimeofday +___gettimeofday: + movz x2, #0x0 + SYSCALL_NONAME(gettimeofday, 3, cerror_nocancel) + ret + +#else +#error Unsupported architecture +#endif diff --git a/src/kernel/libsyscall/bsdsyscalls/___getwgroups.S b/src/kernel/libsyscall/bsdsyscalls/___getwgroups.S new file mode 100644 index 000000000..e5c32b801 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___getwgroups.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getwgroups +#error "SYS_getwgroups not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___getwgroups) +SYSCALL_NONAME(getwgroups, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___getwgroups, getwgroups, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _getwgroups_np + .set _getwgroups_np, ___getwgroups +#endif + +#if defined(__x86_64__) + .globl _getwgroups_np + .set _getwgroups_np, ___getwgroups +#endif + +#if defined(__ppc__) + .globl _getwgroups_np + .set _getwgroups_np, ___getwgroups +#endif + +#if defined(__arm64__) + .globl _getwgroups_np + .set _getwgroups_np, ___getwgroups +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___guarded_open_dprotected_np.S b/src/kernel/libsyscall/bsdsyscalls/___guarded_open_dprotected_np.S new file mode 100644 index 000000000..e944a3d30 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___guarded_open_dprotected_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 28 +#include "SYS.h" + +#ifndef SYS_guarded_open_dprotected_np +#error "SYS_guarded_open_dprotected_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___guarded_open_dprotected_np) +SYSCALL_NONAME(guarded_open_dprotected_np, 7, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___guarded_open_dprotected_np, guarded_open_dprotected_np, 7, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___guarded_open_np.S b/src/kernel/libsyscall/bsdsyscalls/___guarded_open_np.S new file mode 100644 index 000000000..f92efc0fd --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___guarded_open_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_guarded_open_np +#error "SYS_guarded_open_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___guarded_open_np) +SYSCALL_NONAME(guarded_open_np, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___guarded_open_np, guarded_open_np, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___identitysvc.S b/src/kernel/libsyscall/bsdsyscalls/___identitysvc.S new file mode 100644 index 000000000..69abb7676 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___identitysvc.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_identitysvc +#error "SYS_identitysvc not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___identitysvc) +SYSCALL_NONAME(identitysvc, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___identitysvc, identitysvc, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___initgroups.S b/src/kernel/libsyscall/bsdsyscalls/___initgroups.S new file mode 100644 index 000000000..869dee74d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___initgroups.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_initgroups +#error "SYS_initgroups not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___initgroups) +SYSCALL_NONAME(initgroups, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___initgroups, initgroups, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___ioctl.S b/src/kernel/libsyscall/bsdsyscalls/___ioctl.S new file mode 100644 index 000000000..fcac2fe34 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___ioctl.S @@ -0,0 +1,29 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_ioctl +#error "SYS_ioctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___ioctl) +ZERO_EXTEND(1) +SYSCALL_NONAME(ioctl, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___ioctl, ioctl, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _ioctl + .set _ioctl, ___ioctl +#endif + +#if defined(__ppc__) + .globl _ioctl + .set _ioctl, ___ioctl +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___iopolicysys.S b/src/kernel/libsyscall/bsdsyscalls/___iopolicysys.S new file mode 100644 index 000000000..8db9e0415 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___iopolicysys.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_iopolicysys +#error "SYS_iopolicysys not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___iopolicysys) +SYSCALL_NONAME(iopolicysys, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___iopolicysys, iopolicysys, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace.S b/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace.S new file mode 100644 index 000000000..62cdd4856 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace.S @@ -0,0 +1,22 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_kdebug_trace +#error "SYS_kdebug_trace not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___kdebug_trace) +ZERO_EXTEND(2) +ZERO_EXTEND(1) +ZERO_EXTEND(3) +ZERO_EXTEND(4) +SYSCALL_NONAME(kdebug_trace, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___kdebug_trace, kdebug_trace, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace64.S b/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace64.S new file mode 100644 index 000000000..9b8956873 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace64.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 36 +#include "SYS.h" + +#ifndef SYS_kdebug_trace64 +#error "SYS_kdebug_trace64 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___kdebug_trace64) +SYSCALL_NONAME(kdebug_trace64, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___kdebug_trace64, kdebug_trace64, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace_string.S b/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace_string.S new file mode 100644 index 000000000..81cf375b5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace_string.S @@ -0,0 +1,49 @@ +/* + * Copyright (c) 1999-2007 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ + +#include "SYS.h" + +#if defined(__x86_64__) + +__SYSCALL(___kdebug_trace_string, kdebug_trace_string, 3) + +#elif defined(__i386__) + +__SYSCALL_INT(___kdebug_trace_string, kdebug_trace_string, 3) + +#elif defined(__arm__) + +__SYSCALL(___kdebug_trace_string, kdebug_trace_string, 4) + +#elif defined(__arm64__) + +__SYSCALL(___kdebug_trace_string, kdebug_trace_string, 3) + +#else +#error Unsupported architecture +#endif diff --git a/src/kernel/libsyscall/bsdsyscalls/___kdebug_typefilter.S b/src/kernel/libsyscall/bsdsyscalls/___kdebug_typefilter.S new file mode 100644 index 000000000..a479dae4e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___kdebug_typefilter.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_kdebug_typefilter +#error "SYS_kdebug_typefilter not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___kdebug_typefilter) +SYSCALL_NONAME(kdebug_typefilter, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___kdebug_typefilter, kdebug_typefilter, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___kill.S b/src/kernel/libsyscall/bsdsyscalls/___kill.S new file mode 100644 index 000000000..83c1b18d5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___kill.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_kill +#error "SYS_kill not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___kill) +SYSCALL_NONAME(kill, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___kill, kill, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___kqueue_workloop_ctl.S b/src/kernel/libsyscall/bsdsyscalls/___kqueue_workloop_ctl.S new file mode 100644 index 000000000..79c2faf02 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___kqueue_workloop_ctl.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_kqueue_workloop_ctl +#error "SYS_kqueue_workloop_ctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___kqueue_workloop_ctl) +ZERO_EXTEND(3) +SYSCALL_NONAME(kqueue_workloop_ctl, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___kqueue_workloop_ctl, kqueue_workloop_ctl, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___lchown.S b/src/kernel/libsyscall/bsdsyscalls/___lchown.S new file mode 100644 index 000000000..040fdb89d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___lchown.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_lchown +#error "SYS_lchown not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___lchown) +SYSCALL_NONAME(lchown, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___lchown, lchown, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _lchown$UNIX2003 + .set _lchown$UNIX2003, ___lchown +#endif + +#if defined(__x86_64__) + .globl _lchown + .set _lchown, ___lchown +#endif + +#if defined(__ppc__) + .globl _lchown$UNIX2003 + .set _lchown$UNIX2003, ___lchown +#endif + +#if defined(__arm64__) + .globl _lchown + .set _lchown, ___lchown +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___listen.S b/src/kernel/libsyscall/bsdsyscalls/___listen.S new file mode 100644 index 000000000..198b7fb7a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___listen.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_listen +#error "SYS_listen not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___listen) +SYSCALL_NONAME(listen, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___listen, listen, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _listen$UNIX2003 + .set _listen$UNIX2003, ___listen +#endif + +#if defined(__x86_64__) + .globl _listen + .set _listen, ___listen +#endif + +#if defined(__ppc__) + .globl _listen$UNIX2003 + .set _listen$UNIX2003, ___listen +#endif + +#if defined(__arm64__) + .globl _listen + .set _listen, ___listen +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___log_data.S b/src/kernel/libsyscall/bsdsyscalls/___log_data.S new file mode 100644 index 000000000..63123b749 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___log_data.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_log_data +#error "SYS_log_data not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___log_data) +SYSCALL_NONAME(log_data, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___log_data, log_data, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___lseek.S b/src/kernel/libsyscall/bsdsyscalls/___lseek.S new file mode 100644 index 000000000..69af97785 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___lseek.S @@ -0,0 +1,69 @@ +/* + * Copyright (c) 1999-2007 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ + +#include "SYS.h" + +#if defined(__x86_64__) + +__SYSCALL(___lseek, lseek, 3) + +#elif defined(__i386__) + +__SYSCALL_INT(___lseek, lseek, 3) + +#elif defined(__arm__) + +__SYSCALL(___lseek, lseek, 4) + +#elif defined(__arm64__) + +__SYSCALL(___lseek, lseek, 3) + +#else +#error Unsupported architecture +#endif +#if defined(__i386__) + .globl _lseek + .set _lseek, ___lseek +#endif + +#if defined(__x86_64__) + .globl _lseek + .set _lseek, ___lseek +#endif + +#if defined(__ppc__) + .globl _lseek + .set _lseek, ___lseek +#endif + +#if defined(__arm64__) + .globl _lseek + .set _lseek, ___lseek +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___lstat64_extended.S b/src/kernel/libsyscall/bsdsyscalls/___lstat64_extended.S new file mode 100644 index 000000000..5329943f4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___lstat64_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_lstat64_extended +#error "SYS_lstat64_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___lstat64_extended) +SYSCALL_NONAME(lstat64_extended, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___lstat64_extended, lstat64_extended, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___lstat_extended.S b/src/kernel/libsyscall/bsdsyscalls/___lstat_extended.S new file mode 100644 index 000000000..f9db1e566 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___lstat_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_lstat_extended +#error "SYS_lstat_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___lstat_extended) +SYSCALL_NONAME(lstat_extended, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___lstat_extended, lstat_extended, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_execve.S b/src/kernel/libsyscall/bsdsyscalls/___mac_execve.S new file mode 100644 index 000000000..cc893b24f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_execve.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS___mac_execve +#error "SYS___mac_execve not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_execve) +SYSCALL_NONAME(__mac_execve, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_execve, __mac_execve, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl ___sandbox_me + .set ___sandbox_me, ___mac_execve +#endif + +#if defined(__x86_64__) + .globl ___sandbox_me + .set ___sandbox_me, ___mac_execve +#endif + +#if defined(__ppc__) + .globl ___sandbox_me + .set ___sandbox_me, ___mac_execve +#endif + +#if defined(__arm64__) + .globl ___sandbox_me + .set ___sandbox_me, ___mac_execve +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_get_fd.S b/src/kernel/libsyscall/bsdsyscalls/___mac_get_fd.S new file mode 100644 index 000000000..016c97970 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_get_fd.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___mac_get_fd +#error "SYS___mac_get_fd not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_get_fd) +SYSCALL_NONAME(__mac_get_fd, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_get_fd, __mac_get_fd, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_get_file.S b/src/kernel/libsyscall/bsdsyscalls/___mac_get_file.S new file mode 100644 index 000000000..2463d6e72 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_get_file.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___mac_get_file +#error "SYS___mac_get_file not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_get_file) +SYSCALL_NONAME(__mac_get_file, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_get_file, __mac_get_file, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_get_link.S b/src/kernel/libsyscall/bsdsyscalls/___mac_get_link.S new file mode 100644 index 000000000..d15fff0ca --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_get_link.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___mac_get_link +#error "SYS___mac_get_link not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_get_link) +SYSCALL_NONAME(__mac_get_link, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_get_link, __mac_get_link, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_get_mount.S b/src/kernel/libsyscall/bsdsyscalls/___mac_get_mount.S new file mode 100644 index 000000000..76d80400d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_get_mount.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___mac_get_mount +#error "SYS___mac_get_mount not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_get_mount) +SYSCALL_NONAME(__mac_get_mount, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_get_mount, __mac_get_mount, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_get_pid.S b/src/kernel/libsyscall/bsdsyscalls/___mac_get_pid.S new file mode 100644 index 000000000..db4e2e2a2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_get_pid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___mac_get_pid +#error "SYS___mac_get_pid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_get_pid) +SYSCALL_NONAME(__mac_get_pid, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_get_pid, __mac_get_pid, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_get_proc.S b/src/kernel/libsyscall/bsdsyscalls/___mac_get_proc.S new file mode 100644 index 000000000..584a22412 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_get_proc.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS___mac_get_proc +#error "SYS___mac_get_proc not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_get_proc) +SYSCALL_NONAME(__mac_get_proc, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_get_proc, __mac_get_proc, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_getfsstat.S b/src/kernel/libsyscall/bsdsyscalls/___mac_getfsstat.S new file mode 100644 index 000000000..abe0f9ef4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_getfsstat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS___mac_getfsstat +#error "SYS___mac_getfsstat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_getfsstat) +SYSCALL_NONAME(__mac_getfsstat, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_getfsstat, __mac_getfsstat, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_mount.S b/src/kernel/libsyscall/bsdsyscalls/___mac_mount.S new file mode 100644 index 000000000..1310107bf --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_mount.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS___mac_mount +#error "SYS___mac_mount not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_mount) +SYSCALL_NONAME(__mac_mount, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_mount, __mac_mount, 5, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl ___sandbox_mm + .set ___sandbox_mm, ___mac_mount +#endif + +#if defined(__x86_64__) + .globl ___sandbox_mm + .set ___sandbox_mm, ___mac_mount +#endif + +#if defined(__ppc__) + .globl ___sandbox_mm + .set ___sandbox_mm, ___mac_mount +#endif + +#if defined(__arm64__) + .globl ___sandbox_mm + .set ___sandbox_mm, ___mac_mount +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_set_fd.S b/src/kernel/libsyscall/bsdsyscalls/___mac_set_fd.S new file mode 100644 index 000000000..defdba6f5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_set_fd.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___mac_set_fd +#error "SYS___mac_set_fd not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_set_fd) +SYSCALL_NONAME(__mac_set_fd, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_set_fd, __mac_set_fd, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_set_file.S b/src/kernel/libsyscall/bsdsyscalls/___mac_set_file.S new file mode 100644 index 000000000..77af1a54a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_set_file.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___mac_set_file +#error "SYS___mac_set_file not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_set_file) +SYSCALL_NONAME(__mac_set_file, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_set_file, __mac_set_file, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_set_link.S b/src/kernel/libsyscall/bsdsyscalls/___mac_set_link.S new file mode 100644 index 000000000..4c98e4e92 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_set_link.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___mac_set_link +#error "SYS___mac_set_link not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_set_link) +SYSCALL_NONAME(__mac_set_link, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_set_link, __mac_set_link, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_set_proc.S b/src/kernel/libsyscall/bsdsyscalls/___mac_set_proc.S new file mode 100644 index 000000000..39981b9c0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_set_proc.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS___mac_set_proc +#error "SYS___mac_set_proc not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_set_proc) +SYSCALL_NONAME(__mac_set_proc, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_set_proc, __mac_set_proc, 1, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl ___sandbox_msp + .set ___sandbox_msp, ___mac_set_proc +#endif + +#if defined(__x86_64__) + .globl ___sandbox_msp + .set ___sandbox_msp, ___mac_set_proc +#endif + +#if defined(__ppc__) + .globl ___sandbox_msp + .set ___sandbox_msp, ___mac_set_proc +#endif + +#if defined(__arm64__) + .globl ___sandbox_msp + .set ___sandbox_msp, ___mac_set_proc +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mac_syscall.S b/src/kernel/libsyscall/bsdsyscalls/___mac_syscall.S new file mode 100644 index 000000000..c28b8e1ee --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mac_syscall.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS___mac_syscall +#error "SYS___mac_syscall not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mac_syscall) +SYSCALL_NONAME(__mac_syscall, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mac_syscall, __mac_syscall, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl ___sandbox_ms + .set ___sandbox_ms, ___mac_syscall +#endif + +#if defined(__x86_64__) + .globl ___sandbox_ms + .set ___sandbox_ms, ___mac_syscall +#endif + +#if defined(__ppc__) + .globl ___sandbox_ms + .set ___sandbox_ms, ___mac_syscall +#endif + +#if defined(__arm64__) + .globl ___sandbox_ms + .set ___sandbox_ms, ___mac_syscall +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mach_bridge_remote_time.S b/src/kernel/libsyscall/bsdsyscalls/___mach_bridge_remote_time.S new file mode 100644 index 000000000..8b0b591dd --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mach_bridge_remote_time.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___mach_bridge_remote_time +#error "SYS___mach_bridge_remote_time not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mach_bridge_remote_time) +SYSCALL_NONAME(__mach_bridge_remote_time, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mach_bridge_remote_time, __mach_bridge_remote_time, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_signal.S b/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_signal.S new file mode 100644 index 000000000..22b6fa9a6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_signal.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_mach_eventlink_signal +#error "SYS_mach_eventlink_signal not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mach_eventlink_signal) +SYSCALL_NONAME(mach_eventlink_signal, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mach_eventlink_signal, mach_eventlink_signal, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_signal_wait_until.S b/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_signal_wait_until.S new file mode 100644 index 000000000..af19823aa --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_signal_wait_until.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 36 +#include "SYS.h" + +#ifndef SYS_mach_eventlink_signal_wait_until +#error "SYS_mach_eventlink_signal_wait_until not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mach_eventlink_signal_wait_until) +SYSCALL_NONAME(mach_eventlink_signal_wait_until, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mach_eventlink_signal_wait_until, mach_eventlink_signal_wait_until, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_wait_until.S b/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_wait_until.S new file mode 100644 index 000000000..291cdbaf2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_wait_until.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 28 +#include "SYS.h" + +#ifndef SYS_mach_eventlink_wait_until +#error "SYS_mach_eventlink_wait_until not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mach_eventlink_wait_until) +SYSCALL_NONAME(mach_eventlink_wait_until, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mach_eventlink_wait_until, mach_eventlink_wait_until, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___memorystatus_available_memory.S b/src/kernel/libsyscall/bsdsyscalls/___memorystatus_available_memory.S new file mode 100644 index 000000000..d6da7b14a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___memorystatus_available_memory.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_memorystatus_available_memory +#error "SYS_memorystatus_available_memory not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___memorystatus_available_memory) +SYSCALL_NONAME(memorystatus_available_memory, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___memorystatus_available_memory, memorystatus_available_memory, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___microstackshot.S b/src/kernel/libsyscall/bsdsyscalls/___microstackshot.S new file mode 100644 index 000000000..b49bd91cf --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___microstackshot.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_microstackshot +#error "SYS_microstackshot not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___microstackshot) +SYSCALL_NONAME(microstackshot, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___microstackshot, microstackshot, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mkdir_extended.S b/src/kernel/libsyscall/bsdsyscalls/___mkdir_extended.S new file mode 100644 index 000000000..84ce06345 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mkdir_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_mkdir_extended +#error "SYS_mkdir_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mkdir_extended) +SYSCALL_NONAME(mkdir_extended, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mkdir_extended, mkdir_extended, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mkfifo_extended.S b/src/kernel/libsyscall/bsdsyscalls/___mkfifo_extended.S new file mode 100644 index 000000000..b33ce37d2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mkfifo_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_mkfifo_extended +#error "SYS_mkfifo_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mkfifo_extended) +SYSCALL_NONAME(mkfifo_extended, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mkfifo_extended, mkfifo_extended, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mmap.S b/src/kernel/libsyscall/bsdsyscalls/___mmap.S new file mode 100644 index 000000000..ac8f3349f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mmap.S @@ -0,0 +1,29 @@ +#define __SYSCALL_32BIT_ARG_BYTES 28 +#include "SYS.h" + +#ifndef SYS_mmap +#error "SYS_mmap not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mmap) +ZERO_EXTEND(1) +SYSCALL_NONAME(mmap, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mmap, mmap, 6, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _mmap + .set _mmap, ___mmap +#endif + +#if defined(__ppc__) + .globl _mmap + .set _mmap, ___mmap +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___mprotect.S b/src/kernel/libsyscall/bsdsyscalls/___mprotect.S new file mode 100644 index 000000000..63c75e7ea --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___mprotect.S @@ -0,0 +1,39 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_mprotect +#error "SYS_mprotect not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___mprotect) +ZERO_EXTEND(1) +SYSCALL_NONAME(mprotect, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___mprotect, mprotect, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _mprotect$UNIX2003 + .set _mprotect$UNIX2003, ___mprotect +#endif + +#if defined(__x86_64__) + .globl _mprotect + .set _mprotect, ___mprotect +#endif + +#if defined(__ppc__) + .globl _mprotect$UNIX2003 + .set _mprotect$UNIX2003, ___mprotect +#endif + +#if defined(__arm64__) + .globl _mprotect + .set _mprotect, ___mprotect +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___msgctl.S b/src/kernel/libsyscall/bsdsyscalls/___msgctl.S new file mode 100644 index 000000000..dcb8baeee --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___msgctl.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_msgctl +#error "SYS_msgctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___msgctl) +SYSCALL_NONAME(msgctl, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___msgctl, msgctl, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _msgctl$UNIX2003 + .set _msgctl$UNIX2003, ___msgctl +#endif + +#if defined(__x86_64__) + .globl _msgctl + .set _msgctl, ___msgctl +#endif + +#if defined(__ppc__) + .globl _msgctl$UNIX2003 + .set _msgctl$UNIX2003, ___msgctl +#endif + +#if defined(__arm64__) + .globl _msgctl + .set _msgctl, ___msgctl +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___msgrcv_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___msgrcv_nocancel.S new file mode 100644 index 000000000..57d85f141 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___msgrcv_nocancel.S @@ -0,0 +1,44 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_msgrcv_nocancel +#error "SYS_msgrcv_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___msgrcv_nocancel) +ZERO_EXTEND(2) +SIGN_EXTEND(3) +SYSCALL_NONAME(msgrcv_nocancel, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___msgrcv_nocancel, msgrcv_nocancel, 5, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _msgrcv + .set _msgrcv, ___msgrcv_nocancel + .globl _msgrcv$NOCANCEL$UNIX2003 + .set _msgrcv$NOCANCEL$UNIX2003, ___msgrcv_nocancel +#endif + +#if defined(__x86_64__) + .globl _msgrcv$NOCANCEL + .set _msgrcv$NOCANCEL, ___msgrcv_nocancel +#endif + +#if defined(__ppc__) + .globl _msgrcv + .set _msgrcv, ___msgrcv_nocancel + .globl _msgrcv$NOCANCEL$UNIX2003 + .set _msgrcv$NOCANCEL$UNIX2003, ___msgrcv_nocancel +#endif + +#if defined(__arm64__) + .globl _msgrcv$NOCANCEL + .set _msgrcv$NOCANCEL, ___msgrcv_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___msgsnd_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___msgsnd_nocancel.S new file mode 100644 index 000000000..031a5a79c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___msgsnd_nocancel.S @@ -0,0 +1,43 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_msgsnd_nocancel +#error "SYS_msgsnd_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___msgsnd_nocancel) +ZERO_EXTEND(2) +SYSCALL_NONAME(msgsnd_nocancel, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___msgsnd_nocancel, msgsnd_nocancel, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _msgsnd + .set _msgsnd, ___msgsnd_nocancel + .globl _msgsnd$NOCANCEL$UNIX2003 + .set _msgsnd$NOCANCEL$UNIX2003, ___msgsnd_nocancel +#endif + +#if defined(__x86_64__) + .globl _msgsnd$NOCANCEL + .set _msgsnd$NOCANCEL, ___msgsnd_nocancel +#endif + +#if defined(__ppc__) + .globl _msgsnd + .set _msgsnd, ___msgsnd_nocancel + .globl _msgsnd$NOCANCEL$UNIX2003 + .set _msgsnd$NOCANCEL$UNIX2003, ___msgsnd_nocancel +#endif + +#if defined(__arm64__) + .globl _msgsnd$NOCANCEL + .set _msgsnd$NOCANCEL, ___msgsnd_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___msgsys.S b/src/kernel/libsyscall/bsdsyscalls/___msgsys.S new file mode 100644 index 000000000..5a2790608 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___msgsys.S @@ -0,0 +1,33 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_msgsys +#error "SYS_msgsys not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___msgsys) +SYSCALL_NONAME(msgsys, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___msgsys, msgsys, 5, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _msgsys + .set _msgsys, ___msgsys +#endif + +#if defined(__x86_64__) + .globl _msgsys + .set _msgsys, ___msgsys +#endif + +#if defined(__ppc__) + .globl _msgsys + .set _msgsys, ___msgsys +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___msync.S b/src/kernel/libsyscall/bsdsyscalls/___msync.S new file mode 100644 index 000000000..e5fc12e92 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___msync.S @@ -0,0 +1,39 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_msync +#error "SYS_msync not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___msync) +ZERO_EXTEND(1) +SYSCALL_NONAME(msync, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___msync, msync, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _msync$UNIX2003 + .set _msync$UNIX2003, ___msync +#endif + +#if defined(__x86_64__) + .globl _msync + .set _msync, ___msync +#endif + +#if defined(__ppc__) + .globl _msync$UNIX2003 + .set _msync$UNIX2003, ___msync +#endif + +#if defined(__arm64__) + .globl _msync + .set _msync, ___msync +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___msync_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___msync_nocancel.S new file mode 100644 index 000000000..33e500251 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___msync_nocancel.S @@ -0,0 +1,39 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_msync_nocancel +#error "SYS_msync_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___msync_nocancel) +ZERO_EXTEND(1) +SYSCALL_NONAME(msync_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___msync_nocancel, msync_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _msync$NOCANCEL$UNIX2003 + .set _msync$NOCANCEL$UNIX2003, ___msync_nocancel +#endif + +#if defined(__x86_64__) + .globl _msync$NOCANCEL + .set _msync$NOCANCEL, ___msync_nocancel +#endif + +#if defined(__ppc__) + .globl _msync$NOCANCEL$UNIX2003 + .set _msync$NOCANCEL$UNIX2003, ___msync_nocancel +#endif + +#if defined(__arm64__) + .globl _msync$NOCANCEL + .set _msync$NOCANCEL, ___msync_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___munmap.S b/src/kernel/libsyscall/bsdsyscalls/___munmap.S new file mode 100644 index 000000000..b030f0b9e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___munmap.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_munmap +#error "SYS_munmap not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___munmap) +ZERO_EXTEND(1) +SYSCALL_NONAME(munmap, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___munmap, munmap, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___old_semwait_signal.S b/src/kernel/libsyscall/bsdsyscalls/___old_semwait_signal.S new file mode 100644 index 000000000..fbb4cb13a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___old_semwait_signal.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS___old_semwait_signal +#error "SYS___old_semwait_signal not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___old_semwait_signal) +SYSCALL_NONAME(__old_semwait_signal, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___old_semwait_signal, __old_semwait_signal, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___open.S b/src/kernel/libsyscall/bsdsyscalls/___open.S new file mode 100644 index 000000000..ce1741162 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___open.S @@ -0,0 +1,30 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_open +#error "SYS_open not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___open) +SYSCALL_NONAME(open, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___open, open, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _open + .set _open, ___open + .globl _open$UNIX2003 + .set _open$UNIX2003, ___open +#endif + +#if defined(__ppc__) + .globl _open$UNIX2003 + .set _open$UNIX2003, ___open +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___open_dprotected_np.S b/src/kernel/libsyscall/bsdsyscalls/___open_dprotected_np.S new file mode 100644 index 000000000..726af93a2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___open_dprotected_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_open_dprotected_np +#error "SYS_open_dprotected_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___open_dprotected_np) +SYSCALL_NONAME(open_dprotected_np, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___open_dprotected_np, open_dprotected_np, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___open_extended.S b/src/kernel/libsyscall/bsdsyscalls/___open_extended.S new file mode 100644 index 000000000..41433d3eb --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___open_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_open_extended +#error "SYS_open_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___open_extended) +SYSCALL_NONAME(open_extended, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___open_extended, open_extended, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___open_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___open_nocancel.S new file mode 100644 index 000000000..97e3d938b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___open_nocancel.S @@ -0,0 +1,28 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_open_nocancel +#error "SYS_open_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___open_nocancel) +SYSCALL_NONAME(open_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___open_nocancel, open_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _open$NOCANCEL$UNIX2003 + .set _open$NOCANCEL$UNIX2003, ___open_nocancel +#endif + +#if defined(__ppc__) + .globl _open$NOCANCEL$UNIX2003 + .set _open$NOCANCEL$UNIX2003, ___open_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___openat.S b/src/kernel/libsyscall/bsdsyscalls/___openat.S new file mode 100644 index 000000000..cf7fb0199 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___openat.S @@ -0,0 +1,28 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_openat +#error "SYS_openat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___openat) +SYSCALL_NONAME(openat, 4, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___openat, openat, 4, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _openat + .set _openat, ___openat +#endif + +#if defined(__ppc__) + .globl _openat + .set _openat, ___openat +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___openat_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___openat_nocancel.S new file mode 100644 index 000000000..e8370ecee --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___openat_nocancel.S @@ -0,0 +1,28 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_openat_nocancel +#error "SYS_openat_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___openat_nocancel) +SYSCALL_NONAME(openat_nocancel, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___openat_nocancel, openat_nocancel, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _openat$NOCANCEL + .set _openat$NOCANCEL, ___openat_nocancel +#endif + +#if defined(__ppc__) + .globl _openat$NOCANCEL + .set _openat$NOCANCEL, ___openat_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___persona.S b/src/kernel/libsyscall/bsdsyscalls/___persona.S new file mode 100644 index 000000000..ef49df5bc --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___persona.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_persona +#error "SYS_persona not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___persona) +SYSCALL_NONAME(persona, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___persona, persona, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pipe.S b/src/kernel/libsyscall/bsdsyscalls/___pipe.S new file mode 100644 index 000000000..fa13c19dd --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pipe.S @@ -0,0 +1,90 @@ +/* + * Copyright (c) 1999-2007 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ +/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. */ + +#include "SYS.h" + +#if defined(__i386__) + +PSEUDO_INT(___pipe, pipe, 0) + movl 4(%esp),%ecx + movl %eax,(%ecx) + movl %edx,4(%ecx) + xorl %eax,%eax + ret + +#elif defined(__x86_64__) + +PSEUDO(___pipe, pipe, 0, cerror_nocancel) + movl %eax, (%rdi) + movl %edx, 4(%rdi) + xorl %eax, %eax + ret + +#elif defined(__arm__) + +MI_ENTRY_POINT(___pipe) + mov r3,r0 // save fildes across syscall + SYSCALL_NONAME(pipe, 0, cerror_nocancel) + str r0, [r3, #0] + str r1, [r3, #4] + mov r0,#0 + bx lr + +#elif defined(__arm64__) + +MI_ENTRY_POINT(___pipe) + mov x9, x0 // Stash FD array + SYSCALL_NONAME(pipe, 0, cerror_nocancel) + stp w0, w1, [x9] // Save results + mov x0, #0 // Success + ret // Done + +#else +#error Unsupported architecture +#endif +#if defined(__i386__) + .globl _pipe + .set _pipe, ___pipe +#endif + +#if defined(__x86_64__) + .globl _pipe + .set _pipe, ___pipe +#endif + +#if defined(__ppc__) + .globl _pipe + .set _pipe, ___pipe +#endif + +#if defined(__arm64__) + .globl _pipe + .set _pipe, ___pipe +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___poll_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___poll_nocancel.S new file mode 100644 index 000000000..7fb058509 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___poll_nocancel.S @@ -0,0 +1,42 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_poll_nocancel +#error "SYS_poll_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___poll_nocancel) +SYSCALL_NONAME(poll_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___poll_nocancel, poll_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _poll + .set _poll, ___poll_nocancel + .globl _poll$NOCANCEL$UNIX2003 + .set _poll$NOCANCEL$UNIX2003, ___poll_nocancel +#endif + +#if defined(__x86_64__) + .globl _poll$NOCANCEL + .set _poll$NOCANCEL, ___poll_nocancel +#endif + +#if defined(__ppc__) + .globl _poll + .set _poll, ___poll_nocancel + .globl _poll$NOCANCEL$UNIX2003 + .set _poll$NOCANCEL$UNIX2003, ___poll_nocancel +#endif + +#if defined(__arm64__) + .globl _poll$NOCANCEL + .set _poll$NOCANCEL, ___poll_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___posix_spawn.S b/src/kernel/libsyscall/bsdsyscalls/___posix_spawn.S new file mode 100644 index 000000000..b168e4082 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___posix_spawn.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_posix_spawn +#error "SYS_posix_spawn not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___posix_spawn) +SYSCALL_NONAME(posix_spawn, 5, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___posix_spawn, posix_spawn, 5, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pread_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___pread_nocancel.S new file mode 100644 index 000000000..3f2d5c146 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pread_nocancel.S @@ -0,0 +1,43 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_pread_nocancel +#error "SYS_pread_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pread_nocancel) +ZERO_EXTEND(2) +SYSCALL_NONAME(pread_nocancel, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pread_nocancel, pread_nocancel, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _pread + .set _pread, ___pread_nocancel + .globl _pread$NOCANCEL$UNIX2003 + .set _pread$NOCANCEL$UNIX2003, ___pread_nocancel +#endif + +#if defined(__x86_64__) + .globl _pread$NOCANCEL + .set _pread$NOCANCEL, ___pread_nocancel +#endif + +#if defined(__ppc__) + .globl _pread + .set _pread, ___pread_nocancel + .globl _pread$NOCANCEL$UNIX2003 + .set _pread$NOCANCEL$UNIX2003, ___pread_nocancel +#endif + +#if defined(__arm64__) + .globl _pread$NOCANCEL + .set _pread$NOCANCEL, ___pread_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___preadv_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___preadv_nocancel.S new file mode 100644 index 000000000..d9a5aef9c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___preadv_nocancel.S @@ -0,0 +1,35 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_preadv_nocancel +#error "SYS_preadv_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___preadv_nocancel) +SYSCALL_NONAME(preadv_nocancel, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___preadv_nocancel, preadv_nocancel, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _preadv + .set _preadv, ___preadv_nocancel + .globl _preadv$NOCANCEL + .set _preadv$NOCANCEL, ___preadv_nocancel +#endif + +#if defined(__x86_64__) + .globl _preadv$NOCANCEL + .set _preadv$NOCANCEL, ___preadv_nocancel +#endif + +#if defined(__arm64__) + .globl _preadv$NOCANCEL + .set _preadv$NOCANCEL, ___preadv_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___proc_info.S b/src/kernel/libsyscall/bsdsyscalls/___proc_info.S new file mode 100644 index 000000000..c267ea2a7 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___proc_info.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 28 +#include "SYS.h" + +#ifndef SYS_proc_info +#error "SYS_proc_info not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___proc_info) +SYSCALL_NONAME(proc_info, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___proc_info, proc_info, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___proc_info_extended_id.S b/src/kernel/libsyscall/bsdsyscalls/___proc_info_extended_id.S new file mode 100644 index 000000000..cc5db0c4b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___proc_info_extended_id.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 40 +#include "SYS.h" + +#ifndef SYS_proc_info_extended_id +#error "SYS_proc_info_extended_id not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___proc_info_extended_id) +SYSCALL_NONAME(proc_info_extended_id, 8, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___proc_info_extended_id, proc_info_extended_id, 8, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___process_policy.S b/src/kernel/libsyscall/bsdsyscalls/___process_policy.S new file mode 100644 index 000000000..03430dd7b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___process_policy.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 32 +#include "SYS.h" + +#ifndef SYS_process_policy +#error "SYS_process_policy not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___process_policy) +SYSCALL_NONAME(process_policy, 7, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___process_policy, process_policy, 7, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pselect.S b/src/kernel/libsyscall/bsdsyscalls/___pselect.S new file mode 100644 index 000000000..8250ae214 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pselect.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_pselect +#error "SYS_pselect not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pselect) +SYSCALL_NONAME(pselect, 6, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pselect, pselect, 6, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pselect_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___pselect_nocancel.S new file mode 100644 index 000000000..b54180e71 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pselect_nocancel.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_pselect_nocancel +#error "SYS_pselect_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pselect_nocancel) +SYSCALL_NONAME(pselect_nocancel, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pselect_nocancel, pselect_nocancel, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_cvbroad.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_cvbroad.S new file mode 100644 index 000000000..f869bae82 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_cvbroad.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 44 +#include "SYS.h" + +#ifndef SYS_psynch_cvbroad +#error "SYS_psynch_cvbroad not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_cvbroad) +SYSCALL_NONAME(psynch_cvbroad, 7, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_cvbroad, psynch_cvbroad, 7, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_cvclrprepost.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_cvclrprepost.S new file mode 100644 index 000000000..98dc4fa75 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_cvclrprepost.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 28 +#include "SYS.h" + +#ifndef SYS_psynch_cvclrprepost +#error "SYS_psynch_cvclrprepost not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_cvclrprepost) +SYSCALL_NONAME(psynch_cvclrprepost, 7, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_cvclrprepost, psynch_cvclrprepost, 7, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_cvsignal.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_cvsignal.S new file mode 100644 index 000000000..1dec595b7 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_cvsignal.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 44 +#include "SYS.h" + +#ifndef SYS_psynch_cvsignal +#error "SYS_psynch_cvsignal not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_cvsignal) +SYSCALL_NONAME(psynch_cvsignal, 8, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_cvsignal, psynch_cvsignal, 8, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_cvwait.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_cvwait.S new file mode 100644 index 000000000..61d34a8fa --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_cvwait.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 44 +#include "SYS.h" + +#ifndef SYS_psynch_cvwait +#error "SYS_psynch_cvwait not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_cvwait) +SYSCALL_NONAME(psynch_cvwait, 8, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_cvwait, psynch_cvwait, 8, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_mutexdrop.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_mutexdrop.S new file mode 100644 index 000000000..7a582e84f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_mutexdrop.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_psynch_mutexdrop +#error "SYS_psynch_mutexdrop not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_mutexdrop) +SYSCALL_NONAME(psynch_mutexdrop, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_mutexdrop, psynch_mutexdrop, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_mutexwait.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_mutexwait.S new file mode 100644 index 000000000..ccdae9c94 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_mutexwait.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_psynch_mutexwait +#error "SYS_psynch_mutexwait not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_mutexwait) +SYSCALL_NONAME(psynch_mutexwait, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_mutexwait, psynch_mutexwait, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_downgrade.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_downgrade.S new file mode 100644 index 000000000..1608b8d71 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_downgrade.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_psynch_rw_downgrade +#error "SYS_psynch_rw_downgrade not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_rw_downgrade) +SYSCALL_NONAME(psynch_rw_downgrade, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_rw_downgrade, psynch_rw_downgrade, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_longrdlock.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_longrdlock.S new file mode 100644 index 000000000..585913086 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_longrdlock.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_psynch_rw_longrdlock +#error "SYS_psynch_rw_longrdlock not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_rw_longrdlock) +SYSCALL_NONAME(psynch_rw_longrdlock, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_rw_longrdlock, psynch_rw_longrdlock, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_rdlock.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_rdlock.S new file mode 100644 index 000000000..708341d57 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_rdlock.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_psynch_rw_rdlock +#error "SYS_psynch_rw_rdlock not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_rw_rdlock) +SYSCALL_NONAME(psynch_rw_rdlock, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_rw_rdlock, psynch_rw_rdlock, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock.S new file mode 100644 index 000000000..c285ab2ce --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_psynch_rw_unlock +#error "SYS_psynch_rw_unlock not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_rw_unlock) +SYSCALL_NONAME(psynch_rw_unlock, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_rw_unlock, psynch_rw_unlock, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock2.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock2.S new file mode 100644 index 000000000..cbfdc9219 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock2.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_psynch_rw_unlock2 +#error "SYS_psynch_rw_unlock2 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_rw_unlock2) +SYSCALL_NONAME(psynch_rw_unlock2, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_rw_unlock2, psynch_rw_unlock2, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_upgrade.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_upgrade.S new file mode 100644 index 000000000..609ebeff4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_upgrade.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_psynch_rw_upgrade +#error "SYS_psynch_rw_upgrade not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_rw_upgrade) +SYSCALL_NONAME(psynch_rw_upgrade, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_rw_upgrade, psynch_rw_upgrade, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_wrlock.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_wrlock.S new file mode 100644 index 000000000..c8814f082 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_wrlock.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_psynch_rw_wrlock +#error "SYS_psynch_rw_wrlock not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_rw_wrlock) +SYSCALL_NONAME(psynch_rw_wrlock, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_rw_wrlock, psynch_rw_wrlock, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_yieldwrlock.S b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_yieldwrlock.S new file mode 100644 index 000000000..cc076eefa --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_yieldwrlock.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_psynch_rw_yieldwrlock +#error "SYS_psynch_rw_yieldwrlock not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___psynch_rw_yieldwrlock) +SYSCALL_NONAME(psynch_rw_yieldwrlock, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___psynch_rw_yieldwrlock, psynch_rw_yieldwrlock, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pthread_canceled.S b/src/kernel/libsyscall/bsdsyscalls/___pthread_canceled.S new file mode 100644 index 000000000..dc78c256f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pthread_canceled.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS___pthread_canceled +#error "SYS___pthread_canceled not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pthread_canceled) +SYSCALL_NONAME(__pthread_canceled, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pthread_canceled, __pthread_canceled, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pthread_chdir.S b/src/kernel/libsyscall/bsdsyscalls/___pthread_chdir.S new file mode 100644 index 000000000..35fe22bda --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pthread_chdir.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS___pthread_chdir +#error "SYS___pthread_chdir not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pthread_chdir) +SYSCALL_NONAME(__pthread_chdir, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pthread_chdir, __pthread_chdir, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pthread_fchdir.S b/src/kernel/libsyscall/bsdsyscalls/___pthread_fchdir.S new file mode 100644 index 000000000..6ad1f66c0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pthread_fchdir.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS___pthread_fchdir +#error "SYS___pthread_fchdir not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pthread_fchdir) +SYSCALL_NONAME(__pthread_fchdir, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pthread_fchdir, __pthread_fchdir, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pthread_kill.S b/src/kernel/libsyscall/bsdsyscalls/___pthread_kill.S new file mode 100644 index 000000000..66d170e5d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pthread_kill.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___pthread_kill +#error "SYS___pthread_kill not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pthread_kill) +SYSCALL_NONAME(__pthread_kill, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pthread_kill, __pthread_kill, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pthread_markcancel.S b/src/kernel/libsyscall/bsdsyscalls/___pthread_markcancel.S new file mode 100644 index 000000000..be00ddfa8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pthread_markcancel.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS___pthread_markcancel +#error "SYS___pthread_markcancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pthread_markcancel) +SYSCALL_NONAME(__pthread_markcancel, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pthread_markcancel, __pthread_markcancel, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pthread_sigmask.S b/src/kernel/libsyscall/bsdsyscalls/___pthread_sigmask.S new file mode 100644 index 000000000..714518b73 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pthread_sigmask.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS___pthread_sigmask +#error "SYS___pthread_sigmask not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pthread_sigmask) +SYSCALL_NONAME(__pthread_sigmask, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pthread_sigmask, __pthread_sigmask, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___ptrace.S b/src/kernel/libsyscall/bsdsyscalls/___ptrace.S new file mode 100644 index 000000000..4aa0d05a0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___ptrace.S @@ -0,0 +1,94 @@ +/* + * Copyright (c) 1999-2007 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ +/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. */ + +#include "SYS.h" + +#if defined(__i386__) + + .globl _errno + +LEAF(___ptrace, 0) + xorl %eax,%eax + REG_TO_EXTERN(%eax,_errno) + UNIX_SYSCALL_NONAME(ptrace, 4, cerror) + ret + +#elif defined(__x86_64__) + + .globl _errno + +LEAF(___ptrace, 0) + xorq %rax,%rax + PICIFY(_errno) + movl %eax,(%r11) + UNIX_SYSCALL_NONAME(ptrace, 4, cerror) + ret + +#elif defined(__arm__) + +MI_ENTRY_POINT(___ptrace) + MI_GET_ADDRESS(ip,_errno) + str r8, [sp, #-4]! + mov r8, #0 + str r8, [ip] + ldr r8, [sp], #4 + SYSCALL_NONAME(ptrace, 4, cerror) + bx lr + +#elif defined(__arm64__) + +MI_ENTRY_POINT(___ptrace) + MI_GET_ADDRESS(x9,_errno) + str wzr, [x9] + SYSCALL_NONAME(ptrace, 4, cerror) + ret + +#else +#error Unsupported architecture +#endif +#if defined(__i386__) + .globl _ptrace + .set _ptrace, ___ptrace +#endif + +#if defined(__x86_64__) + .globl _ptrace + .set _ptrace, ___ptrace +#endif + +#if defined(__ppc__) + .globl _ptrace + .set _ptrace, ___ptrace +#endif + +#if defined(__arm64__) + .globl _ptrace + .set _ptrace, ___ptrace +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pwrite_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___pwrite_nocancel.S new file mode 100644 index 000000000..2bb94ae3b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pwrite_nocancel.S @@ -0,0 +1,43 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_pwrite_nocancel +#error "SYS_pwrite_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pwrite_nocancel) +ZERO_EXTEND(2) +SYSCALL_NONAME(pwrite_nocancel, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pwrite_nocancel, pwrite_nocancel, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _pwrite + .set _pwrite, ___pwrite_nocancel + .globl _pwrite$NOCANCEL$UNIX2003 + .set _pwrite$NOCANCEL$UNIX2003, ___pwrite_nocancel +#endif + +#if defined(__x86_64__) + .globl _pwrite$NOCANCEL + .set _pwrite$NOCANCEL, ___pwrite_nocancel +#endif + +#if defined(__ppc__) + .globl _pwrite + .set _pwrite, ___pwrite_nocancel + .globl _pwrite$NOCANCEL$UNIX2003 + .set _pwrite$NOCANCEL$UNIX2003, ___pwrite_nocancel +#endif + +#if defined(__arm64__) + .globl _pwrite$NOCANCEL + .set _pwrite$NOCANCEL, ___pwrite_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___pwritev_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___pwritev_nocancel.S new file mode 100644 index 000000000..f661fffb9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___pwritev_nocancel.S @@ -0,0 +1,35 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_pwritev_nocancel +#error "SYS_pwritev_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___pwritev_nocancel) +SYSCALL_NONAME(pwritev_nocancel, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___pwritev_nocancel, pwritev_nocancel, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _pwritev + .set _pwritev, ___pwritev_nocancel + .globl _pwritev$NOCANCEL + .set _pwritev$NOCANCEL, ___pwritev_nocancel +#endif + +#if defined(__x86_64__) + .globl _pwritev$NOCANCEL + .set _pwritev$NOCANCEL, ___pwritev_nocancel +#endif + +#if defined(__arm64__) + .globl _pwritev$NOCANCEL + .set _pwritev$NOCANCEL, ___pwritev_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___read_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___read_nocancel.S new file mode 100644 index 000000000..95f17a7a2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___read_nocancel.S @@ -0,0 +1,43 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_read_nocancel +#error "SYS_read_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___read_nocancel) +ZERO_EXTEND(2) +SYSCALL_NONAME(read_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___read_nocancel, read_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _read + .set _read, ___read_nocancel + .globl _read$NOCANCEL$UNIX2003 + .set _read$NOCANCEL$UNIX2003, ___read_nocancel +#endif + +#if defined(__x86_64__) + .globl _read$NOCANCEL + .set _read$NOCANCEL, ___read_nocancel +#endif + +#if defined(__ppc__) + .globl _read + .set _read, ___read_nocancel + .globl _read$NOCANCEL$UNIX2003 + .set _read$NOCANCEL$UNIX2003, ___read_nocancel +#endif + +#if defined(__arm64__) + .globl _read$NOCANCEL + .set _read$NOCANCEL, ___read_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___readv_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___readv_nocancel.S new file mode 100644 index 000000000..e5d7f799a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___readv_nocancel.S @@ -0,0 +1,42 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_readv_nocancel +#error "SYS_readv_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___readv_nocancel) +SYSCALL_NONAME(readv_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___readv_nocancel, readv_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _readv + .set _readv, ___readv_nocancel + .globl _readv$NOCANCEL$UNIX2003 + .set _readv$NOCANCEL$UNIX2003, ___readv_nocancel +#endif + +#if defined(__x86_64__) + .globl _readv$NOCANCEL + .set _readv$NOCANCEL, ___readv_nocancel +#endif + +#if defined(__ppc__) + .globl _readv + .set _readv, ___readv_nocancel + .globl _readv$NOCANCEL$UNIX2003 + .set _readv$NOCANCEL$UNIX2003, ___readv_nocancel +#endif + +#if defined(__arm64__) + .globl _readv$NOCANCEL + .set _readv$NOCANCEL, ___readv_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___reboot.S b/src/kernel/libsyscall/bsdsyscalls/___reboot.S new file mode 100644 index 000000000..e5a88ea22 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___reboot.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_reboot +#error "SYS_reboot not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___reboot) +SYSCALL_NONAME(reboot, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___reboot, reboot, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___recvfrom.S b/src/kernel/libsyscall/bsdsyscalls/___recvfrom.S new file mode 100644 index 000000000..f58ca2679 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___recvfrom.S @@ -0,0 +1,39 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_recvfrom +#error "SYS_recvfrom not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___recvfrom) +ZERO_EXTEND(2) +SYSCALL_NONAME(recvfrom, 6, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___recvfrom, recvfrom, 6, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _recvfrom$UNIX2003 + .set _recvfrom$UNIX2003, ___recvfrom +#endif + +#if defined(__x86_64__) + .globl _recvfrom + .set _recvfrom, ___recvfrom +#endif + +#if defined(__ppc__) + .globl _recvfrom$UNIX2003 + .set _recvfrom$UNIX2003, ___recvfrom +#endif + +#if defined(__arm64__) + .globl _recvfrom + .set _recvfrom, ___recvfrom +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___recvfrom_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___recvfrom_nocancel.S new file mode 100644 index 000000000..651ecb02a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___recvfrom_nocancel.S @@ -0,0 +1,39 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_recvfrom_nocancel +#error "SYS_recvfrom_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___recvfrom_nocancel) +ZERO_EXTEND(2) +SYSCALL_NONAME(recvfrom_nocancel, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___recvfrom_nocancel, recvfrom_nocancel, 6, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _recvfrom$NOCANCEL$UNIX2003 + .set _recvfrom$NOCANCEL$UNIX2003, ___recvfrom_nocancel +#endif + +#if defined(__x86_64__) + .globl _recvfrom$NOCANCEL + .set _recvfrom$NOCANCEL, ___recvfrom_nocancel +#endif + +#if defined(__ppc__) + .globl _recvfrom$NOCANCEL$UNIX2003 + .set _recvfrom$NOCANCEL$UNIX2003, ___recvfrom_nocancel +#endif + +#if defined(__arm64__) + .globl _recvfrom$NOCANCEL + .set _recvfrom$NOCANCEL, ___recvfrom_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___recvmsg.S b/src/kernel/libsyscall/bsdsyscalls/___recvmsg.S new file mode 100644 index 000000000..996064ec2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___recvmsg.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_recvmsg +#error "SYS_recvmsg not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___recvmsg) +SYSCALL_NONAME(recvmsg, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___recvmsg, recvmsg, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _recvmsg$UNIX2003 + .set _recvmsg$UNIX2003, ___recvmsg +#endif + +#if defined(__x86_64__) + .globl _recvmsg + .set _recvmsg, ___recvmsg +#endif + +#if defined(__ppc__) + .globl _recvmsg$UNIX2003 + .set _recvmsg$UNIX2003, ___recvmsg +#endif + +#if defined(__arm64__) + .globl _recvmsg + .set _recvmsg, ___recvmsg +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___recvmsg_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___recvmsg_nocancel.S new file mode 100644 index 000000000..416df80d7 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___recvmsg_nocancel.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_recvmsg_nocancel +#error "SYS_recvmsg_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___recvmsg_nocancel) +SYSCALL_NONAME(recvmsg_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___recvmsg_nocancel, recvmsg_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _recvmsg$NOCANCEL$UNIX2003 + .set _recvmsg$NOCANCEL$UNIX2003, ___recvmsg_nocancel +#endif + +#if defined(__x86_64__) + .globl _recvmsg$NOCANCEL + .set _recvmsg$NOCANCEL, ___recvmsg_nocancel +#endif + +#if defined(__ppc__) + .globl _recvmsg$NOCANCEL$UNIX2003 + .set _recvmsg$NOCANCEL$UNIX2003, ___recvmsg_nocancel +#endif + +#if defined(__arm64__) + .globl _recvmsg$NOCANCEL + .set _recvmsg$NOCANCEL, ___recvmsg_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___rename.S b/src/kernel/libsyscall/bsdsyscalls/___rename.S new file mode 100644 index 000000000..7dd50fbe9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___rename.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_rename +#error "SYS_rename not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___rename) +SYSCALL_NONAME(rename, 2, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___rename, rename, 2, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___renameat.S b/src/kernel/libsyscall/bsdsyscalls/___renameat.S new file mode 100644 index 000000000..a8ec749d6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___renameat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_renameat +#error "SYS_renameat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___renameat) +SYSCALL_NONAME(renameat, 4, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___renameat, renameat, 4, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___renameatx_np.S b/src/kernel/libsyscall/bsdsyscalls/___renameatx_np.S new file mode 100644 index 000000000..bd7dde275 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___renameatx_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_renameatx_np +#error "SYS_renameatx_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___renameatx_np) +SYSCALL_NONAME(renameatx_np, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___renameatx_np, renameatx_np, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___rmdir.S b/src/kernel/libsyscall/bsdsyscalls/___rmdir.S new file mode 100644 index 000000000..92968d721 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___rmdir.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_rmdir +#error "SYS_rmdir not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___rmdir) +SYSCALL_NONAME(rmdir, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___rmdir, rmdir, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___select.S b/src/kernel/libsyscall/bsdsyscalls/___select.S new file mode 100644 index 000000000..a6745a482 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___select.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_select +#error "SYS_select not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___select) +SYSCALL_NONAME(select, 5, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___select, select, 5, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _select$DARWIN_EXTSN + .set _select$DARWIN_EXTSN, ___select +#endif + +#if defined(__x86_64__) + .globl _select$DARWIN_EXTSN + .set _select$DARWIN_EXTSN, ___select +#endif + +#if defined(__ppc__) + .globl _select$DARWIN_EXTSN + .set _select$DARWIN_EXTSN, ___select +#endif + +#if defined(__arm64__) + .globl _select$DARWIN_EXTSN + .set _select$DARWIN_EXTSN, ___select +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___select_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___select_nocancel.S new file mode 100644 index 000000000..1e38f6748 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___select_nocancel.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_select_nocancel +#error "SYS_select_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___select_nocancel) +SYSCALL_NONAME(select_nocancel, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___select_nocancel, select_nocancel, 5, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _select$DARWIN_EXTSN$NOCANCEL + .set _select$DARWIN_EXTSN$NOCANCEL, ___select_nocancel +#endif + +#if defined(__x86_64__) + .globl _select$DARWIN_EXTSN$NOCANCEL + .set _select$DARWIN_EXTSN$NOCANCEL, ___select_nocancel +#endif + +#if defined(__ppc__) + .globl _select$DARWIN_EXTSN$NOCANCEL + .set _select$DARWIN_EXTSN$NOCANCEL, ___select_nocancel +#endif + +#if defined(__arm64__) + .globl _select$DARWIN_EXTSN$NOCANCEL + .set _select$DARWIN_EXTSN$NOCANCEL, ___select_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sem_open.S b/src/kernel/libsyscall/bsdsyscalls/___sem_open.S new file mode 100644 index 000000000..6479060e5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sem_open.S @@ -0,0 +1,33 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_sem_open +#error "SYS_sem_open not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sem_open) +SYSCALL_NONAME(sem_open, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sem_open, sem_open, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _sem_open + .set _sem_open, ___sem_open +#endif + +#if defined(__x86_64__) + .globl _sem_open + .set _sem_open, ___sem_open +#endif + +#if defined(__ppc__) + .globl _sem_open + .set _sem_open, ___sem_open +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sem_wait_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___sem_wait_nocancel.S new file mode 100644 index 000000000..7a45d54c0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sem_wait_nocancel.S @@ -0,0 +1,42 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_sem_wait_nocancel +#error "SYS_sem_wait_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sem_wait_nocancel) +SYSCALL_NONAME(sem_wait_nocancel, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sem_wait_nocancel, sem_wait_nocancel, 1, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _sem_wait + .set _sem_wait, ___sem_wait_nocancel + .globl _sem_wait$NOCANCEL$UNIX2003 + .set _sem_wait$NOCANCEL$UNIX2003, ___sem_wait_nocancel +#endif + +#if defined(__x86_64__) + .globl _sem_wait$NOCANCEL + .set _sem_wait$NOCANCEL, ___sem_wait_nocancel +#endif + +#if defined(__ppc__) + .globl _sem_wait + .set _sem_wait, ___sem_wait_nocancel + .globl _sem_wait$NOCANCEL$UNIX2003 + .set _sem_wait$NOCANCEL$UNIX2003, ___sem_wait_nocancel +#endif + +#if defined(__arm64__) + .globl _sem_wait$NOCANCEL + .set _sem_wait$NOCANCEL, ___sem_wait_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___semctl.S b/src/kernel/libsyscall/bsdsyscalls/___semctl.S new file mode 100644 index 000000000..664743878 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___semctl.S @@ -0,0 +1,33 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_semctl +#error "SYS_semctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___semctl) +SYSCALL_NONAME(semctl, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___semctl, semctl, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _semctl$UNIX2003 + .set _semctl$UNIX2003, ___semctl +#endif + +#if defined(__x86_64__) + .globl _semctl + .set _semctl, ___semctl +#endif + +#if defined(__ppc__) + .globl _semctl$UNIX2003 + .set _semctl$UNIX2003, ___semctl +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___semsys.S b/src/kernel/libsyscall/bsdsyscalls/___semsys.S new file mode 100644 index 000000000..1c4748cd2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___semsys.S @@ -0,0 +1,33 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_semsys +#error "SYS_semsys not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___semsys) +SYSCALL_NONAME(semsys, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___semsys, semsys, 5, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _semsys + .set _semsys, ___semsys +#endif + +#if defined(__x86_64__) + .globl _semsys + .set _semsys, ___semsys +#endif + +#if defined(__ppc__) + .globl _semsys + .set _semsys, ___semsys +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___semwait_signal.S b/src/kernel/libsyscall/bsdsyscalls/___semwait_signal.S new file mode 100644 index 000000000..3be3c4f56 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___semwait_signal.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 28 +#include "SYS.h" + +#ifndef SYS___semwait_signal +#error "SYS___semwait_signal not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___semwait_signal) +SYSCALL_NONAME(__semwait_signal, 6, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___semwait_signal, __semwait_signal, 6, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___semwait_signal_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___semwait_signal_nocancel.S new file mode 100644 index 000000000..9e74ab11f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___semwait_signal_nocancel.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 28 +#include "SYS.h" + +#ifndef SYS___semwait_signal_nocancel +#error "SYS___semwait_signal_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___semwait_signal_nocancel) +SYSCALL_NONAME(__semwait_signal_nocancel, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___semwait_signal_nocancel, __semwait_signal_nocancel, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sendmsg.S b/src/kernel/libsyscall/bsdsyscalls/___sendmsg.S new file mode 100644 index 000000000..699e8ee1d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sendmsg.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_sendmsg +#error "SYS_sendmsg not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sendmsg) +SYSCALL_NONAME(sendmsg, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sendmsg, sendmsg, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _sendmsg$UNIX2003 + .set _sendmsg$UNIX2003, ___sendmsg +#endif + +#if defined(__x86_64__) + .globl _sendmsg + .set _sendmsg, ___sendmsg +#endif + +#if defined(__ppc__) + .globl _sendmsg$UNIX2003 + .set _sendmsg$UNIX2003, ___sendmsg +#endif + +#if defined(__arm64__) + .globl _sendmsg + .set _sendmsg, ___sendmsg +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sendmsg_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___sendmsg_nocancel.S new file mode 100644 index 000000000..7ffa43da3 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sendmsg_nocancel.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_sendmsg_nocancel +#error "SYS_sendmsg_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sendmsg_nocancel) +SYSCALL_NONAME(sendmsg_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sendmsg_nocancel, sendmsg_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _sendmsg$NOCANCEL$UNIX2003 + .set _sendmsg$NOCANCEL$UNIX2003, ___sendmsg_nocancel +#endif + +#if defined(__x86_64__) + .globl _sendmsg$NOCANCEL + .set _sendmsg$NOCANCEL, ___sendmsg_nocancel +#endif + +#if defined(__ppc__) + .globl _sendmsg$NOCANCEL$UNIX2003 + .set _sendmsg$NOCANCEL$UNIX2003, ___sendmsg_nocancel +#endif + +#if defined(__arm64__) + .globl _sendmsg$NOCANCEL + .set _sendmsg$NOCANCEL, ___sendmsg_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sendto.S b/src/kernel/libsyscall/bsdsyscalls/___sendto.S new file mode 100644 index 000000000..977f1e5e9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sendto.S @@ -0,0 +1,39 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_sendto +#error "SYS_sendto not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sendto) +ZERO_EXTEND(2) +SYSCALL_NONAME(sendto, 6, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sendto, sendto, 6, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _sendto$UNIX2003 + .set _sendto$UNIX2003, ___sendto +#endif + +#if defined(__x86_64__) + .globl _sendto + .set _sendto, ___sendto +#endif + +#if defined(__ppc__) + .globl _sendto$UNIX2003 + .set _sendto$UNIX2003, ___sendto +#endif + +#if defined(__arm64__) + .globl _sendto + .set _sendto, ___sendto +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sendto_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___sendto_nocancel.S new file mode 100644 index 000000000..f9cedd3b3 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sendto_nocancel.S @@ -0,0 +1,39 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_sendto_nocancel +#error "SYS_sendto_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sendto_nocancel) +ZERO_EXTEND(2) +SYSCALL_NONAME(sendto_nocancel, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sendto_nocancel, sendto_nocancel, 6, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _sendto$NOCANCEL$UNIX2003 + .set _sendto$NOCANCEL$UNIX2003, ___sendto_nocancel +#endif + +#if defined(__x86_64__) + .globl _sendto$NOCANCEL + .set _sendto$NOCANCEL, ___sendto_nocancel +#endif + +#if defined(__ppc__) + .globl _sendto$NOCANCEL$UNIX2003 + .set _sendto$NOCANCEL$UNIX2003, ___sendto_nocancel +#endif + +#if defined(__arm64__) + .globl _sendto$NOCANCEL + .set _sendto$NOCANCEL, ___sendto_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___setattrlist.S b/src/kernel/libsyscall/bsdsyscalls/___setattrlist.S new file mode 100644 index 000000000..14036a238 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___setattrlist.S @@ -0,0 +1,40 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_setattrlist +#error "SYS_setattrlist not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___setattrlist) +ZERO_EXTEND(4) +ZERO_EXTEND(3) +SYSCALL_NONAME(setattrlist, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___setattrlist, setattrlist, 5, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _setattrlist$UNIX2003 + .set _setattrlist$UNIX2003, ___setattrlist +#endif + +#if defined(__x86_64__) + .globl _setattrlist + .set _setattrlist, ___setattrlist +#endif + +#if defined(__ppc__) + .globl _setattrlist$UNIX2003 + .set _setattrlist$UNIX2003, ___setattrlist +#endif + +#if defined(__arm64__) + .globl _setattrlist + .set _setattrlist, ___setattrlist +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___setlogin.S b/src/kernel/libsyscall/bsdsyscalls/___setlogin.S new file mode 100644 index 000000000..a7983caf6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___setlogin.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_setlogin +#error "SYS_setlogin not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___setlogin) +SYSCALL_NONAME(setlogin, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___setlogin, setlogin, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___setpriority.S b/src/kernel/libsyscall/bsdsyscalls/___setpriority.S new file mode 100644 index 000000000..eddb5f199 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___setpriority.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_setpriority +#error "SYS_setpriority not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___setpriority) +SYSCALL_NONAME(setpriority, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___setpriority, setpriority, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___setregid.S b/src/kernel/libsyscall/bsdsyscalls/___setregid.S new file mode 100644 index 000000000..f3a782d39 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___setregid.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_setregid +#error "SYS_setregid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___setregid) +SYSCALL_NONAME(setregid, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___setregid, setregid, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _setregid$UNIX2003 + .set _setregid$UNIX2003, ___setregid +#endif + +#if defined(__x86_64__) + .globl _setregid + .set _setregid, ___setregid +#endif + +#if defined(__ppc__) + .globl _setregid$UNIX2003 + .set _setregid$UNIX2003, ___setregid +#endif + +#if defined(__arm64__) + .globl _setregid + .set _setregid, ___setregid +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___setreuid.S b/src/kernel/libsyscall/bsdsyscalls/___setreuid.S new file mode 100644 index 000000000..e68a1cc39 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___setreuid.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_setreuid +#error "SYS_setreuid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___setreuid) +SYSCALL_NONAME(setreuid, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___setreuid, setreuid, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _setreuid$UNIX2003 + .set _setreuid$UNIX2003, ___setreuid +#endif + +#if defined(__x86_64__) + .globl _setreuid + .set _setreuid, ___setreuid +#endif + +#if defined(__ppc__) + .globl _setreuid$UNIX2003 + .set _setreuid$UNIX2003, ___setreuid +#endif + +#if defined(__arm64__) + .globl _setreuid + .set _setreuid, ___setreuid +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___setrlimit.S b/src/kernel/libsyscall/bsdsyscalls/___setrlimit.S new file mode 100644 index 000000000..955322e1d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___setrlimit.S @@ -0,0 +1,28 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_setrlimit +#error "SYS_setrlimit not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___setrlimit) +SYSCALL_NONAME(setrlimit, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___setrlimit, setrlimit, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _setrlimit + .set _setrlimit, ___setrlimit +#endif + +#if defined(__ppc__) + .globl _setrlimit + .set _setrlimit, ___setrlimit +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___setsgroups.S b/src/kernel/libsyscall/bsdsyscalls/___setsgroups.S new file mode 100644 index 000000000..04a1130c9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___setsgroups.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_setsgroups +#error "SYS_setsgroups not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___setsgroups) +SYSCALL_NONAME(setsgroups, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___setsgroups, setsgroups, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _setsgroups_np + .set _setsgroups_np, ___setsgroups +#endif + +#if defined(__x86_64__) + .globl _setsgroups_np + .set _setsgroups_np, ___setsgroups +#endif + +#if defined(__ppc__) + .globl _setsgroups_np + .set _setsgroups_np, ___setsgroups +#endif + +#if defined(__arm64__) + .globl _setsgroups_np + .set _setsgroups_np, ___setsgroups +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___settid.S b/src/kernel/libsyscall/bsdsyscalls/___settid.S new file mode 100644 index 000000000..91f4406af --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___settid.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_settid +#error "SYS_settid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___settid) +SYSCALL_NONAME(settid, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___settid, settid, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _pthread_setugid_np + .set _pthread_setugid_np, ___settid +#endif + +#if defined(__x86_64__) + .globl _pthread_setugid_np + .set _pthread_setugid_np, ___settid +#endif + +#if defined(__ppc__) + .globl _pthread_setugid_np + .set _pthread_setugid_np, ___settid +#endif + +#if defined(__arm64__) + .globl _pthread_setugid_np + .set _pthread_setugid_np, ___settid +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___settid_with_pid.S b/src/kernel/libsyscall/bsdsyscalls/___settid_with_pid.S new file mode 100644 index 000000000..105ce1280 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___settid_with_pid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_settid_with_pid +#error "SYS_settid_with_pid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___settid_with_pid) +SYSCALL_NONAME(settid_with_pid, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___settid_with_pid, settid_with_pid, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___settimeofday.S b/src/kernel/libsyscall/bsdsyscalls/___settimeofday.S new file mode 100644 index 000000000..9bc7ab76c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___settimeofday.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_settimeofday +#error "SYS_settimeofday not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___settimeofday) +SYSCALL_NONAME(settimeofday, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___settimeofday, settimeofday, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___setwgroups.S b/src/kernel/libsyscall/bsdsyscalls/___setwgroups.S new file mode 100644 index 000000000..20d65640e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___setwgroups.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_setwgroups +#error "SYS_setwgroups not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___setwgroups) +SYSCALL_NONAME(setwgroups, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___setwgroups, setwgroups, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _setwgroups_np + .set _setwgroups_np, ___setwgroups +#endif + +#if defined(__x86_64__) + .globl _setwgroups_np + .set _setwgroups_np, ___setwgroups +#endif + +#if defined(__ppc__) + .globl _setwgroups_np + .set _setwgroups_np, ___setwgroups +#endif + +#if defined(__arm64__) + .globl _setwgroups_np + .set _setwgroups_np, ___setwgroups +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sfi_ctl.S b/src/kernel/libsyscall/bsdsyscalls/___sfi_ctl.S new file mode 100644 index 000000000..c7aa0fc8f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sfi_ctl.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_sfi_ctl +#error "SYS_sfi_ctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sfi_ctl) +SYSCALL_NONAME(sfi_ctl, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sfi_ctl, sfi_ctl, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sfi_pidctl.S b/src/kernel/libsyscall/bsdsyscalls/___sfi_pidctl.S new file mode 100644 index 000000000..bf1b3e7f4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sfi_pidctl.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_sfi_pidctl +#error "SYS_sfi_pidctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sfi_pidctl) +SYSCALL_NONAME(sfi_pidctl, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sfi_pidctl, sfi_pidctl, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___shared_region_check_np.S b/src/kernel/libsyscall/bsdsyscalls/___shared_region_check_np.S new file mode 100644 index 000000000..dfcec2377 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___shared_region_check_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_shared_region_check_np +#error "SYS_shared_region_check_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___shared_region_check_np) +SYSCALL_NONAME(shared_region_check_np, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___shared_region_check_np, shared_region_check_np, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_2_np.S b/src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_2_np.S new file mode 100644 index 000000000..7909e556b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_2_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_shared_region_map_and_slide_2_np +#error "SYS_shared_region_map_and_slide_2_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___shared_region_map_and_slide_2_np) +SYSCALL_NONAME(shared_region_map_and_slide_2_np, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___shared_region_map_and_slide_2_np, shared_region_map_and_slide_2_np, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_np.S b/src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_np.S new file mode 100644 index 000000000..144828183 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_shared_region_map_and_slide_np +#error "SYS_shared_region_map_and_slide_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___shared_region_map_and_slide_np) +SYSCALL_NONAME(shared_region_map_and_slide_np, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___shared_region_map_and_slide_np, shared_region_map_and_slide_np, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___shm_open.S b/src/kernel/libsyscall/bsdsyscalls/___shm_open.S new file mode 100644 index 000000000..0c6c7bf0b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___shm_open.S @@ -0,0 +1,33 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_shm_open +#error "SYS_shm_open not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___shm_open) +SYSCALL_NONAME(shm_open, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___shm_open, shm_open, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _shm_open + .set _shm_open, ___shm_open +#endif + +#if defined(__x86_64__) + .globl _shm_open + .set _shm_open, ___shm_open +#endif + +#if defined(__ppc__) + .globl _shm_open + .set _shm_open, ___shm_open +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___shmctl.S b/src/kernel/libsyscall/bsdsyscalls/___shmctl.S new file mode 100644 index 000000000..ce08e5dad --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___shmctl.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_shmctl +#error "SYS_shmctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___shmctl) +SYSCALL_NONAME(shmctl, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___shmctl, shmctl, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _shmctl$UNIX2003 + .set _shmctl$UNIX2003, ___shmctl +#endif + +#if defined(__x86_64__) + .globl _shmctl + .set _shmctl, ___shmctl +#endif + +#if defined(__ppc__) + .globl _shmctl$UNIX2003 + .set _shmctl$UNIX2003, ___shmctl +#endif + +#if defined(__arm64__) + .globl _shmctl + .set _shmctl, ___shmctl +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___shmsys.S b/src/kernel/libsyscall/bsdsyscalls/___shmsys.S new file mode 100644 index 000000000..ce3223c53 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___shmsys.S @@ -0,0 +1,33 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_shmsys +#error "SYS_shmsys not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___shmsys) +SYSCALL_NONAME(shmsys, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___shmsys, shmsys, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _shmsys + .set _shmsys, ___shmsys +#endif + +#if defined(__x86_64__) + .globl _shmsys + .set _shmsys, ___shmsys +#endif + +#if defined(__ppc__) + .globl _shmsys + .set _shmsys, ___shmsys +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sigaction.S b/src/kernel/libsyscall/bsdsyscalls/___sigaction.S new file mode 100644 index 000000000..ce82e7b66 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sigaction.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_sigaction +#error "SYS_sigaction not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sigaction) +SYSCALL_NONAME(sigaction, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sigaction, sigaction, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sigaltstack.S b/src/kernel/libsyscall/bsdsyscalls/___sigaltstack.S new file mode 100644 index 000000000..67e8ebc8a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sigaltstack.S @@ -0,0 +1,59 @@ +/* + * Copyright (c) 1999-2007 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ + +#include "SYS.h" + +#if defined(__x86_64__) + +__SYSCALL(___sigaltstack, sigaltstack, 3) + +#elif defined(__i386__) + +__SYSCALL_INT(___sigaltstack, sigaltstack, 3) + +#elif defined(__arm__) + +__SYSCALL(___sigaltstack, sigaltstack, 3) + +#elif defined(__arm64__) + +__SYSCALL(___sigaltstack, sigaltstack, 3) + +#else +#error Unsupported architecture +#endif +#if defined(__i386__) + .globl _sigaltstack + .set _sigaltstack, ___sigaltstack +#endif + +#if defined(__ppc__) + .globl _sigaltstack + .set _sigaltstack, ___sigaltstack +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sigreturn.S b/src/kernel/libsyscall/bsdsyscalls/___sigreturn.S new file mode 100644 index 000000000..62238b9ed --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sigreturn.S @@ -0,0 +1,49 @@ +/* + * Copyright (c) 1999-2007 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ + +#include "SYS.h" + +#if defined(__x86_64__) + +__SYSCALL(___sigreturn, sigreturn, 3) + +#elif defined(__i386__) + +__SYSCALL_INT(___sigreturn, sigreturn, 3) + +#elif defined(__arm__) + +__SYSCALL(___sigreturn, sigreturn, 3) + +#elif defined(__arm64__) + +__SYSCALL(___sigreturn, sigreturn, 3) + +#else +#error Unsupported architecture +#endif diff --git a/src/kernel/libsyscall/bsdsyscalls/___sigsuspend.S b/src/kernel/libsyscall/bsdsyscalls/___sigsuspend.S new file mode 100644 index 000000000..3fdc27e0f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sigsuspend.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_sigsuspend +#error "SYS_sigsuspend not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sigsuspend) +SYSCALL_NONAME(sigsuspend, 1, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sigsuspend, sigsuspend, 1, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sigsuspend_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___sigsuspend_nocancel.S new file mode 100644 index 000000000..781351b81 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sigsuspend_nocancel.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_sigsuspend_nocancel +#error "SYS_sigsuspend_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sigsuspend_nocancel) +SYSCALL_NONAME(sigsuspend_nocancel, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sigsuspend_nocancel, sigsuspend_nocancel, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sigwait.S b/src/kernel/libsyscall/bsdsyscalls/___sigwait.S new file mode 100644 index 000000000..9ecb08093 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sigwait.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS___sigwait +#error "SYS___sigwait not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sigwait) +SYSCALL_NONAME(__sigwait, 2, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sigwait, __sigwait, 2, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___socketpair.S b/src/kernel/libsyscall/bsdsyscalls/___socketpair.S new file mode 100644 index 000000000..cbca7b3e2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___socketpair.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_socketpair +#error "SYS_socketpair not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___socketpair) +SYSCALL_NONAME(socketpair, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___socketpair, socketpair, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _socketpair$UNIX2003 + .set _socketpair$UNIX2003, ___socketpair +#endif + +#if defined(__x86_64__) + .globl _socketpair + .set _socketpair, ___socketpair +#endif + +#if defined(__ppc__) + .globl _socketpair$UNIX2003 + .set _socketpair$UNIX2003, ___socketpair +#endif + +#if defined(__arm64__) + .globl _socketpair + .set _socketpair, ___socketpair +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___stack_snapshot_with_config.S b/src/kernel/libsyscall/bsdsyscalls/___stack_snapshot_with_config.S new file mode 100644 index 000000000..9b2cc1078 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___stack_snapshot_with_config.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_stack_snapshot_with_config +#error "SYS_stack_snapshot_with_config not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___stack_snapshot_with_config) +ZERO_EXTEND(2) +SYSCALL_NONAME(stack_snapshot_with_config, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___stack_snapshot_with_config, stack_snapshot_with_config, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___stat64_extended.S b/src/kernel/libsyscall/bsdsyscalls/___stat64_extended.S new file mode 100644 index 000000000..14fea129f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___stat64_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_stat64_extended +#error "SYS_stat64_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___stat64_extended) +SYSCALL_NONAME(stat64_extended, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___stat64_extended, stat64_extended, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___stat_extended.S b/src/kernel/libsyscall/bsdsyscalls/___stat_extended.S new file mode 100644 index 000000000..69ca0fbb2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___stat_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_stat_extended +#error "SYS_stat_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___stat_extended) +SYSCALL_NONAME(stat_extended, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___stat_extended, stat_extended, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___syscall.S b/src/kernel/libsyscall/bsdsyscalls/___syscall.S new file mode 100644 index 000000000..e13e88cf5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___syscall.S @@ -0,0 +1,93 @@ +/* + * Copyright (c) 1999-2007 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ +/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. */ + +#include "SYS.h" + +#if defined(__i386__) + +LEAF(___syscall, 0) + popl %ecx // ret addr + popl %eax // syscall number + pushl %ecx + UNIX_SYSCALL_TRAP + movl (%esp),%edx // add one element to stack so + pushl %ecx // caller "pop" will work + jnb 2f + BRANCH_EXTERN(tramp_cerror) +2: +END(___syscall) + +#elif defined(__x86_64__) + +// For x86-64, the kernel slides the argument list for us. +// The number of arguments here is variable, but our macros ignore +// that value anyway. +__SYSCALL(___syscall, syscall, 0); + +#elif defined(__arm__) + +__SYSCALL(___syscall, syscall, 7) + +#elif defined(__arm64__) + +/* + * Ignore nominal number of arguments: just pop from stack and let the kernel + * interpret. + */ +#include +MI_ENTRY_POINT(___syscall) + ldp x1, x2, [sp] + ldp x3, x4, [sp, #16] + ldp x5, x6, [sp, #32] + ldr x7, [sp, #48] + DO_SYSCALL(SYS_syscall, cerror) + ret +#else +#error Unsupported architecture +#endif +#if defined(__i386__) + .globl _syscall + .set _syscall, ___syscall +#endif + +#if defined(__x86_64__) + .globl _syscall + .set _syscall, ___syscall +#endif + +#if defined(__ppc__) + .globl _syscall + .set _syscall, ___syscall +#endif + +#if defined(__arm64__) + .globl _syscall + .set _syscall, ___syscall +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sysctl.S b/src/kernel/libsyscall/bsdsyscalls/___sysctl.S new file mode 100644 index 000000000..91915f81e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sysctl.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_sysctl +#error "SYS_sysctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sysctl) +ZERO_EXTEND(5) +SYSCALL_NONAME(sysctl, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sysctl, sysctl, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___sysctlbyname.S b/src/kernel/libsyscall/bsdsyscalls/___sysctlbyname.S new file mode 100644 index 000000000..708f598b8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___sysctlbyname.S @@ -0,0 +1,20 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_sysctlbyname +#error "SYS_sysctlbyname not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___sysctlbyname) +ZERO_EXTEND(1) +ZERO_EXTEND(5) +SYSCALL_NONAME(sysctlbyname, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___sysctlbyname, sysctlbyname, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___telemetry.S b/src/kernel/libsyscall/bsdsyscalls/___telemetry.S new file mode 100644 index 000000000..a6adc8626 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___telemetry.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 48 +#include "SYS.h" + +#ifndef SYS_telemetry +#error "SYS_telemetry not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___telemetry) +SYSCALL_NONAME(telemetry, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___telemetry, telemetry, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___terminate_with_payload.S b/src/kernel/libsyscall/bsdsyscalls/___terminate_with_payload.S new file mode 100644 index 000000000..4ea631f83 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___terminate_with_payload.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 36 +#include "SYS.h" + +#ifndef SYS_terminate_with_payload +#error "SYS_terminate_with_payload not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___terminate_with_payload) +SYSCALL_NONAME(terminate_with_payload, 7, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___terminate_with_payload, terminate_with_payload, 7, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___thread_selfid.S b/src/kernel/libsyscall/bsdsyscalls/___thread_selfid.S new file mode 100644 index 000000000..86c17638a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___thread_selfid.S @@ -0,0 +1,47 @@ +/* + * Copyright (c) 1999-2007 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ + +#include "SYS.h" + +#if defined(__x86_64__) + +__SYSCALL(___thread_selfid, thread_selfid, 0) + +#elif defined(__i386__) + +__SYSCALL_INT(___thread_selfid, thread_selfid, 0) + +#elif defined(__arm__) + +__SYSCALL(___thread_selfid, thread_selfid, 0) + +#elif defined(__arm64__) + +__SYSCALL(___thread_selfid, thread_selfid, 0) + +#endif diff --git a/src/kernel/libsyscall/bsdsyscalls/___thread_selfusage.S b/src/kernel/libsyscall/bsdsyscalls/___thread_selfusage.S new file mode 100644 index 000000000..ec83854e4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___thread_selfusage.S @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2014 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ + +#include "SYS.h" + +#if defined(__x86_64__) + +__SYSCALL(___thread_selfusage, thread_selfusage, 0) + +#elif defined(__i386__) + +__SYSCALL_INT(___thread_selfusage, thread_selfusage, 0) + +#elif defined(__arm__) + +__SYSCALL(___thread_selfusage, thread_selfusage, 0) + +#elif defined(__arm64__) + +__SYSCALL(___thread_selfusage, thread_selfusage, 0) + +#endif diff --git a/src/kernel/libsyscall/bsdsyscalls/___ulock_wait.S b/src/kernel/libsyscall/bsdsyscalls/___ulock_wait.S new file mode 100644 index 000000000..213084d86 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___ulock_wait.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_ulock_wait +#error "SYS_ulock_wait not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___ulock_wait) +SYSCALL_NONAME(ulock_wait, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___ulock_wait, ulock_wait, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___ulock_wait2.S b/src/kernel/libsyscall/bsdsyscalls/___ulock_wait2.S new file mode 100644 index 000000000..c1b713d75 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___ulock_wait2.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 32 +#include "SYS.h" + +#ifndef SYS_ulock_wait2 +#error "SYS_ulock_wait2 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___ulock_wait2) +SYSCALL_NONAME(ulock_wait2, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___ulock_wait2, ulock_wait2, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___ulock_wake.S b/src/kernel/libsyscall/bsdsyscalls/___ulock_wake.S new file mode 100644 index 000000000..763729530 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___ulock_wake.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_ulock_wake +#error "SYS_ulock_wake not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___ulock_wake) +SYSCALL_NONAME(ulock_wake, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___ulock_wake, ulock_wake, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___umask_extended.S b/src/kernel/libsyscall/bsdsyscalls/___umask_extended.S new file mode 100644 index 000000000..40a1df1ee --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___umask_extended.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_umask_extended +#error "SYS_umask_extended not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___umask_extended) +SYSCALL_NONAME(umask_extended, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___umask_extended, umask_extended, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___unlink.S b/src/kernel/libsyscall/bsdsyscalls/___unlink.S new file mode 100644 index 000000000..c34106760 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___unlink.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_unlink +#error "SYS_unlink not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___unlink) +SYSCALL_NONAME(unlink, 1, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___unlink, unlink, 1, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___unlinkat.S b/src/kernel/libsyscall/bsdsyscalls/___unlinkat.S new file mode 100644 index 000000000..ebcce9513 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___unlinkat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_unlinkat +#error "SYS_unlinkat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___unlinkat) +SYSCALL_NONAME(unlinkat, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___unlinkat, unlinkat, 3, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___vfork.S b/src/kernel/libsyscall/bsdsyscalls/___vfork.S new file mode 100644 index 000000000..99359d916 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___vfork.S @@ -0,0 +1,279 @@ +/* + * Copyright (c) 1999-2007 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ +/* Copyright (c) 1998 Apple Computer, Inc. All rights reserved. + * + * File: libc/ppc/sys/vfork.s + * + * HISTORY + * 23-Jun-1998 Umesh Vaishampayan (umeshv@apple.com) + * Created from fork.s + * + */ + +#include "SYS.h" + +#if defined(__i386__) + +#if defined(__DYNAMIC__) +#define GET_CURRENT_PID PICIFY(__current_pid) + + NON_LAZY_STUB(__current_pid) +#define __current_pid (%edx) +#else +#define GET_CURRENT_PID +#endif + +/* + * If __current_pid >= 0, we want to put a -1 in there + * otherwise we just decrement it + */ + +LEAF(___vfork, 0) + GET_CURRENT_PID + movl __current_pid, %eax +0: + xorl %ecx, %ecx + testl %eax, %eax + cmovs %eax, %ecx + decl %ecx + lock + cmpxchgl %ecx, __current_pid + jne 0b + popl %ecx + movl $(SYS_vfork), %eax // code for vfork -> eax + UNIX_SYSCALL_TRAP // do the system call + jnb L1 // jump if CF==0 + GET_CURRENT_PID + lock + incl __current_pid + pushl %ecx + BRANCH_EXTERN(tramp_cerror) + +L1: + testl %edx, %edx // CF=OF=0, ZF set if zero result + jz L2 // parent, since r1 == 0 in parent, 1 in child + xorl %eax, %eax // zero eax + jmp *%ecx + +L2: + GET_CURRENT_PID + lock + incl __current_pid + jmp *%ecx + +#elif defined(__x86_64__) + +/* + * If __current_pid >= 0, we want to put a -1 in there + * otherwise we just decrement it + */ + +LEAF(___vfork, 0) + movq __current_pid@GOTPCREL(%rip), %rax + movl (%rax), %eax +0: + xorl %ecx, %ecx + testl %eax, %eax + cmovs %eax, %ecx + subl $1, %ecx + movq __current_pid@GOTPCREL(%rip), %rdx + lock + cmpxchgl %ecx, (%rdx) + jne 0b +#ifdef DARLING + movl $ SYS_vfork, %eax + call __darling_bsd_syscall + cmpq $0, %rax + jnb L1 +#else + popq %rdi // return address in %rdi + movq $ SYSCALL_CONSTRUCT_UNIX(SYS_vfork), %rax // code for vfork -> rax + UNIX_SYSCALL_TRAP // do the system call + jnb L1 // jump if CF==0 + pushq %rdi // put return address back on stack for cerror +#endif + movq __current_pid@GOTPCREL(%rip), %rcx + lock + addl $1, (%rcx) + movq %rax, %rdi + BRANCH_EXTERN(_cerror) + +L1: +#ifdef DARLING + testl %eax, %eax + jnz L2 +#else + testl %edx, %edx // CF=OF=0, ZF set if zero result + jz L2 // parent, since r1 == 0 in parent, 1 in child +#endif + xorq %rax, %rax // zero rax +#ifdef DARLING + ret +#else + jmp *%rdi +#endif + +L2: + movq __current_pid@GOTPCREL(%rip), %rdx + lock + addl $1, (%rdx) +#ifdef DARLING + ret +#else + jmp *%rdi +#endif + +#elif defined(__arm__) + +#include + + .globl cerror + MI_ENTRY_POINT(___vfork) + + MI_GET_ADDRESS(r3, __current_pid) // get address of __current_pid +#ifdef _ARM_ARCH_6 +L0: + ldrex r1, [r3] + subs r1, r1, #1 // if __current_pid <= 0, decrement it + movpl r1, #-1 // otherwise put -1 in there + strex r2, r1, [r3] + cmp r2, #0 + bne L0 +#else + mov r2, #0x80000000 // load "looking" value +L0: + swp r1, r2, [r3] // look at the value, lock others out + cmp r1, r2 // anyone else trying to look? + beq L0 // yes, so wait our turn + subs r1, r1, #1 // if __current_pid <= 0, decrement it + movpl r1, #-1 // otherwise put -1 in there + str r1, [r3] +#endif + + mov r1, #1 // prime results + mov r12, #SYS_vfork + swi #SWI_SYSCALL // make the syscall + bcs Lbotch // error? + cmp r1, #0 // parent (r1=0) or child(r1=1) + beq Lparent + + //child here... + mov r0, #0 + bx lr // return + +Lbotch: + stmfd sp!, {lr} + MI_CALL_EXTERNAL(_cerror) // jump here on error + mov r0,#-1 // set the error + // reload values clobbered by cerror (so we can treat them as live in Lparent) + MI_GET_ADDRESS(r3, __current_pid) // get address of __current_pid + ldmfd sp!, {lr} +#ifndef _ARM_ARCH_6 + mov r2, #0x80000000 // load "looking" value +#endif + // fall thru + +Lparent: +#ifdef _ARM_ARCH_6 + ldrex r1, [r3] + add r1, r1, #1 // we're back, decrement vfork count + strex r2, r1, [r3] + cmp r2, #0 + bne Lparent +#else + swp r1, r2, [r3] // look at the value, lock others out + cmp r1, r2 // anyone else trying to look? + beq Lparent // yes, so wait our turn + add r1, r1, #1 // we're back, decrement vfork count + str r1, [r3] +#endif + + bx lr // return + +#elif defined(__arm64__) + + MI_ENTRY_POINT(___vfork) + ARM64_STACK_PROLOG + + MI_GET_ADDRESS(x9, __current_pid) +Ltry_set_vfork: + ldxr w10, [x9] // Get old current pid value (exclusive) + mov w11, #-1 // Will be -1 if current value is positive + subs w10, w10, #1 // Subtract one + csel w12, w11, w10, pl // If >= 0, set to -1, else set to (current - 1) + stxr w13, w12, [x9] // Attempt exclusive store to current pid + cbnz w13, Ltry_set_vfork // If store failed, retry + + // ARM sets r1 to 1 here. I don't see why. + mov w16, #SYS_vfork // Set syscall code + svc #SWI_SYSCALL + b.cs Lbotch + cbz w1, Lparent + + // Child + mov w0, #0 + ARM64_STACK_EPILOG + + // Error case +Lbotch: + PUSH_FRAME + bl _cerror // Update errno + mov w0, #-1 // Set return value + MI_GET_ADDRESS(x9, __current_pid) // Reload current pid address + POP_FRAME + // Fall through +Lparent: + ldxr w10, [x9] // Exclusive load current pid value + add w10, w10, #1 // Increment (i.e. decrement vfork count) + stxr w11, w10, [x9] // Attempt exclusive store of updated vfork count + cbnz w11, Lparent // If exclusive store failed, retry + ARM64_STACK_EPILOG // Done, return + +#else +#error Unsupported architecture +#endif +#if defined(__i386__) + .globl _vfork + .set _vfork, ___vfork +#endif + +#if defined(__x86_64__) + .globl _vfork + .set _vfork, ___vfork +#endif + +#if defined(__ppc__) + .globl _vfork + .set _vfork, ___vfork +#endif + +#if defined(__arm64__) + .globl _vfork + .set _vfork, ___vfork +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___wait4.S b/src/kernel/libsyscall/bsdsyscalls/___wait4.S new file mode 100644 index 000000000..781198296 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___wait4.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_wait4 +#error "SYS_wait4 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___wait4) +SYSCALL_NONAME(wait4, 4, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___wait4, wait4, 4, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___wait4_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___wait4_nocancel.S new file mode 100644 index 000000000..4dbc6a92d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___wait4_nocancel.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_wait4_nocancel +#error "SYS_wait4_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___wait4_nocancel) +SYSCALL_NONAME(wait4_nocancel, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___wait4_nocancel, wait4_nocancel, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _wait4 + .set _wait4, ___wait4_nocancel +#endif + +#if defined(__x86_64__) + .globl _wait4 + .set _wait4, ___wait4_nocancel +#endif + +#if defined(__ppc__) + .globl _wait4 + .set _wait4, ___wait4_nocancel +#endif + +#if defined(__arm64__) + .globl _wait4 + .set _wait4, ___wait4_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___waitid_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___waitid_nocancel.S new file mode 100644 index 000000000..67c3e465a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___waitid_nocancel.S @@ -0,0 +1,42 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_waitid_nocancel +#error "SYS_waitid_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___waitid_nocancel) +SYSCALL_NONAME(waitid_nocancel, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___waitid_nocancel, waitid_nocancel, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _waitid + .set _waitid, ___waitid_nocancel + .globl _waitid$NOCANCEL$UNIX2003 + .set _waitid$NOCANCEL$UNIX2003, ___waitid_nocancel +#endif + +#if defined(__x86_64__) + .globl _waitid$NOCANCEL + .set _waitid$NOCANCEL, ___waitid_nocancel +#endif + +#if defined(__ppc__) + .globl _waitid + .set _waitid, ___waitid_nocancel + .globl _waitid$NOCANCEL$UNIX2003 + .set _waitid$NOCANCEL$UNIX2003, ___waitid_nocancel +#endif + +#if defined(__arm64__) + .globl _waitid$NOCANCEL + .set _waitid$NOCANCEL, ___waitid_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___work_interval_ctl.S b/src/kernel/libsyscall/bsdsyscalls/___work_interval_ctl.S new file mode 100644 index 000000000..749d443c5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___work_interval_ctl.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_work_interval_ctl +#error "SYS_work_interval_ctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___work_interval_ctl) +ZERO_EXTEND(3) +SYSCALL_NONAME(work_interval_ctl, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___work_interval_ctl, work_interval_ctl, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___workq_kernreturn.S b/src/kernel/libsyscall/bsdsyscalls/___workq_kernreturn.S new file mode 100644 index 000000000..8f130e714 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___workq_kernreturn.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_workq_kernreturn +#error "SYS_workq_kernreturn not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___workq_kernreturn) +SYSCALL_NONAME(workq_kernreturn, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___workq_kernreturn, workq_kernreturn, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___workq_open.S b/src/kernel/libsyscall/bsdsyscalls/___workq_open.S new file mode 100644 index 000000000..d0e0c428f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___workq_open.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_workq_open +#error "SYS_workq_open not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___workq_open) +SYSCALL_NONAME(workq_open, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___workq_open, workq_open, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___write_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___write_nocancel.S new file mode 100644 index 000000000..65ec6da7a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___write_nocancel.S @@ -0,0 +1,43 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_write_nocancel +#error "SYS_write_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___write_nocancel) +ZERO_EXTEND(2) +SYSCALL_NONAME(write_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___write_nocancel, write_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _write + .set _write, ___write_nocancel + .globl _write$NOCANCEL$UNIX2003 + .set _write$NOCANCEL$UNIX2003, ___write_nocancel +#endif + +#if defined(__x86_64__) + .globl _write$NOCANCEL + .set _write$NOCANCEL, ___write_nocancel +#endif + +#if defined(__ppc__) + .globl _write + .set _write, ___write_nocancel + .globl _write$NOCANCEL$UNIX2003 + .set _write$NOCANCEL$UNIX2003, ___write_nocancel +#endif + +#if defined(__arm64__) + .globl _write$NOCANCEL + .set _write$NOCANCEL, ___write_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/___writev_nocancel.S b/src/kernel/libsyscall/bsdsyscalls/___writev_nocancel.S new file mode 100644 index 000000000..31c7ea6e8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/___writev_nocancel.S @@ -0,0 +1,42 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_writev_nocancel +#error "SYS_writev_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(___writev_nocancel) +SYSCALL_NONAME(writev_nocancel, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(___writev_nocancel, writev_nocancel, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _writev + .set _writev, ___writev_nocancel + .globl _writev$NOCANCEL$UNIX2003 + .set _writev$NOCANCEL$UNIX2003, ___writev_nocancel +#endif + +#if defined(__x86_64__) + .globl _writev$NOCANCEL + .set _writev$NOCANCEL, ___writev_nocancel +#endif + +#if defined(__ppc__) + .globl _writev + .set _writev, ___writev_nocancel + .globl _writev$NOCANCEL$UNIX2003 + .set _writev$NOCANCEL$UNIX2003, ___writev_nocancel +#endif + +#if defined(__arm64__) + .globl _writev$NOCANCEL + .set _writev$NOCANCEL, ___writev_nocancel +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_access.S b/src/kernel/libsyscall/bsdsyscalls/_access.S new file mode 100644 index 000000000..5208234b8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_access.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_access +#error "SYS_access not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_access) +SYSCALL_NONAME(access, 2, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_access, access, 2, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_acct.S b/src/kernel/libsyscall/bsdsyscalls/_acct.S new file mode 100644 index 000000000..dd1125ae9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_acct.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_acct +#error "SYS_acct not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_acct) +SYSCALL_NONAME(acct, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_acct, acct, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_adjtime.S b/src/kernel/libsyscall/bsdsyscalls/_adjtime.S new file mode 100644 index 000000000..75f6dd06d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_adjtime.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_adjtime +#error "SYS_adjtime not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_adjtime) +SYSCALL_NONAME(adjtime, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_adjtime, adjtime, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_aio_cancel.S b/src/kernel/libsyscall/bsdsyscalls/_aio_cancel.S new file mode 100644 index 000000000..d258933f3 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_aio_cancel.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_aio_cancel +#error "SYS_aio_cancel not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_aio_cancel) +SYSCALL_NONAME(aio_cancel, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_aio_cancel, aio_cancel, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_aio_error.S b/src/kernel/libsyscall/bsdsyscalls/_aio_error.S new file mode 100644 index 000000000..bf374d06c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_aio_error.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_aio_error +#error "SYS_aio_error not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_aio_error) +SYSCALL_NONAME(aio_error, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_aio_error, aio_error, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_aio_fsync.S b/src/kernel/libsyscall/bsdsyscalls/_aio_fsync.S new file mode 100644 index 000000000..12f955476 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_aio_fsync.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_aio_fsync +#error "SYS_aio_fsync not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_aio_fsync) +SYSCALL_NONAME(aio_fsync, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_aio_fsync, aio_fsync, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_aio_read.S b/src/kernel/libsyscall/bsdsyscalls/_aio_read.S new file mode 100644 index 000000000..97a56fe71 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_aio_read.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_aio_read +#error "SYS_aio_read not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_aio_read) +SYSCALL_NONAME(aio_read, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_aio_read, aio_read, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_aio_return.S b/src/kernel/libsyscall/bsdsyscalls/_aio_return.S new file mode 100644 index 000000000..ee990fd5e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_aio_return.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_aio_return +#error "SYS_aio_return not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_aio_return) +SYSCALL_NONAME(aio_return, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_aio_return, aio_return, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_aio_suspend.S b/src/kernel/libsyscall/bsdsyscalls/_aio_suspend.S new file mode 100644 index 000000000..72d391e7f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_aio_suspend.S @@ -0,0 +1,30 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_aio_suspend +#error "SYS_aio_suspend not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_aio_suspend) +SYSCALL_NONAME(aio_suspend, 3, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_aio_suspend, aio_suspend, 3, cerror) +#else +__SYSCALL2(___aio_suspend, aio_suspend, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _aio_suspend$UNIX2003 + .set _aio_suspend$UNIX2003, ___aio_suspend +#endif + +#if defined(__ppc__) + .globl _aio_suspend$UNIX2003 + .set _aio_suspend$UNIX2003, ___aio_suspend +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_aio_write.S b/src/kernel/libsyscall/bsdsyscalls/_aio_write.S new file mode 100644 index 000000000..2c8551263 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_aio_write.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_aio_write +#error "SYS_aio_write not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_aio_write) +SYSCALL_NONAME(aio_write, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_aio_write, aio_write, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_audit.S b/src/kernel/libsyscall/bsdsyscalls/_audit.S new file mode 100644 index 000000000..41a4073bb --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_audit.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_audit +#error "SYS_audit not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_audit) +SYSCALL_NONAME(audit, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_audit, audit, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_audit_session_join.S b/src/kernel/libsyscall/bsdsyscalls/_audit_session_join.S new file mode 100644 index 000000000..001e4f434 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_audit_session_join.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_audit_session_join +#error "SYS_audit_session_join not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_audit_session_join) +SYSCALL_NONAME(audit_session_join, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_audit_session_join, audit_session_join, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_audit_session_port.S b/src/kernel/libsyscall/bsdsyscalls/_audit_session_port.S new file mode 100644 index 000000000..0f119da20 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_audit_session_port.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_audit_session_port +#error "SYS_audit_session_port not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_audit_session_port) +SYSCALL_NONAME(audit_session_port, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_audit_session_port, audit_session_port, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_audit_session_self.S b/src/kernel/libsyscall/bsdsyscalls/_audit_session_self.S new file mode 100644 index 000000000..34d7c7ba5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_audit_session_self.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_audit_session_self +#error "SYS_audit_session_self not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_audit_session_self) +SYSCALL_NONAME(audit_session_self, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_audit_session_self, audit_session_self, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_auditctl.S b/src/kernel/libsyscall/bsdsyscalls/_auditctl.S new file mode 100644 index 000000000..a1c0d0f3d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_auditctl.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_auditctl +#error "SYS_auditctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_auditctl) +SYSCALL_NONAME(auditctl, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_auditctl, auditctl, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_auditon.S b/src/kernel/libsyscall/bsdsyscalls/_auditon.S new file mode 100644 index 000000000..3ea4ca74c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_auditon.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_auditon +#error "SYS_auditon not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_auditon) +SYSCALL_NONAME(auditon, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_auditon, auditon, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_change_fdguard_np.S b/src/kernel/libsyscall/bsdsyscalls/_change_fdguard_np.S new file mode 100644 index 000000000..2ea4d67ad --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_change_fdguard_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_change_fdguard_np +#error "SYS_change_fdguard_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_change_fdguard_np) +SYSCALL_NONAME(change_fdguard_np, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_change_fdguard_np, change_fdguard_np, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_chdir.S b/src/kernel/libsyscall/bsdsyscalls/_chdir.S new file mode 100644 index 000000000..604262778 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_chdir.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_chdir +#error "SYS_chdir not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_chdir) +SYSCALL_NONAME(chdir, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_chdir, chdir, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_chflags.S b/src/kernel/libsyscall/bsdsyscalls/_chflags.S new file mode 100644 index 000000000..e81353efc --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_chflags.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_chflags +#error "SYS_chflags not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_chflags) +SYSCALL_NONAME(chflags, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_chflags, chflags, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_chown.S b/src/kernel/libsyscall/bsdsyscalls/_chown.S new file mode 100644 index 000000000..18da082a5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_chown.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_chown +#error "SYS_chown not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_chown) +SYSCALL_NONAME(chown, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_chown, chown, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_chroot.S b/src/kernel/libsyscall/bsdsyscalls/_chroot.S new file mode 100644 index 000000000..c52678de9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_chroot.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_chroot +#error "SYS_chroot not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_chroot) +SYSCALL_NONAME(chroot, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_chroot, chroot, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_clonefileat.S b/src/kernel/libsyscall/bsdsyscalls/_clonefileat.S new file mode 100644 index 000000000..9747c73f6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_clonefileat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_clonefileat +#error "SYS_clonefileat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_clonefileat) +SYSCALL_NONAME(clonefileat, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_clonefileat, clonefileat, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_close.S b/src/kernel/libsyscall/bsdsyscalls/_close.S new file mode 100644 index 000000000..d69c68455 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_close.S @@ -0,0 +1,30 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_close +#error "SYS_close not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_close) +SYSCALL_NONAME(close, 1, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_close, close, 1, cerror) +#else +__SYSCALL2(___close, close, 1, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _close$UNIX2003 + .set _close$UNIX2003, ___close +#endif + +#if defined(__ppc__) + .globl _close$UNIX2003 + .set _close$UNIX2003, ___close +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_connectx.S b/src/kernel/libsyscall/bsdsyscalls/_connectx.S new file mode 100644 index 000000000..442760082 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_connectx.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 32 +#include "SYS.h" + +#ifndef SYS_connectx +#error "SYS_connectx not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_connectx) +SYSCALL_NONAME(connectx, 8, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_connectx, connectx, 8, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_csops.S b/src/kernel/libsyscall/bsdsyscalls/_csops.S new file mode 100644 index 000000000..119773415 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_csops.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_csops +#error "SYS_csops not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_csops) +ZERO_EXTEND(3) +SYSCALL_NONAME(csops, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_csops, csops, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_csops_audittoken.S b/src/kernel/libsyscall/bsdsyscalls/_csops_audittoken.S new file mode 100644 index 000000000..a3664af0e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_csops_audittoken.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_csops_audittoken +#error "SYS_csops_audittoken not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_csops_audittoken) +ZERO_EXTEND(3) +SYSCALL_NONAME(csops_audittoken, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_csops_audittoken, csops_audittoken, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_disconnectx.S b/src/kernel/libsyscall/bsdsyscalls/_disconnectx.S new file mode 100644 index 000000000..56b9cba0f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_disconnectx.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_disconnectx +#error "SYS_disconnectx not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_disconnectx) +SYSCALL_NONAME(disconnectx, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_disconnectx, disconnectx, 3, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_dup.S b/src/kernel/libsyscall/bsdsyscalls/_dup.S new file mode 100644 index 000000000..d7d42d125 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_dup.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_dup +#error "SYS_dup not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_dup) +SYSCALL_NONAME(dup, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_dup, dup, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_dup2.S b/src/kernel/libsyscall/bsdsyscalls/_dup2.S new file mode 100644 index 000000000..64005ac2e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_dup2.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_dup2 +#error "SYS_dup2 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_dup2) +SYSCALL_NONAME(dup2, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_dup2, dup2, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_exchangedata.S b/src/kernel/libsyscall/bsdsyscalls/_exchangedata.S new file mode 100644 index 000000000..826db7a4f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_exchangedata.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_exchangedata +#error "SYS_exchangedata not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_exchangedata) +ZERO_EXTEND(2) +SYSCALL_NONAME(exchangedata, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_exchangedata, exchangedata, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_execve.S b/src/kernel/libsyscall/bsdsyscalls/_execve.S new file mode 100644 index 000000000..a2ac127ea --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_execve.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_execve +#error "SYS_execve not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_execve) +SYSCALL_NONAME(execve, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_execve, execve, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_faccessat.S b/src/kernel/libsyscall/bsdsyscalls/_faccessat.S new file mode 100644 index 000000000..23c0a7b0f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_faccessat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_faccessat +#error "SYS_faccessat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_faccessat) +SYSCALL_NONAME(faccessat, 4, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_faccessat, faccessat, 4, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fchdir.S b/src/kernel/libsyscall/bsdsyscalls/_fchdir.S new file mode 100644 index 000000000..8c747a2e6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fchdir.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_fchdir +#error "SYS_fchdir not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fchdir) +SYSCALL_NONAME(fchdir, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fchdir, fchdir, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fchflags.S b/src/kernel/libsyscall/bsdsyscalls/_fchflags.S new file mode 100644 index 000000000..a772a1eb5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fchflags.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_fchflags +#error "SYS_fchflags not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fchflags) +SYSCALL_NONAME(fchflags, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fchflags, fchflags, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fchmodat.S b/src/kernel/libsyscall/bsdsyscalls/_fchmodat.S new file mode 100644 index 000000000..25f260443 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fchmodat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_fchmodat +#error "SYS_fchmodat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fchmodat) +SYSCALL_NONAME(fchmodat, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fchmodat, fchmodat, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fchown.S b/src/kernel/libsyscall/bsdsyscalls/_fchown.S new file mode 100644 index 000000000..94e8209d9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fchown.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_fchown +#error "SYS_fchown not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fchown) +SYSCALL_NONAME(fchown, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fchown, fchown, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fchownat.S b/src/kernel/libsyscall/bsdsyscalls/_fchownat.S new file mode 100644 index 000000000..424b0719f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fchownat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_fchownat +#error "SYS_fchownat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fchownat) +SYSCALL_NONAME(fchownat, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fchownat, fchownat, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fclonefileat.S b/src/kernel/libsyscall/bsdsyscalls/_fclonefileat.S new file mode 100644 index 000000000..4e7378416 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fclonefileat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_fclonefileat +#error "SYS_fclonefileat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fclonefileat) +SYSCALL_NONAME(fclonefileat, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fclonefileat, fclonefileat, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fdatasync.S b/src/kernel/libsyscall/bsdsyscalls/_fdatasync.S new file mode 100644 index 000000000..e86753fa5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fdatasync.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_fdatasync +#error "SYS_fdatasync not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fdatasync) +SYSCALL_NONAME(fdatasync, 1, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fdatasync, fdatasync, 1, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_ffsctl.S b/src/kernel/libsyscall/bsdsyscalls/_ffsctl.S new file mode 100644 index 000000000..aff1a2e77 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_ffsctl.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_ffsctl +#error "SYS_ffsctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_ffsctl) +ZERO_EXTEND(1) +SYSCALL_NONAME(ffsctl, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_ffsctl, ffsctl, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fgetattrlist.S b/src/kernel/libsyscall/bsdsyscalls/_fgetattrlist.S new file mode 100644 index 000000000..505ddb1da --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fgetattrlist.S @@ -0,0 +1,20 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_fgetattrlist +#error "SYS_fgetattrlist not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fgetattrlist) +ZERO_EXTEND(3) +ZERO_EXTEND(4) +SYSCALL_NONAME(fgetattrlist, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fgetattrlist, fgetattrlist, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fgetxattr.S b/src/kernel/libsyscall/bsdsyscalls/_fgetxattr.S new file mode 100644 index 000000000..528723a6a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fgetxattr.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_fgetxattr +#error "SYS_fgetxattr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fgetxattr) +ZERO_EXTEND(3) +SYSCALL_NONAME(fgetxattr, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fgetxattr, fgetxattr, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fhopen.S b/src/kernel/libsyscall/bsdsyscalls/_fhopen.S new file mode 100644 index 000000000..d96369981 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fhopen.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_fhopen +#error "SYS_fhopen not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fhopen) +SYSCALL_NONAME(fhopen, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fhopen, fhopen, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fileport_makefd.S b/src/kernel/libsyscall/bsdsyscalls/_fileport_makefd.S new file mode 100644 index 000000000..a19a611c8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fileport_makefd.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_fileport_makefd +#error "SYS_fileport_makefd not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fileport_makefd) +SYSCALL_NONAME(fileport_makefd, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fileport_makefd, fileport_makefd, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fileport_makeport.S b/src/kernel/libsyscall/bsdsyscalls/_fileport_makeport.S new file mode 100644 index 000000000..eab6d6000 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fileport_makeport.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_fileport_makeport +#error "SYS_fileport_makeport not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fileport_makeport) +SYSCALL_NONAME(fileport_makeport, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fileport_makeport, fileport_makeport, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_flistxattr.S b/src/kernel/libsyscall/bsdsyscalls/_flistxattr.S new file mode 100644 index 000000000..92d5ff601 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_flistxattr.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_flistxattr +#error "SYS_flistxattr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_flistxattr) +ZERO_EXTEND(2) +SYSCALL_NONAME(flistxattr, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_flistxattr, flistxattr, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_flock.S b/src/kernel/libsyscall/bsdsyscalls/_flock.S new file mode 100644 index 000000000..3bd60ae41 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_flock.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_flock +#error "SYS_flock not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_flock) +SYSCALL_NONAME(flock, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_flock, flock, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fmount.S b/src/kernel/libsyscall/bsdsyscalls/_fmount.S new file mode 100644 index 000000000..ebe426c2e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fmount.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_fmount +#error "SYS_fmount not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fmount) +SYSCALL_NONAME(fmount, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fmount, fmount, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fpathconf.S b/src/kernel/libsyscall/bsdsyscalls/_fpathconf.S new file mode 100644 index 000000000..ea18475e0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fpathconf.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_fpathconf +#error "SYS_fpathconf not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fpathconf) +SYSCALL_NONAME(fpathconf, 2, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fpathconf, fpathconf, 2, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fremovexattr.S b/src/kernel/libsyscall/bsdsyscalls/_fremovexattr.S new file mode 100644 index 000000000..1c03463ac --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fremovexattr.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_fremovexattr +#error "SYS_fremovexattr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fremovexattr) +SYSCALL_NONAME(fremovexattr, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fremovexattr, fremovexattr, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fsctl.S b/src/kernel/libsyscall/bsdsyscalls/_fsctl.S new file mode 100644 index 000000000..d12602988 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fsctl.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_fsctl +#error "SYS_fsctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fsctl) +ZERO_EXTEND(1) +SYSCALL_NONAME(fsctl, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fsctl, fsctl, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fsetattrlist.S b/src/kernel/libsyscall/bsdsyscalls/_fsetattrlist.S new file mode 100644 index 000000000..30ff7284a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fsetattrlist.S @@ -0,0 +1,20 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_fsetattrlist +#error "SYS_fsetattrlist not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fsetattrlist) +ZERO_EXTEND(3) +ZERO_EXTEND(4) +SYSCALL_NONAME(fsetattrlist, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fsetattrlist, fsetattrlist, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fsetxattr.S b/src/kernel/libsyscall/bsdsyscalls/_fsetxattr.S new file mode 100644 index 000000000..30c785ec3 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fsetxattr.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_fsetxattr +#error "SYS_fsetxattr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fsetxattr) +ZERO_EXTEND(3) +SYSCALL_NONAME(fsetxattr, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fsetxattr, fsetxattr, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fsgetpath.S b/src/kernel/libsyscall/bsdsyscalls/_fsgetpath.S new file mode 100644 index 000000000..f10232af4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fsgetpath.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_fsgetpath +#error "SYS_fsgetpath not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fsgetpath) +ZERO_EXTEND(1) +SYSCALL_NONAME(fsgetpath, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fsgetpath, fsgetpath, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fsgetpath_ext.S b/src/kernel/libsyscall/bsdsyscalls/_fsgetpath_ext.S new file mode 100644 index 000000000..a5ff23cd7 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fsgetpath_ext.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_fsgetpath_ext +#error "SYS_fsgetpath_ext not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fsgetpath_ext) +ZERO_EXTEND(1) +SYSCALL_NONAME(fsgetpath_ext, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fsgetpath_ext, fsgetpath_ext, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fstat.S b/src/kernel/libsyscall/bsdsyscalls/_fstat.S new file mode 100644 index 000000000..b057456e8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fstat.S @@ -0,0 +1,13 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_fstat +#error "SYS_fstat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) +__SYSCALL2(_fstat, fstat, 2, cerror) +#else +__SYSCALL2(___fstat, fstat, 2, cerror) +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fstat64.S b/src/kernel/libsyscall/bsdsyscalls/_fstat64.S new file mode 100644 index 000000000..b8cb1e8fc --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fstat64.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_fstat64 +#error "SYS_fstat64 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fstat64) +SYSCALL_NONAME(fstat64, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fstat64, fstat64, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _fstat$INODE64 + .set _fstat$INODE64, _fstat64 +#endif + +#if defined(__x86_64__) + .globl _fstat$INODE64 + .set _fstat$INODE64, _fstat64 +#endif + +#if defined(__ppc__) + .globl _fstat$INODE64 + .set _fstat$INODE64, _fstat64 +#endif + +#if defined(__arm64__) + .globl _fstat + .set _fstat, _fstat64 +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fstatat.S b/src/kernel/libsyscall/bsdsyscalls/_fstatat.S new file mode 100644 index 000000000..e748032bb --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fstatat.S @@ -0,0 +1,13 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_fstatat +#error "SYS_fstatat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) +__SYSCALL2(_fstatat, fstatat, 4, cerror) +#else +__SYSCALL2(___fstatat, fstatat, 4, cerror) +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fstatat64.S b/src/kernel/libsyscall/bsdsyscalls/_fstatat64.S new file mode 100644 index 000000000..5797000c0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fstatat64.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_fstatat64 +#error "SYS_fstatat64 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fstatat64) +SYSCALL_NONAME(fstatat64, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fstatat64, fstatat64, 4, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _fstatat$INODE64 + .set _fstatat$INODE64, _fstatat64 +#endif + +#if defined(__x86_64__) + .globl _fstatat$INODE64 + .set _fstatat$INODE64, _fstatat64 +#endif + +#if defined(__ppc__) + .globl _fstatat$INODE64 + .set _fstatat$INODE64, _fstatat64 +#endif + +#if defined(__arm64__) + .globl _fstatat + .set _fstatat, _fstatat64 +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fstatfs.S b/src/kernel/libsyscall/bsdsyscalls/_fstatfs.S new file mode 100644 index 000000000..712a494ab --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fstatfs.S @@ -0,0 +1,13 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_fstatfs +#error "SYS_fstatfs not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) +__SYSCALL2(_fstatfs, fstatfs, 2, cerror_nocancel) +#else +__SYSCALL2(___fstatfs, fstatfs, 2, cerror_nocancel) +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fstatfs64.S b/src/kernel/libsyscall/bsdsyscalls/_fstatfs64.S new file mode 100644 index 000000000..2acbe0815 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fstatfs64.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_fstatfs64 +#error "SYS_fstatfs64 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fstatfs64) +SYSCALL_NONAME(fstatfs64, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_fstatfs64, fstatfs64, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _fstatfs$INODE64 + .set _fstatfs$INODE64, _fstatfs64 +#endif + +#if defined(__x86_64__) + .globl _fstatfs$INODE64 + .set _fstatfs$INODE64, _fstatfs64 +#endif + +#if defined(__ppc__) + .globl _fstatfs$INODE64 + .set _fstatfs$INODE64, _fstatfs64 +#endif + +#if defined(__arm64__) + .globl _fstatfs + .set _fstatfs, _fstatfs64 +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_fsync.S b/src/kernel/libsyscall/bsdsyscalls/_fsync.S new file mode 100644 index 000000000..f71d1ffb7 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_fsync.S @@ -0,0 +1,30 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_fsync +#error "SYS_fsync not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_fsync) +SYSCALL_NONAME(fsync, 1, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_fsync, fsync, 1, cerror) +#else +__SYSCALL2(___fsync, fsync, 1, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _fsync$UNIX2003 + .set _fsync$UNIX2003, ___fsync +#endif + +#if defined(__ppc__) + .globl _fsync$UNIX2003 + .set _fsync$UNIX2003, ___fsync +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_ftruncate.S b/src/kernel/libsyscall/bsdsyscalls/_ftruncate.S new file mode 100644 index 000000000..2ad0d857d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_ftruncate.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_ftruncate +#error "SYS_ftruncate not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_ftruncate) +SYSCALL_NONAME(ftruncate, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_ftruncate, ftruncate, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_futimes.S b/src/kernel/libsyscall/bsdsyscalls/_futimes.S new file mode 100644 index 000000000..df7d6bd40 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_futimes.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_futimes +#error "SYS_futimes not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_futimes) +SYSCALL_NONAME(futimes, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_futimes, futimes, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getattrlistat.S b/src/kernel/libsyscall/bsdsyscalls/_getattrlistat.S new file mode 100644 index 000000000..555a493e3 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getattrlistat.S @@ -0,0 +1,20 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_getattrlistat +#error "SYS_getattrlistat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getattrlistat) +ZERO_EXTEND(5) +ZERO_EXTEND(4) +SYSCALL_NONAME(getattrlistat, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getattrlistat, getattrlistat, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getattrlistbulk.S b/src/kernel/libsyscall/bsdsyscalls/_getattrlistbulk.S new file mode 100644 index 000000000..217b2e780 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getattrlistbulk.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_getattrlistbulk +#error "SYS_getattrlistbulk not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getattrlistbulk) +ZERO_EXTEND(3) +SYSCALL_NONAME(getattrlistbulk, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getattrlistbulk, getattrlistbulk, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getaudit_addr.S b/src/kernel/libsyscall/bsdsyscalls/_getaudit_addr.S new file mode 100644 index 000000000..1e321d446 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getaudit_addr.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getaudit_addr +#error "SYS_getaudit_addr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getaudit_addr) +SYSCALL_NONAME(getaudit_addr, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getaudit_addr, getaudit_addr, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getauid.S b/src/kernel/libsyscall/bsdsyscalls/_getauid.S new file mode 100644 index 000000000..ac15d64e9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getauid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_getauid +#error "SYS_getauid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getauid) +SYSCALL_NONAME(getauid, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getauid, getauid, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getdirentries.S b/src/kernel/libsyscall/bsdsyscalls/_getdirentries.S new file mode 100644 index 000000000..a7a02831b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getdirentries.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_getdirentries +#error "SYS_getdirentries not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getdirentries) +SYSCALL_NONAME(getdirentries, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getdirentries, getdirentries, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getdirentriesattr.S b/src/kernel/libsyscall/bsdsyscalls/_getdirentriesattr.S new file mode 100644 index 000000000..19c121676 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getdirentriesattr.S @@ -0,0 +1,20 @@ +#define __SYSCALL_32BIT_ARG_BYTES 32 +#include "SYS.h" + +#ifndef SYS_getdirentriesattr +#error "SYS_getdirentriesattr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getdirentriesattr) +ZERO_EXTEND(3) +ZERO_EXTEND(7) +SYSCALL_NONAME(getdirentriesattr, 8, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getdirentriesattr, getdirentriesattr, 8, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getdtablesize.S b/src/kernel/libsyscall/bsdsyscalls/_getdtablesize.S new file mode 100644 index 000000000..91316e769 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getdtablesize.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_getdtablesize +#error "SYS_getdtablesize not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getdtablesize) +SYSCALL_NONAME(getdtablesize, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getdtablesize, getdtablesize, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getegid.S b/src/kernel/libsyscall/bsdsyscalls/_getegid.S new file mode 100644 index 000000000..6821b0075 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getegid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_getegid +#error "SYS_getegid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getegid) +SYSCALL_NONAME(getegid, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getegid, getegid, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getentropy.S b/src/kernel/libsyscall/bsdsyscalls/_getentropy.S new file mode 100644 index 000000000..3a1d1af6b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getentropy.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getentropy +#error "SYS_getentropy not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getentropy) +ZERO_EXTEND(1) +SYSCALL_NONAME(getentropy, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getentropy, getentropy, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_geteuid.S b/src/kernel/libsyscall/bsdsyscalls/_geteuid.S new file mode 100644 index 000000000..39175f3e2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_geteuid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_geteuid +#error "SYS_geteuid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_geteuid) +SYSCALL_NONAME(geteuid, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_geteuid, geteuid, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getfh.S b/src/kernel/libsyscall/bsdsyscalls/_getfh.S new file mode 100644 index 000000000..2fe50bca4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getfh.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getfh +#error "SYS_getfh not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getfh) +SYSCALL_NONAME(getfh, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getfh, getfh, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getfsstat.S b/src/kernel/libsyscall/bsdsyscalls/_getfsstat.S new file mode 100644 index 000000000..5f21730d5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getfsstat.S @@ -0,0 +1,13 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_getfsstat +#error "SYS_getfsstat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) +__SYSCALL2(_getfsstat, getfsstat, 3, cerror_nocancel) +#else +__SYSCALL2(___getfsstat, getfsstat, 3, cerror_nocancel) +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getfsstat64.S b/src/kernel/libsyscall/bsdsyscalls/_getfsstat64.S new file mode 100644 index 000000000..a4323e4cf --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getfsstat64.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_getfsstat64 +#error "SYS_getfsstat64 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getfsstat64) +SYSCALL_NONAME(getfsstat64, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getfsstat64, getfsstat64, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _getfsstat$INODE64 + .set _getfsstat$INODE64, _getfsstat64 +#endif + +#if defined(__x86_64__) + .globl _getfsstat$INODE64 + .set _getfsstat$INODE64, _getfsstat64 +#endif + +#if defined(__ppc__) + .globl _getfsstat$INODE64 + .set _getfsstat$INODE64, _getfsstat64 +#endif + +#if defined(__arm64__) + .globl _getfsstat + .set _getfsstat, _getfsstat64 +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getgid.S b/src/kernel/libsyscall/bsdsyscalls/_getgid.S new file mode 100644 index 000000000..014db5509 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getgid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_getgid +#error "SYS_getgid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getgid) +SYSCALL_NONAME(getgid, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getgid, getgid, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getgroups.S b/src/kernel/libsyscall/bsdsyscalls/_getgroups.S new file mode 100644 index 000000000..576143114 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getgroups.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getgroups +#error "SYS_getgroups not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getgroups) +SYSCALL_NONAME(getgroups, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getgroups, getgroups, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getitimer.S b/src/kernel/libsyscall/bsdsyscalls/_getitimer.S new file mode 100644 index 000000000..53e8501c4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getitimer.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getitimer +#error "SYS_getitimer not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getitimer) +SYSCALL_NONAME(getitimer, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getitimer, getitimer, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getpgid.S b/src/kernel/libsyscall/bsdsyscalls/_getpgid.S new file mode 100644 index 000000000..2faba9ca6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getpgid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_getpgid +#error "SYS_getpgid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getpgid) +SYSCALL_NONAME(getpgid, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getpgid, getpgid, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getpgrp.S b/src/kernel/libsyscall/bsdsyscalls/_getpgrp.S new file mode 100644 index 000000000..f642fc585 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getpgrp.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_getpgrp +#error "SYS_getpgrp not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getpgrp) +SYSCALL_NONAME(getpgrp, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getpgrp, getpgrp, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getppid.S b/src/kernel/libsyscall/bsdsyscalls/_getppid.S new file mode 100644 index 000000000..132f4745a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getppid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_getppid +#error "SYS_getppid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getppid) +SYSCALL_NONAME(getppid, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getppid, getppid, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getpriority.S b/src/kernel/libsyscall/bsdsyscalls/_getpriority.S new file mode 100644 index 000000000..b9918c2fd --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getpriority.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getpriority +#error "SYS_getpriority not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getpriority) +SYSCALL_NONAME(getpriority, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getpriority, getpriority, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getrusage.S b/src/kernel/libsyscall/bsdsyscalls/_getrusage.S new file mode 100644 index 000000000..c3691b74b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getrusage.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_getrusage +#error "SYS_getrusage not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getrusage) +SYSCALL_NONAME(getrusage, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getrusage, getrusage, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getsid.S b/src/kernel/libsyscall/bsdsyscalls/_getsid.S new file mode 100644 index 000000000..d39d24697 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getsid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_getsid +#error "SYS_getsid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getsid) +SYSCALL_NONAME(getsid, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getsid, getsid, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getsockopt.S b/src/kernel/libsyscall/bsdsyscalls/_getsockopt.S new file mode 100644 index 000000000..deb983840 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getsockopt.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_getsockopt +#error "SYS_getsockopt not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getsockopt) +SYSCALL_NONAME(getsockopt, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getsockopt, getsockopt, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getuid.S b/src/kernel/libsyscall/bsdsyscalls/_getuid.S new file mode 100644 index 000000000..33164bf56 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getuid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_getuid +#error "SYS_getuid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getuid) +SYSCALL_NONAME(getuid, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getuid, getuid, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_getxattr.S b/src/kernel/libsyscall/bsdsyscalls/_getxattr.S new file mode 100644 index 000000000..db566b6ba --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_getxattr.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_getxattr +#error "SYS_getxattr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_getxattr) +ZERO_EXTEND(3) +SYSCALL_NONAME(getxattr, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_getxattr, getxattr, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_grab_pgo_data.S b/src/kernel/libsyscall/bsdsyscalls/_grab_pgo_data.S new file mode 100644 index 000000000..d04343b0f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_grab_pgo_data.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_grab_pgo_data +#error "SYS_grab_pgo_data not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_grab_pgo_data) +SIGN_EXTEND(3) +SYSCALL_NONAME(grab_pgo_data, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_grab_pgo_data, grab_pgo_data, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_guarded_close_np.S b/src/kernel/libsyscall/bsdsyscalls/_guarded_close_np.S new file mode 100644 index 000000000..0b4de8c3a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_guarded_close_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_guarded_close_np +#error "SYS_guarded_close_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_guarded_close_np) +SYSCALL_NONAME(guarded_close_np, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_guarded_close_np, guarded_close_np, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_guarded_kqueue_np.S b/src/kernel/libsyscall/bsdsyscalls/_guarded_kqueue_np.S new file mode 100644 index 000000000..a76b5983c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_guarded_kqueue_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_guarded_kqueue_np +#error "SYS_guarded_kqueue_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_guarded_kqueue_np) +SYSCALL_NONAME(guarded_kqueue_np, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_guarded_kqueue_np, guarded_kqueue_np, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_guarded_pwrite_np.S b/src/kernel/libsyscall/bsdsyscalls/_guarded_pwrite_np.S new file mode 100644 index 000000000..bbeb61fa6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_guarded_pwrite_np.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_guarded_pwrite_np +#error "SYS_guarded_pwrite_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_guarded_pwrite_np) +ZERO_EXTEND(3) +SYSCALL_NONAME(guarded_pwrite_np, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_guarded_pwrite_np, guarded_pwrite_np, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_guarded_write_np.S b/src/kernel/libsyscall/bsdsyscalls/_guarded_write_np.S new file mode 100644 index 000000000..047586816 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_guarded_write_np.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_guarded_write_np +#error "SYS_guarded_write_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_guarded_write_np) +ZERO_EXTEND(3) +SYSCALL_NONAME(guarded_write_np, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_guarded_write_np, guarded_write_np, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_guarded_writev_np.S b/src/kernel/libsyscall/bsdsyscalls/_guarded_writev_np.S new file mode 100644 index 000000000..ce2ae60e7 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_guarded_writev_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_guarded_writev_np +#error "SYS_guarded_writev_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_guarded_writev_np) +SYSCALL_NONAME(guarded_writev_np, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_guarded_writev_np, guarded_writev_np, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_issetugid.S b/src/kernel/libsyscall/bsdsyscalls/_issetugid.S new file mode 100644 index 000000000..e5c888763 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_issetugid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_issetugid +#error "SYS_issetugid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_issetugid) +SYSCALL_NONAME(issetugid, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_issetugid, issetugid, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_kas_info.S b/src/kernel/libsyscall/bsdsyscalls/_kas_info.S new file mode 100644 index 000000000..10e61f74b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_kas_info.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_kas_info +#error "SYS_kas_info not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_kas_info) +SYSCALL_NONAME(kas_info, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_kas_info, kas_info, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_kevent.S b/src/kernel/libsyscall/bsdsyscalls/_kevent.S new file mode 100644 index 000000000..fc4a75ae4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_kevent.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_kevent +#error "SYS_kevent not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_kevent) +SYSCALL_NONAME(kevent, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_kevent, kevent, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_kevent64.S b/src/kernel/libsyscall/bsdsyscalls/_kevent64.S new file mode 100644 index 000000000..2420051ed --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_kevent64.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 28 +#include "SYS.h" + +#ifndef SYS_kevent64 +#error "SYS_kevent64 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_kevent64) +SYSCALL_NONAME(kevent64, 7, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_kevent64, kevent64, 7, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_kevent_id.S b/src/kernel/libsyscall/bsdsyscalls/_kevent_id.S new file mode 100644 index 000000000..2e5e1b230 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_kevent_id.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 36 +#include "SYS.h" + +#ifndef SYS_kevent_id +#error "SYS_kevent_id not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_kevent_id) +SYSCALL_NONAME(kevent_id, 8, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_kevent_id, kevent_id, 8, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_kevent_qos.S b/src/kernel/libsyscall/bsdsyscalls/_kevent_qos.S new file mode 100644 index 000000000..a8f9bd47a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_kevent_qos.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 32 +#include "SYS.h" + +#ifndef SYS_kevent_qos +#error "SYS_kevent_qos not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_kevent_qos) +SYSCALL_NONAME(kevent_qos, 8, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_kevent_qos, kevent_qos, 8, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_kqueue.S b/src/kernel/libsyscall/bsdsyscalls/_kqueue.S new file mode 100644 index 000000000..a8bcd229e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_kqueue.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_kqueue +#error "SYS_kqueue not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_kqueue) +SYSCALL_NONAME(kqueue, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_kqueue, kqueue, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_ledger.S b/src/kernel/libsyscall/bsdsyscalls/_ledger.S new file mode 100644 index 000000000..92d91ecf6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_ledger.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_ledger +#error "SYS_ledger not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_ledger) +SYSCALL_NONAME(ledger, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_ledger, ledger, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_link.S b/src/kernel/libsyscall/bsdsyscalls/_link.S new file mode 100644 index 000000000..486a2642c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_link.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_link +#error "SYS_link not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_link) +SYSCALL_NONAME(link, 2, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_link, link, 2, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_linkat.S b/src/kernel/libsyscall/bsdsyscalls/_linkat.S new file mode 100644 index 000000000..d53d7bc39 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_linkat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_linkat +#error "SYS_linkat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_linkat) +SYSCALL_NONAME(linkat, 5, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_linkat, linkat, 5, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_lio_listio.S b/src/kernel/libsyscall/bsdsyscalls/_lio_listio.S new file mode 100644 index 000000000..7c8a3eecf --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_lio_listio.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_lio_listio +#error "SYS_lio_listio not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_lio_listio) +SYSCALL_NONAME(lio_listio, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_lio_listio, lio_listio, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_listxattr.S b/src/kernel/libsyscall/bsdsyscalls/_listxattr.S new file mode 100644 index 000000000..1797bdb5b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_listxattr.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_listxattr +#error "SYS_listxattr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_listxattr) +ZERO_EXTEND(2) +SYSCALL_NONAME(listxattr, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_listxattr, listxattr, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_lstat.S b/src/kernel/libsyscall/bsdsyscalls/_lstat.S new file mode 100644 index 000000000..3498b11f0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_lstat.S @@ -0,0 +1,13 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_lstat +#error "SYS_lstat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) +__SYSCALL2(_lstat, lstat, 2, cerror) +#else +__SYSCALL2(___lstat, lstat, 2, cerror) +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_lstat64.S b/src/kernel/libsyscall/bsdsyscalls/_lstat64.S new file mode 100644 index 000000000..d1f7ad844 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_lstat64.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_lstat64 +#error "SYS_lstat64 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_lstat64) +SYSCALL_NONAME(lstat64, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_lstat64, lstat64, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _lstat$INODE64 + .set _lstat$INODE64, _lstat64 +#endif + +#if defined(__x86_64__) + .globl _lstat$INODE64 + .set _lstat$INODE64, _lstat64 +#endif + +#if defined(__ppc__) + .globl _lstat$INODE64 + .set _lstat$INODE64, _lstat64 +#endif + +#if defined(__arm64__) + .globl _lstat + .set _lstat, _lstat64 +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_madvise.S b/src/kernel/libsyscall/bsdsyscalls/_madvise.S new file mode 100644 index 000000000..c9a840614 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_madvise.S @@ -0,0 +1,39 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_madvise +#error "SYS_madvise not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_madvise) +ZERO_EXTEND(1) +SYSCALL_NONAME(madvise, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_madvise, madvise, 3, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _posix_madvise + .set _posix_madvise, _madvise +#endif + +#if defined(__x86_64__) + .globl _posix_madvise + .set _posix_madvise, _madvise +#endif + +#if defined(__ppc__) + .globl _posix_madvise + .set _posix_madvise, _madvise +#endif + +#if defined(__arm64__) + .globl _posix_madvise + .set _posix_madvise, _madvise +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_memorystatus_control.S b/src/kernel/libsyscall/bsdsyscalls/_memorystatus_control.S new file mode 100644 index 000000000..22f181475 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_memorystatus_control.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_memorystatus_control +#error "SYS_memorystatus_control not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_memorystatus_control) +ZERO_EXTEND(4) +SYSCALL_NONAME(memorystatus_control, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_memorystatus_control, memorystatus_control, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_memorystatus_get_level.S b/src/kernel/libsyscall/bsdsyscalls/_memorystatus_get_level.S new file mode 100644 index 000000000..760dea9c9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_memorystatus_get_level.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_memorystatus_get_level +#error "SYS_memorystatus_get_level not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_memorystatus_get_level) +SYSCALL_NONAME(memorystatus_get_level, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_memorystatus_get_level, memorystatus_get_level, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_mincore.S b/src/kernel/libsyscall/bsdsyscalls/_mincore.S new file mode 100644 index 000000000..0ce53bddd --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_mincore.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_mincore +#error "SYS_mincore not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_mincore) +ZERO_EXTEND(1) +SYSCALL_NONAME(mincore, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_mincore, mincore, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_minherit.S b/src/kernel/libsyscall/bsdsyscalls/_minherit.S new file mode 100644 index 000000000..e875ef511 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_minherit.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_minherit +#error "SYS_minherit not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_minherit) +ZERO_EXTEND(1) +SYSCALL_NONAME(minherit, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_minherit, minherit, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_mkdir.S b/src/kernel/libsyscall/bsdsyscalls/_mkdir.S new file mode 100644 index 000000000..dd5a329bb --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_mkdir.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_mkdir +#error "SYS_mkdir not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_mkdir) +SYSCALL_NONAME(mkdir, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_mkdir, mkdir, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_mkdirat.S b/src/kernel/libsyscall/bsdsyscalls/_mkdirat.S new file mode 100644 index 000000000..b095c093b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_mkdirat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_mkdirat +#error "SYS_mkdirat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_mkdirat) +SYSCALL_NONAME(mkdirat, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_mkdirat, mkdirat, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_mkfifo.S b/src/kernel/libsyscall/bsdsyscalls/_mkfifo.S new file mode 100644 index 000000000..2699977be --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_mkfifo.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_mkfifo +#error "SYS_mkfifo not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_mkfifo) +SYSCALL_NONAME(mkfifo, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_mkfifo, mkfifo, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_mknod.S b/src/kernel/libsyscall/bsdsyscalls/_mknod.S new file mode 100644 index 000000000..adb1b4bfe --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_mknod.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_mknod +#error "SYS_mknod not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_mknod) +SYSCALL_NONAME(mknod, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_mknod, mknod, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_mlock.S b/src/kernel/libsyscall/bsdsyscalls/_mlock.S new file mode 100644 index 000000000..1b30efe4b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_mlock.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_mlock +#error "SYS_mlock not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_mlock) +ZERO_EXTEND(1) +SYSCALL_NONAME(mlock, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_mlock, mlock, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_mlockall.S b/src/kernel/libsyscall/bsdsyscalls/_mlockall.S new file mode 100644 index 000000000..2c2a57c6e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_mlockall.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_mlockall +#error "SYS_mlockall not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_mlockall) +SYSCALL_NONAME(mlockall, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_mlockall, mlockall, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_mount.S b/src/kernel/libsyscall/bsdsyscalls/_mount.S new file mode 100644 index 000000000..8ac4bbc2c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_mount.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_mount +#error "SYS_mount not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_mount) +SYSCALL_NONAME(mount, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_mount, mount, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_mremap_encrypted.S b/src/kernel/libsyscall/bsdsyscalls/_mremap_encrypted.S new file mode 100644 index 000000000..d78481376 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_mremap_encrypted.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_mremap_encrypted +#error "SYS_mremap_encrypted not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_mremap_encrypted) +ZERO_EXTEND(1) +SYSCALL_NONAME(mremap_encrypted, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_mremap_encrypted, mremap_encrypted, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_msgget.S b/src/kernel/libsyscall/bsdsyscalls/_msgget.S new file mode 100644 index 000000000..cda7b48c2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_msgget.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_msgget +#error "SYS_msgget not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_msgget) +SYSCALL_NONAME(msgget, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_msgget, msgget, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_msgrcv.S b/src/kernel/libsyscall/bsdsyscalls/_msgrcv.S new file mode 100644 index 000000000..d927eb43a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_msgrcv.S @@ -0,0 +1,32 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_msgrcv +#error "SYS_msgrcv not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_msgrcv) +SIGN_EXTEND(3) +ZERO_EXTEND(2) +SYSCALL_NONAME(msgrcv, 5, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_msgrcv, msgrcv, 5, cerror) +#else +__SYSCALL2(___msgrcv, msgrcv, 5, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _msgrcv$UNIX2003 + .set _msgrcv$UNIX2003, ___msgrcv +#endif + +#if defined(__ppc__) + .globl _msgrcv$UNIX2003 + .set _msgrcv$UNIX2003, ___msgrcv +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_msgsnd.S b/src/kernel/libsyscall/bsdsyscalls/_msgsnd.S new file mode 100644 index 000000000..5c4ba65c0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_msgsnd.S @@ -0,0 +1,31 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_msgsnd +#error "SYS_msgsnd not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_msgsnd) +ZERO_EXTEND(2) +SYSCALL_NONAME(msgsnd, 4, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_msgsnd, msgsnd, 4, cerror) +#else +__SYSCALL2(___msgsnd, msgsnd, 4, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _msgsnd$UNIX2003 + .set _msgsnd$UNIX2003, ___msgsnd +#endif + +#if defined(__ppc__) + .globl _msgsnd$UNIX2003 + .set _msgsnd$UNIX2003, ___msgsnd +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_munlock.S b/src/kernel/libsyscall/bsdsyscalls/_munlock.S new file mode 100644 index 000000000..87adb16a8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_munlock.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_munlock +#error "SYS_munlock not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_munlock) +ZERO_EXTEND(1) +SYSCALL_NONAME(munlock, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_munlock, munlock, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_munlockall.S b/src/kernel/libsyscall/bsdsyscalls/_munlockall.S new file mode 100644 index 000000000..7bf200484 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_munlockall.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_munlockall +#error "SYS_munlockall not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_munlockall) +SYSCALL_NONAME(munlockall, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_munlockall, munlockall, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_necp_client_action.S b/src/kernel/libsyscall/bsdsyscalls/_necp_client_action.S new file mode 100644 index 000000000..97a5ba4c7 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_necp_client_action.S @@ -0,0 +1,20 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_necp_client_action +#error "SYS_necp_client_action not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_necp_client_action) +ZERO_EXTEND(5) +ZERO_EXTEND(3) +SYSCALL_NONAME(necp_client_action, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_necp_client_action, necp_client_action, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_necp_match_policy.S b/src/kernel/libsyscall/bsdsyscalls/_necp_match_policy.S new file mode 100644 index 000000000..93525fc95 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_necp_match_policy.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_necp_match_policy +#error "SYS_necp_match_policy not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_necp_match_policy) +ZERO_EXTEND(1) +SYSCALL_NONAME(necp_match_policy, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_necp_match_policy, necp_match_policy, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_necp_open.S b/src/kernel/libsyscall/bsdsyscalls/_necp_open.S new file mode 100644 index 000000000..ff3119fc4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_necp_open.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_necp_open +#error "SYS_necp_open not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_necp_open) +SYSCALL_NONAME(necp_open, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_necp_open, necp_open, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_necp_session_action.S b/src/kernel/libsyscall/bsdsyscalls/_necp_session_action.S new file mode 100644 index 000000000..ef63a680b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_necp_session_action.S @@ -0,0 +1,20 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_necp_session_action +#error "SYS_necp_session_action not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_necp_session_action) +ZERO_EXTEND(3) +ZERO_EXTEND(5) +SYSCALL_NONAME(necp_session_action, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_necp_session_action, necp_session_action, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_necp_session_open.S b/src/kernel/libsyscall/bsdsyscalls/_necp_session_open.S new file mode 100644 index 000000000..ddaa32051 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_necp_session_open.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_necp_session_open +#error "SYS_necp_session_open not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_necp_session_open) +SYSCALL_NONAME(necp_session_open, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_necp_session_open, necp_session_open, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_net_qos_guideline.S b/src/kernel/libsyscall/bsdsyscalls/_net_qos_guideline.S new file mode 100644 index 000000000..9d7805095 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_net_qos_guideline.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_net_qos_guideline +#error "SYS_net_qos_guideline not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_net_qos_guideline) +SYSCALL_NONAME(net_qos_guideline, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_net_qos_guideline, net_qos_guideline, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_netagent_trigger.S b/src/kernel/libsyscall/bsdsyscalls/_netagent_trigger.S new file mode 100644 index 000000000..4975c8eca --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_netagent_trigger.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_netagent_trigger +#error "SYS_netagent_trigger not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_netagent_trigger) +ZERO_EXTEND(1) +SYSCALL_NONAME(netagent_trigger, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_netagent_trigger, netagent_trigger, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_nfsclnt.S b/src/kernel/libsyscall/bsdsyscalls/_nfsclnt.S new file mode 100644 index 000000000..d796c6fc5 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_nfsclnt.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_nfsclnt +#error "SYS_nfsclnt not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_nfsclnt) +SYSCALL_NONAME(nfsclnt, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_nfsclnt, nfsclnt, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_nfssvc.S b/src/kernel/libsyscall/bsdsyscalls/_nfssvc.S new file mode 100644 index 000000000..6a388af43 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_nfssvc.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_nfssvc +#error "SYS_nfssvc not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_nfssvc) +SYSCALL_NONAME(nfssvc, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_nfssvc, nfssvc, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_ntp_adjtime.S b/src/kernel/libsyscall/bsdsyscalls/_ntp_adjtime.S new file mode 100644 index 000000000..015b5bc68 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_ntp_adjtime.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_ntp_adjtime +#error "SYS_ntp_adjtime not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_ntp_adjtime) +SYSCALL_NONAME(ntp_adjtime, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_ntp_adjtime, ntp_adjtime, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_ntp_gettime.S b/src/kernel/libsyscall/bsdsyscalls/_ntp_gettime.S new file mode 100644 index 000000000..ada8fed07 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_ntp_gettime.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_ntp_gettime +#error "SYS_ntp_gettime not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_ntp_gettime) +SYSCALL_NONAME(ntp_gettime, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_ntp_gettime, ntp_gettime, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_openbyid_np.S b/src/kernel/libsyscall/bsdsyscalls/_openbyid_np.S new file mode 100644 index 000000000..729805c85 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_openbyid_np.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_openbyid_np +#error "SYS_openbyid_np not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_openbyid_np) +SYSCALL_NONAME(openbyid_np, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_openbyid_np, openbyid_np, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_os_fault_with_payload.S b/src/kernel/libsyscall/bsdsyscalls/_os_fault_with_payload.S new file mode 100644 index 000000000..5d21f5254 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_os_fault_with_payload.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 32 +#include "SYS.h" + +#ifndef SYS_os_fault_with_payload +#error "SYS_os_fault_with_payload not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_os_fault_with_payload) +SYSCALL_NONAME(os_fault_with_payload, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_os_fault_with_payload, os_fault_with_payload, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_pathconf.S b/src/kernel/libsyscall/bsdsyscalls/_pathconf.S new file mode 100644 index 000000000..793db4d5e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_pathconf.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_pathconf +#error "SYS_pathconf not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_pathconf) +SYSCALL_NONAME(pathconf, 2, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_pathconf, pathconf, 2, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_peeloff.S b/src/kernel/libsyscall/bsdsyscalls/_peeloff.S new file mode 100644 index 000000000..39d5b81fc --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_peeloff.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_peeloff +#error "SYS_peeloff not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_peeloff) +SYSCALL_NONAME(peeloff, 2, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_peeloff, peeloff, 2, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_pid_hibernate.S b/src/kernel/libsyscall/bsdsyscalls/_pid_hibernate.S new file mode 100644 index 000000000..c1fb96354 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_pid_hibernate.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_pid_hibernate +#error "SYS_pid_hibernate not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_pid_hibernate) +SYSCALL_NONAME(pid_hibernate, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_pid_hibernate, pid_hibernate, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_pid_resume.S b/src/kernel/libsyscall/bsdsyscalls/_pid_resume.S new file mode 100644 index 000000000..294de7c28 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_pid_resume.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_pid_resume +#error "SYS_pid_resume not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_pid_resume) +SYSCALL_NONAME(pid_resume, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_pid_resume, pid_resume, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_pid_shutdown_sockets.S b/src/kernel/libsyscall/bsdsyscalls/_pid_shutdown_sockets.S new file mode 100644 index 000000000..7dc86a20f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_pid_shutdown_sockets.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_pid_shutdown_sockets +#error "SYS_pid_shutdown_sockets not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_pid_shutdown_sockets) +SYSCALL_NONAME(pid_shutdown_sockets, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_pid_shutdown_sockets, pid_shutdown_sockets, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_pid_suspend.S b/src/kernel/libsyscall/bsdsyscalls/_pid_suspend.S new file mode 100644 index 000000000..4da18c8cb --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_pid_suspend.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_pid_suspend +#error "SYS_pid_suspend not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_pid_suspend) +SYSCALL_NONAME(pid_suspend, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_pid_suspend, pid_suspend, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_pivot_root.S b/src/kernel/libsyscall/bsdsyscalls/_pivot_root.S new file mode 100644 index 000000000..0af98a8c1 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_pivot_root.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_pivot_root +#error "SYS_pivot_root not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_pivot_root) +SYSCALL_NONAME(pivot_root, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_pivot_root, pivot_root, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_poll.S b/src/kernel/libsyscall/bsdsyscalls/_poll.S new file mode 100644 index 000000000..21de30152 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_poll.S @@ -0,0 +1,30 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_poll +#error "SYS_poll not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_poll) +SYSCALL_NONAME(poll, 3, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_poll, poll, 3, cerror) +#else +__SYSCALL2(___poll, poll, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _poll$UNIX2003 + .set _poll$UNIX2003, ___poll +#endif + +#if defined(__ppc__) + .globl _poll$UNIX2003 + .set _poll$UNIX2003, ___poll +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_pread.S b/src/kernel/libsyscall/bsdsyscalls/_pread.S new file mode 100644 index 000000000..665e4a0f4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_pread.S @@ -0,0 +1,31 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_pread +#error "SYS_pread not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_pread) +ZERO_EXTEND(2) +SYSCALL_NONAME(pread, 4, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_pread, pread, 4, cerror) +#else +__SYSCALL2(___pread, pread, 4, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _pread$UNIX2003 + .set _pread$UNIX2003, ___pread +#endif + +#if defined(__ppc__) + .globl _pread$UNIX2003 + .set _pread$UNIX2003, ___pread +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_preadv.S b/src/kernel/libsyscall/bsdsyscalls/_preadv.S new file mode 100644 index 000000000..2b5c6c2a7 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_preadv.S @@ -0,0 +1,20 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_preadv +#error "SYS_preadv not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_preadv) +SYSCALL_NONAME(preadv, 4, cerror) +ret +#else +#if defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_preadv, preadv, 4, cerror) +#else +__SYSCALL2(___preadv, preadv, 4, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_proc_rlimit_control.S b/src/kernel/libsyscall/bsdsyscalls/_proc_rlimit_control.S new file mode 100644 index 000000000..30fecb2ee --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_proc_rlimit_control.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_proc_rlimit_control +#error "SYS_proc_rlimit_control not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_proc_rlimit_control) +SYSCALL_NONAME(proc_rlimit_control, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_proc_rlimit_control, proc_rlimit_control, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_proc_trace_log.S b/src/kernel/libsyscall/bsdsyscalls/_proc_trace_log.S new file mode 100644 index 000000000..4e31b909e --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_proc_trace_log.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_proc_trace_log +#error "SYS_proc_trace_log not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_proc_trace_log) +SYSCALL_NONAME(proc_trace_log, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_proc_trace_log, proc_trace_log, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_proc_uuid_policy.S b/src/kernel/libsyscall/bsdsyscalls/_proc_uuid_policy.S new file mode 100644 index 000000000..7a21758c0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_proc_uuid_policy.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_proc_uuid_policy +#error "SYS_proc_uuid_policy not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_proc_uuid_policy) +ZERO_EXTEND(2) +SYSCALL_NONAME(proc_uuid_policy, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_proc_uuid_policy, proc_uuid_policy, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_pwrite.S b/src/kernel/libsyscall/bsdsyscalls/_pwrite.S new file mode 100644 index 000000000..4cae855b8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_pwrite.S @@ -0,0 +1,31 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_pwrite +#error "SYS_pwrite not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_pwrite) +ZERO_EXTEND(2) +SYSCALL_NONAME(pwrite, 4, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_pwrite, pwrite, 4, cerror) +#else +__SYSCALL2(___pwrite, pwrite, 4, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _pwrite$UNIX2003 + .set _pwrite$UNIX2003, ___pwrite +#endif + +#if defined(__ppc__) + .globl _pwrite$UNIX2003 + .set _pwrite$UNIX2003, ___pwrite +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_pwritev.S b/src/kernel/libsyscall/bsdsyscalls/_pwritev.S new file mode 100644 index 000000000..5931dc211 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_pwritev.S @@ -0,0 +1,20 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_pwritev +#error "SYS_pwritev not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_pwritev) +SYSCALL_NONAME(pwritev, 4, cerror) +ret +#else +#if defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_pwritev, pwritev, 4, cerror) +#else +__SYSCALL2(___pwritev, pwritev, 4, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_quotactl.S b/src/kernel/libsyscall/bsdsyscalls/_quotactl.S new file mode 100644 index 000000000..dfb42fb57 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_quotactl.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_quotactl +#error "SYS_quotactl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_quotactl) +SYSCALL_NONAME(quotactl, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_quotactl, quotactl, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_read.S b/src/kernel/libsyscall/bsdsyscalls/_read.S new file mode 100644 index 000000000..fe0d002fc --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_read.S @@ -0,0 +1,31 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_read +#error "SYS_read not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_read) +ZERO_EXTEND(2) +SYSCALL_NONAME(read, 3, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_read, read, 3, cerror) +#else +__SYSCALL2(___read, read, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _read$UNIX2003 + .set _read$UNIX2003, ___read +#endif + +#if defined(__ppc__) + .globl _read$UNIX2003 + .set _read$UNIX2003, ___read +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_readlink.S b/src/kernel/libsyscall/bsdsyscalls/_readlink.S new file mode 100644 index 000000000..f67e98ab6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_readlink.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_readlink +#error "SYS_readlink not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_readlink) +SYSCALL_NONAME(readlink, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_readlink, readlink, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_readlinkat.S b/src/kernel/libsyscall/bsdsyscalls/_readlinkat.S new file mode 100644 index 000000000..acf1dc627 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_readlinkat.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_readlinkat +#error "SYS_readlinkat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_readlinkat) +ZERO_EXTEND(3) +SYSCALL_NONAME(readlinkat, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_readlinkat, readlinkat, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_readv.S b/src/kernel/libsyscall/bsdsyscalls/_readv.S new file mode 100644 index 000000000..8e649e789 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_readv.S @@ -0,0 +1,30 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_readv +#error "SYS_readv not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_readv) +SYSCALL_NONAME(readv, 3, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_readv, readv, 3, cerror) +#else +__SYSCALL2(___readv, readv, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _readv$UNIX2003 + .set _readv$UNIX2003, ___readv +#endif + +#if defined(__ppc__) + .globl _readv$UNIX2003 + .set _readv$UNIX2003, ___readv +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_recvmsg_x.S b/src/kernel/libsyscall/bsdsyscalls/_recvmsg_x.S new file mode 100644 index 000000000..5c968a3a3 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_recvmsg_x.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_recvmsg_x +#error "SYS_recvmsg_x not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_recvmsg_x) +SYSCALL_NONAME(recvmsg_x, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_recvmsg_x, recvmsg_x, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_removexattr.S b/src/kernel/libsyscall/bsdsyscalls/_removexattr.S new file mode 100644 index 000000000..a44741e4c --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_removexattr.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_removexattr +#error "SYS_removexattr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_removexattr) +SYSCALL_NONAME(removexattr, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_removexattr, removexattr, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_revoke.S b/src/kernel/libsyscall/bsdsyscalls/_revoke.S new file mode 100644 index 000000000..239d31667 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_revoke.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_revoke +#error "SYS_revoke not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_revoke) +SYSCALL_NONAME(revoke, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_revoke, revoke, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_searchfs.S b/src/kernel/libsyscall/bsdsyscalls/_searchfs.S new file mode 100644 index 000000000..7adf62e90 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_searchfs.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_searchfs +#error "SYS_searchfs not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_searchfs) +SYSCALL_NONAME(searchfs, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_searchfs, searchfs, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_sem_close.S b/src/kernel/libsyscall/bsdsyscalls/_sem_close.S new file mode 100644 index 000000000..4ff87a868 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_sem_close.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_sem_close +#error "SYS_sem_close not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_sem_close) +SYSCALL_NONAME(sem_close, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_sem_close, sem_close, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_sem_post.S b/src/kernel/libsyscall/bsdsyscalls/_sem_post.S new file mode 100644 index 000000000..90f39ff53 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_sem_post.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_sem_post +#error "SYS_sem_post not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_sem_post) +SYSCALL_NONAME(sem_post, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_sem_post, sem_post, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_sem_trywait.S b/src/kernel/libsyscall/bsdsyscalls/_sem_trywait.S new file mode 100644 index 000000000..25e2c519b --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_sem_trywait.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_sem_trywait +#error "SYS_sem_trywait not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_sem_trywait) +SYSCALL_NONAME(sem_trywait, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_sem_trywait, sem_trywait, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_sem_unlink.S b/src/kernel/libsyscall/bsdsyscalls/_sem_unlink.S new file mode 100644 index 000000000..5554499a3 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_sem_unlink.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_sem_unlink +#error "SYS_sem_unlink not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_sem_unlink) +SYSCALL_NONAME(sem_unlink, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_sem_unlink, sem_unlink, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_sem_wait.S b/src/kernel/libsyscall/bsdsyscalls/_sem_wait.S new file mode 100644 index 000000000..f42575826 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_sem_wait.S @@ -0,0 +1,30 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_sem_wait +#error "SYS_sem_wait not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_sem_wait) +SYSCALL_NONAME(sem_wait, 1, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_sem_wait, sem_wait, 1, cerror) +#else +__SYSCALL2(___sem_wait, sem_wait, 1, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _sem_wait$UNIX2003 + .set _sem_wait$UNIX2003, ___sem_wait +#endif + +#if defined(__ppc__) + .globl _sem_wait$UNIX2003 + .set _sem_wait$UNIX2003, ___sem_wait +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_semget.S b/src/kernel/libsyscall/bsdsyscalls/_semget.S new file mode 100644 index 000000000..770793e72 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_semget.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_semget +#error "SYS_semget not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_semget) +SYSCALL_NONAME(semget, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_semget, semget, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_semop.S b/src/kernel/libsyscall/bsdsyscalls/_semop.S new file mode 100644 index 000000000..10e2ab1aa --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_semop.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_semop +#error "SYS_semop not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_semop) +SYSCALL_NONAME(semop, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_semop, semop, 3, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_sendfile.S b/src/kernel/libsyscall/bsdsyscalls/_sendfile.S new file mode 100644 index 000000000..4ec0ec800 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_sendfile.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 28 +#include "SYS.h" + +#ifndef SYS_sendfile +#error "SYS_sendfile not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_sendfile) +SYSCALL_NONAME(sendfile, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_sendfile, sendfile, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_sendmsg_x.S b/src/kernel/libsyscall/bsdsyscalls/_sendmsg_x.S new file mode 100644 index 000000000..03890836a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_sendmsg_x.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_sendmsg_x +#error "SYS_sendmsg_x not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_sendmsg_x) +SYSCALL_NONAME(sendmsg_x, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_sendmsg_x, sendmsg_x, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setattrlistat.S b/src/kernel/libsyscall/bsdsyscalls/_setattrlistat.S new file mode 100644 index 000000000..919fc5577 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setattrlistat.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_setattrlistat +#error "SYS_setattrlistat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setattrlistat) +ZERO_EXTEND(4) +SYSCALL_NONAME(setattrlistat, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setattrlistat, setattrlistat, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setaudit_addr.S b/src/kernel/libsyscall/bsdsyscalls/_setaudit_addr.S new file mode 100644 index 000000000..4eb2ff276 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setaudit_addr.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_setaudit_addr +#error "SYS_setaudit_addr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setaudit_addr) +SYSCALL_NONAME(setaudit_addr, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setaudit_addr, setaudit_addr, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setauid.S b/src/kernel/libsyscall/bsdsyscalls/_setauid.S new file mode 100644 index 000000000..0d98afd31 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setauid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_setauid +#error "SYS_setauid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setauid) +SYSCALL_NONAME(setauid, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setauid, setauid, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setegid.S b/src/kernel/libsyscall/bsdsyscalls/_setegid.S new file mode 100644 index 000000000..344b3fcc8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setegid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_setegid +#error "SYS_setegid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setegid) +SYSCALL_NONAME(setegid, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setegid, setegid, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_seteuid.S b/src/kernel/libsyscall/bsdsyscalls/_seteuid.S new file mode 100644 index 000000000..8c34940cd --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_seteuid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_seteuid +#error "SYS_seteuid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_seteuid) +SYSCALL_NONAME(seteuid, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_seteuid, seteuid, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setgid.S b/src/kernel/libsyscall/bsdsyscalls/_setgid.S new file mode 100644 index 000000000..bee631c88 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setgid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_setgid +#error "SYS_setgid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setgid) +SYSCALL_NONAME(setgid, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setgid, setgid, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setgroups.S b/src/kernel/libsyscall/bsdsyscalls/_setgroups.S new file mode 100644 index 000000000..fc3090c68 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setgroups.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_setgroups +#error "SYS_setgroups not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setgroups) +SYSCALL_NONAME(setgroups, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setgroups, setgroups, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setitimer.S b/src/kernel/libsyscall/bsdsyscalls/_setitimer.S new file mode 100644 index 000000000..011b64943 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setitimer.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_setitimer +#error "SYS_setitimer not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setitimer) +SYSCALL_NONAME(setitimer, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setitimer, setitimer, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setpgid.S b/src/kernel/libsyscall/bsdsyscalls/_setpgid.S new file mode 100644 index 000000000..12bcf4ff0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setpgid.S @@ -0,0 +1,28 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_setpgid +#error "SYS_setpgid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setpgid) +SYSCALL_NONAME(setpgid, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setpgid, setpgid, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _setpgrp + .set _setpgrp, _setpgid +#endif + +#if defined(__ppc__) + .globl _setpgrp + .set _setpgrp, _setpgid +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setprivexec.S b/src/kernel/libsyscall/bsdsyscalls/_setprivexec.S new file mode 100644 index 000000000..b8248331f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setprivexec.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_setprivexec +#error "SYS_setprivexec not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setprivexec) +SYSCALL_NONAME(setprivexec, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setprivexec, setprivexec, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setsid.S b/src/kernel/libsyscall/bsdsyscalls/_setsid.S new file mode 100644 index 000000000..6ef4a87d6 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setsid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_setsid +#error "SYS_setsid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setsid) +SYSCALL_NONAME(setsid, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setsid, setsid, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setsockopt.S b/src/kernel/libsyscall/bsdsyscalls/_setsockopt.S new file mode 100644 index 000000000..ab6160171 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setsockopt.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 20 +#include "SYS.h" + +#ifndef SYS_setsockopt +#error "SYS_setsockopt not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setsockopt) +SYSCALL_NONAME(setsockopt, 5, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setsockopt, setsockopt, 5, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setuid.S b/src/kernel/libsyscall/bsdsyscalls/_setuid.S new file mode 100644 index 000000000..9ce097557 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setuid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_setuid +#error "SYS_setuid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setuid) +SYSCALL_NONAME(setuid, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setuid, setuid, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_setxattr.S b/src/kernel/libsyscall/bsdsyscalls/_setxattr.S new file mode 100644 index 000000000..69d12c149 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_setxattr.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 24 +#include "SYS.h" + +#ifndef SYS_setxattr +#error "SYS_setxattr not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_setxattr) +ZERO_EXTEND(3) +SYSCALL_NONAME(setxattr, 6, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_setxattr, setxattr, 6, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_shm_unlink.S b/src/kernel/libsyscall/bsdsyscalls/_shm_unlink.S new file mode 100644 index 000000000..5d6812761 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_shm_unlink.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_shm_unlink +#error "SYS_shm_unlink not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_shm_unlink) +SYSCALL_NONAME(shm_unlink, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_shm_unlink, shm_unlink, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_shmat.S b/src/kernel/libsyscall/bsdsyscalls/_shmat.S new file mode 100644 index 000000000..66c1f47a4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_shmat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_shmat +#error "SYS_shmat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_shmat) +SYSCALL_NONAME(shmat, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_shmat, shmat, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_shmdt.S b/src/kernel/libsyscall/bsdsyscalls/_shmdt.S new file mode 100644 index 000000000..e67daa5da --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_shmdt.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_shmdt +#error "SYS_shmdt not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_shmdt) +SYSCALL_NONAME(shmdt, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_shmdt, shmdt, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_shmget.S b/src/kernel/libsyscall/bsdsyscalls/_shmget.S new file mode 100644 index 000000000..6df9562bf --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_shmget.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_shmget +#error "SYS_shmget not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_shmget) +ZERO_EXTEND(1) +SYSCALL_NONAME(shmget, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_shmget, shmget, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_shutdown.S b/src/kernel/libsyscall/bsdsyscalls/_shutdown.S new file mode 100644 index 000000000..1cddcad91 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_shutdown.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_shutdown +#error "SYS_shutdown not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_shutdown) +SYSCALL_NONAME(shutdown, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_shutdown, shutdown, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_sigpending.S b/src/kernel/libsyscall/bsdsyscalls/_sigpending.S new file mode 100644 index 000000000..21711ad21 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_sigpending.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_sigpending +#error "SYS_sigpending not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_sigpending) +SYSCALL_NONAME(sigpending, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_sigpending, sigpending, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_sigprocmask.S b/src/kernel/libsyscall/bsdsyscalls/_sigprocmask.S new file mode 100644 index 000000000..07a3cd76d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_sigprocmask.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_sigprocmask +#error "SYS_sigprocmask not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_sigprocmask) +SYSCALL_NONAME(sigprocmask, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_sigprocmask, sigprocmask, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_socket.S b/src/kernel/libsyscall/bsdsyscalls/_socket.S new file mode 100644 index 000000000..6a1c8e818 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_socket.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_socket +#error "SYS_socket not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_socket) +SYSCALL_NONAME(socket, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_socket, socket, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_socket_delegate.S b/src/kernel/libsyscall/bsdsyscalls/_socket_delegate.S new file mode 100644 index 000000000..6666a366d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_socket_delegate.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_socket_delegate +#error "SYS_socket_delegate not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_socket_delegate) +SYSCALL_NONAME(socket_delegate, 4, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_socket_delegate, socket_delegate, 4, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_stat.S b/src/kernel/libsyscall/bsdsyscalls/_stat.S new file mode 100644 index 000000000..8641aba60 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_stat.S @@ -0,0 +1,13 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_stat +#error "SYS_stat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) +__SYSCALL2(_stat, stat, 2, cerror) +#else +__SYSCALL2(___stat, stat, 2, cerror) +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_stat64.S b/src/kernel/libsyscall/bsdsyscalls/_stat64.S new file mode 100644 index 000000000..6f79c67b4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_stat64.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_stat64 +#error "SYS_stat64 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_stat64) +SYSCALL_NONAME(stat64, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_stat64, stat64, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _stat$INODE64 + .set _stat$INODE64, _stat64 +#endif + +#if defined(__x86_64__) + .globl _stat$INODE64 + .set _stat$INODE64, _stat64 +#endif + +#if defined(__ppc__) + .globl _stat$INODE64 + .set _stat$INODE64, _stat64 +#endif + +#if defined(__arm64__) + .globl _stat + .set _stat, _stat64 +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_statfs.S b/src/kernel/libsyscall/bsdsyscalls/_statfs.S new file mode 100644 index 000000000..f315f51c8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_statfs.S @@ -0,0 +1,13 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_statfs +#error "SYS_statfs not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) +__SYSCALL2(_statfs, statfs, 2, cerror_nocancel) +#else +__SYSCALL2(___statfs, statfs, 2, cerror_nocancel) +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_statfs64.S b/src/kernel/libsyscall/bsdsyscalls/_statfs64.S new file mode 100644 index 000000000..70608b1ba --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_statfs64.S @@ -0,0 +1,38 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_statfs64 +#error "SYS_statfs64 not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_statfs64) +SYSCALL_NONAME(statfs64, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_statfs64, statfs64, 2, cerror_nocancel) +#endif + +#endif + +#if defined(__i386__) + .globl _statfs$INODE64 + .set _statfs$INODE64, _statfs64 +#endif + +#if defined(__x86_64__) + .globl _statfs$INODE64 + .set _statfs$INODE64, _statfs64 +#endif + +#if defined(__ppc__) + .globl _statfs$INODE64 + .set _statfs$INODE64, _statfs64 +#endif + +#if defined(__arm64__) + .globl _statfs + .set _statfs, _statfs64 +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_swapon.S b/src/kernel/libsyscall/bsdsyscalls/_swapon.S new file mode 100644 index 000000000..cb7a10932 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_swapon.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_swapon +#error "SYS_swapon not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_swapon) +SYSCALL_NONAME(swapon, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_swapon, swapon, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_symlink.S b/src/kernel/libsyscall/bsdsyscalls/_symlink.S new file mode 100644 index 000000000..9540e7584 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_symlink.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_symlink +#error "SYS_symlink not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_symlink) +SYSCALL_NONAME(symlink, 2, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_symlink, symlink, 2, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_symlinkat.S b/src/kernel/libsyscall/bsdsyscalls/_symlinkat.S new file mode 100644 index 000000000..989c618bb --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_symlinkat.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_symlinkat +#error "SYS_symlinkat not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_symlinkat) +SYSCALL_NONAME(symlinkat, 3, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_symlinkat, symlinkat, 3, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_sync.S b/src/kernel/libsyscall/bsdsyscalls/_sync.S new file mode 100644 index 000000000..5564b686d --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_sync.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_sync +#error "SYS_sync not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_sync) +SYSCALL_NONAME(sync, 0, cerror) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_sync, sync, 0, cerror) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_system_override.S b/src/kernel/libsyscall/bsdsyscalls/_system_override.S new file mode 100644 index 000000000..b3fabeded --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_system_override.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_system_override +#error "SYS_system_override not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_system_override) +SYSCALL_NONAME(system_override, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_system_override, system_override, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_task_inspect_for_pid.S b/src/kernel/libsyscall/bsdsyscalls/_task_inspect_for_pid.S new file mode 100644 index 000000000..0563d6a60 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_task_inspect_for_pid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_task_inspect_for_pid +#error "SYS_task_inspect_for_pid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_task_inspect_for_pid) +SYSCALL_NONAME(task_inspect_for_pid, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_task_inspect_for_pid, task_inspect_for_pid, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_task_read_for_pid.S b/src/kernel/libsyscall/bsdsyscalls/_task_read_for_pid.S new file mode 100644 index 000000000..3385c95ec --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_task_read_for_pid.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_task_read_for_pid +#error "SYS_task_read_for_pid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_task_read_for_pid) +SYSCALL_NONAME(task_read_for_pid, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_task_read_for_pid, task_read_for_pid, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_thread_selfcounts.S b/src/kernel/libsyscall/bsdsyscalls/_thread_selfcounts.S new file mode 100644 index 000000000..c0159193f --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_thread_selfcounts.S @@ -0,0 +1,19 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_thread_selfcounts +#error "SYS_thread_selfcounts not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_thread_selfcounts) +ZERO_EXTEND(2) +SYSCALL_NONAME(thread_selfcounts, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_thread_selfcounts, thread_selfcounts, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_truncate.S b/src/kernel/libsyscall/bsdsyscalls/_truncate.S new file mode 100644 index 000000000..999ed1da8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_truncate.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_truncate +#error "SYS_truncate not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_truncate) +SYSCALL_NONAME(truncate, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_truncate, truncate, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_umask.S b/src/kernel/libsyscall/bsdsyscalls/_umask.S new file mode 100644 index 000000000..5cfeebcc3 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_umask.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_umask +#error "SYS_umask not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_umask) +SYSCALL_NONAME(umask, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_umask, umask, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_undelete.S b/src/kernel/libsyscall/bsdsyscalls/_undelete.S new file mode 100644 index 000000000..7918d5515 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_undelete.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_undelete +#error "SYS_undelete not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_undelete) +SYSCALL_NONAME(undelete, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_undelete, undelete, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_unmount.S b/src/kernel/libsyscall/bsdsyscalls/_unmount.S new file mode 100644 index 000000000..58cf7abf4 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_unmount.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_unmount +#error "SYS_unmount not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_unmount) +SYSCALL_NONAME(unmount, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_unmount, unmount, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_usrctl.S b/src/kernel/libsyscall/bsdsyscalls/_usrctl.S new file mode 100644 index 000000000..d2a454eb1 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_usrctl.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 4 +#include "SYS.h" + +#ifndef SYS_usrctl +#error "SYS_usrctl not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_usrctl) +SYSCALL_NONAME(usrctl, 1, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_usrctl, usrctl, 1, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_utimes.S b/src/kernel/libsyscall/bsdsyscalls/_utimes.S new file mode 100644 index 000000000..a4804692a --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_utimes.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 8 +#include "SYS.h" + +#ifndef SYS_utimes +#error "SYS_utimes not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_utimes) +SYSCALL_NONAME(utimes, 2, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_utimes, utimes, 2, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_vfs_purge.S b/src/kernel/libsyscall/bsdsyscalls/_vfs_purge.S new file mode 100644 index 000000000..4c6628053 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_vfs_purge.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 0 +#include "SYS.h" + +#ifndef SYS_vfs_purge +#error "SYS_vfs_purge not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_vfs_purge) +SYSCALL_NONAME(vfs_purge, 0, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_vfs_purge, vfs_purge, 0, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_vm_pressure_monitor.S b/src/kernel/libsyscall/bsdsyscalls/_vm_pressure_monitor.S new file mode 100644 index 000000000..be48830f9 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_vm_pressure_monitor.S @@ -0,0 +1,18 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_vm_pressure_monitor +#error "SYS_vm_pressure_monitor not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_vm_pressure_monitor) +SYSCALL_NONAME(vm_pressure_monitor, 3, cerror_nocancel) +ret +#else +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm64__) +__SYSCALL2(_vm_pressure_monitor, vm_pressure_monitor, 3, cerror_nocancel) +#endif + +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_waitid.S b/src/kernel/libsyscall/bsdsyscalls/_waitid.S new file mode 100644 index 000000000..f3826aba0 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_waitid.S @@ -0,0 +1,30 @@ +#define __SYSCALL_32BIT_ARG_BYTES 16 +#include "SYS.h" + +#ifndef SYS_waitid +#error "SYS_waitid not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_waitid) +SYSCALL_NONAME(waitid, 4, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_waitid, waitid, 4, cerror) +#else +__SYSCALL2(___waitid, waitid, 4, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _waitid$UNIX2003 + .set _waitid$UNIX2003, ___waitid +#endif + +#if defined(__ppc__) + .globl _waitid$UNIX2003 + .set _waitid$UNIX2003, ___waitid +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_write.S b/src/kernel/libsyscall/bsdsyscalls/_write.S new file mode 100644 index 000000000..6d78e09f8 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_write.S @@ -0,0 +1,31 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_write +#error "SYS_write not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_write) +ZERO_EXTEND(2) +SYSCALL_NONAME(write, 3, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_write, write, 3, cerror) +#else +__SYSCALL2(___write, write, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _write$UNIX2003 + .set _write$UNIX2003, ___write +#endif + +#if defined(__ppc__) + .globl _write$UNIX2003 + .set _write$UNIX2003, ___write +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/_writev.S b/src/kernel/libsyscall/bsdsyscalls/_writev.S new file mode 100644 index 000000000..500da5cb2 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/_writev.S @@ -0,0 +1,30 @@ +#define __SYSCALL_32BIT_ARG_BYTES 12 +#include "SYS.h" + +#ifndef SYS_writev +#error "SYS_writev not defined. The header files libsyscall is building against do not match syscalls.master." +#endif + +#if defined(__arm64__) +MI_ENTRY_POINT(_writev) +SYSCALL_NONAME(writev, 3, cerror) +ret +#else +#if defined(__x86_64__) || defined(__arm64__) +__SYSCALL2(_writev, writev, 3, cerror) +#else +__SYSCALL2(___writev, writev, 3, cerror) +#endif + +#endif + +#if defined(__i386__) + .globl _writev$UNIX2003 + .set _writev$UNIX2003, ___writev +#endif + +#if defined(__ppc__) + .globl _writev$UNIX2003 + .set _writev$UNIX2003, ___writev +#endif + diff --git a/src/kernel/libsyscall/bsdsyscalls/custom.S b/src/kernel/libsyscall/bsdsyscalls/custom.S new file mode 100644 index 000000000..4d8f04fed --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/custom.S @@ -0,0 +1,149 @@ +/* + * Copyright (c) 1999-2015 Apple Inc. All rights reserved. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. + * + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + */ +/* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. + */ + +#include "SYS.h" + +#if defined(__i386__) + +/* + * i386 needs custom assembly to transform the return from syscalls + * into a proper stack for a function call out to cerror{,_nocancel}. + */ + +LABEL(tramp_cerror) + mov %esp, %edx + andl $0xfffffff0, %esp + subl $16, %esp + movl %edx, 4(%esp) + movl %eax, (%esp) + CALL_EXTERN(_cerror) + movl 4(%esp), %esp + ret + +LABEL(tramp_cerror_nocancel) + mov %esp, %edx + andl $0xfffffff0, %esp + subl $16, %esp + movl %edx, 4(%esp) + movl %eax, (%esp) + CALL_EXTERN(_cerror_nocancel) + movl 4(%esp), %esp + ret + +LABEL(__sysenter_trap) + popl %edx + movl %esp, %ecx + sysenter + + .globl _i386_get_ldt + ALIGN +_i386_get_ldt: + movl $6,%eax + MACHDEP_SYSCALL_TRAP + jnb 2f + jmp tramp_cerror +2: ret + + + .globl _i386_set_ldt + ALIGN +_i386_set_ldt: + movl $5,%eax + MACHDEP_SYSCALL_TRAP + jnb 2f + jmp tramp_cerror +2: ret + + ALIGN + .globl __thread_set_tsd_base +__thread_set_tsd_base: + pushl 4(%esp) + pushl $0 + movl $3,%eax + MACHDEP_SYSCALL_TRAP + addl $8,%esp + ret + +#elif defined(__x86_64__) + + .globl _i386_get_ldt + ALIGN +_i386_get_ldt: + movl $SYSCALL_CONSTRUCT_MDEP(6), %eax + MACHDEP_SYSCALL_TRAP + jnb 2f + movq %rax, %rdi + jmp _cerror +2: ret + + + .globl _i386_set_ldt + ALIGN +_i386_set_ldt: + movl $SYSCALL_CONSTRUCT_MDEP(5), %eax + MACHDEP_SYSCALL_TRAP + jnb 2f + movq %rax, %rdi + jmp _cerror +2: ret + + ALIGN + .globl __thread_set_tsd_base +__thread_set_tsd_base: + movl $0, %esi // 0 as the second argument + movl $ SYSCALL_CONSTRUCT_MDEP(3), %eax // Machine-dependent syscall number 3 + MACHDEP_SYSCALL_TRAP + ret + +#elif defined(__arm__) + + .align 2 + .globl __thread_set_tsd_base +__thread_set_tsd_base: + mov r3, #2 + mov r12, #0x80000000 + swi #SWI_SYSCALL + bx lr + +#elif defined(__arm64__) + + .align 2 + .globl __thread_set_tsd_base +__thread_set_tsd_base: + mov x3, #2 + mov x16, #0x80000000 + svc #SWI_SYSCALL + ret + +#else +#error unknown architecture +#endif + +.subsections_via_symbols diff --git a/src/kernel/libsyscall/bsdsyscalls/stubs.list b/src/kernel/libsyscall/bsdsyscalls/stubs.list new file mode 100644 index 000000000..9d5ffb925 --- /dev/null +++ b/src/kernel/libsyscall/bsdsyscalls/stubs.list @@ -0,0 +1,430 @@ +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_____old_semwait_signal_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_____sigwait_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___abort_with_payload.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___accept.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___accept_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___access_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___aio_suspend_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___bind.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___bsdthread_create.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___bsdthread_ctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___bsdthread_register.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___bsdthread_terminate.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___chmod.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___chmod_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___close_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___coalition.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___coalition_info.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___coalition_ledger.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___connect.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___connect_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___copyfile.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___csrctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___delete.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___disable_threadsignal.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___exit.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___fchmod.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___fchmod_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___fcntl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___fcntl_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___fork.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___fs_snapshot.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___fstat64_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___fstat_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___fsync_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___getattrlist.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___getdirentries64.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___gethostuuid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___getlogin.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___getpeername.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___getpid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___getrlimit.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___getsgroups.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___getsockname.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___gettid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___gettimeofday.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___getwgroups.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___guarded_open_dprotected_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___guarded_open_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___identitysvc.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___initgroups.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___ioctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___iopolicysys.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace64.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___kdebug_trace_string.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___kdebug_typefilter.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___kill.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___kqueue_workloop_ctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___lchown.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___listen.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___log_data.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___lseek.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___lstat64_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___lstat_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_execve.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_get_fd.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_get_file.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_get_link.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_get_mount.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_get_pid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_get_proc.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_getfsstat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_mount.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_set_fd.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_set_file.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_set_link.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_set_proc.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mac_syscall.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mach_bridge_remote_time.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_signal.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_signal_wait_until.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mach_eventlink_wait_until.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___memorystatus_available_memory.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___microstackshot.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mkdir_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mkfifo_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mmap.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___mprotect.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___msgctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___msgrcv_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___msgsnd_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___msgsys.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___msync.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___msync_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___munmap.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___old_semwait_signal.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___open.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___open_dprotected_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___open_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___open_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___openat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___openat_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___persona.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pipe.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___poll_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___posix_spawn.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pread_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___preadv_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___proc_info.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___proc_info_extended_id.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___process_policy.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pselect.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pselect_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_cvbroad.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_cvclrprepost.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_cvsignal.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_cvwait.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_mutexdrop.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_mutexwait.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_downgrade.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_longrdlock.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_rdlock.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock2.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_upgrade.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_wrlock.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___psynch_rw_yieldwrlock.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pthread_canceled.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pthread_chdir.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pthread_fchdir.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pthread_kill.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pthread_markcancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pthread_sigmask.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___ptrace.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pwrite_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___pwritev_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___read_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___readv_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___reboot.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___recvfrom.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___recvfrom_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___recvmsg.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___recvmsg_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___rename.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___renameat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___renameatx_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___rmdir.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___select.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___select_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sem_open.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sem_wait_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___semctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___semsys.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___semwait_signal.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___semwait_signal_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sendmsg.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sendmsg_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sendto.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sendto_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___setattrlist.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___setlogin.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___setpriority.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___setregid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___setreuid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___setrlimit.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___setsgroups.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___settid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___settid_with_pid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___settimeofday.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___setwgroups.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sfi_ctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sfi_pidctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___shared_region_check_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_2_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___shm_open.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___shmctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___shmsys.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sigaction.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sigaltstack.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sigreturn.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sigsuspend.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sigsuspend_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sigwait.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___socketpair.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___stack_snapshot_with_config.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___stat64_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___stat_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___syscall.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sysctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___sysctlbyname.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___telemetry.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___terminate_with_payload.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___thread_selfid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___thread_selfusage.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___ulock_wait.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___ulock_wait2.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___ulock_wake.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___umask_extended.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___unlink.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___unlinkat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___vfork.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___wait4.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___wait4_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___waitid_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___work_interval_ctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___workq_kernreturn.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___workq_open.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___write_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/___writev_nocancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_access.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_acct.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_adjtime.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_aio_cancel.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_aio_error.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_aio_fsync.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_aio_read.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_aio_return.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_aio_suspend.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_aio_write.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_audit.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_audit_session_join.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_audit_session_port.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_audit_session_self.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_auditctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_auditon.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_change_fdguard_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_chdir.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_chflags.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_chown.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_chroot.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_clonefileat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_close.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_connectx.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_csops.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_csops_audittoken.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_disconnectx.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_dup.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_dup2.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_exchangedata.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_execve.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_faccessat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fchdir.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fchflags.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fchmodat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fchown.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fchownat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fclonefileat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fdatasync.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_ffsctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fgetattrlist.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fgetxattr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fhopen.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fileport_makefd.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fileport_makeport.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_flistxattr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_flock.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fmount.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fpathconf.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fremovexattr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fsctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fsetattrlist.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fsetxattr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fsgetpath.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fsgetpath_ext.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fstat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fstat64.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fstatat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fstatat64.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fstatfs.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fstatfs64.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_fsync.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_ftruncate.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_futimes.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getattrlistat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getattrlistbulk.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getaudit_addr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getauid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getdirentries.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getdirentriesattr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getdtablesize.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getegid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getentropy.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_geteuid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getfh.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getfsstat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getfsstat64.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getgid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getgroups.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getitimer.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getpgid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getpgrp.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getppid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getpriority.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getrusage.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getsid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getsockopt.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getuid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_getxattr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_grab_pgo_data.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_guarded_close_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_guarded_kqueue_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_guarded_pwrite_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_guarded_write_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_guarded_writev_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_issetugid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_kas_info.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_kevent.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_kevent64.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_kevent_id.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_kevent_qos.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_kqueue.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_ledger.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_link.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_linkat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_lio_listio.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_listxattr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_lstat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_lstat64.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_madvise.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_memorystatus_control.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_memorystatus_get_level.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_mincore.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_minherit.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_mkdir.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_mkdirat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_mkfifo.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_mknod.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_mlock.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_mlockall.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_mount.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_mremap_encrypted.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_msgget.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_msgrcv.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_msgsnd.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_munlock.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_munlockall.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_necp_client_action.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_necp_match_policy.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_necp_open.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_necp_session_action.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_necp_session_open.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_net_qos_guideline.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_netagent_trigger.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_nfsclnt.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_nfssvc.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_ntp_adjtime.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_ntp_gettime.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_openbyid_np.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_os_fault_with_payload.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_pathconf.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_peeloff.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_pid_hibernate.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_pid_resume.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_pid_shutdown_sockets.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_pid_suspend.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_pivot_root.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_poll.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_pread.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_preadv.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_proc_rlimit_control.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_proc_trace_log.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_proc_uuid_policy.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_pwrite.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_pwritev.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_quotactl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_read.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_readlink.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_readlinkat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_readv.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_recvmsg_x.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_removexattr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_revoke.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_searchfs.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_sem_close.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_sem_post.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_sem_trywait.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_sem_unlink.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_sem_wait.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_semget.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_semop.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_sendfile.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_sendmsg_x.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setattrlistat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setaudit_addr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setauid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setegid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_seteuid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setgid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setgroups.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setitimer.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setpgid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setprivexec.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setsid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setsockopt.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setuid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_setxattr.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_shm_unlink.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_shmat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_shmdt.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_shmget.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_shutdown.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_sigpending.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_sigprocmask.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_socket.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_socket_delegate.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_stat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_stat64.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_statfs.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_statfs64.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_swapon.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_symlink.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_symlinkat.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_sync.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_system_override.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_task_inspect_for_pid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_task_read_for_pid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_thread_selfcounts.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_truncate.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_umask.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_undelete.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_unmount.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_usrctl.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_utimes.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_vfs_purge.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_vm_pressure_monitor.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_waitid.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_write.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/_writev.S +/home/thomasa/Documents/CodingProjects/Repository/GitHub/darling/src/kernel/libsyscall/bsdsyscalls/custom.S