xref: /freebsd/sys/compat/freebsd32/syscalls.conf (revision 30cdbb5833f66354dee8e976bd1d7c2c699600c8)
1f199109fSPeter Wemmsysnames="freebsd32_syscalls.c"
2f199109fSPeter Wemmsysproto="freebsd32_proto.h"
3f199109fSPeter Wemmsysproto_h=_FREEBSD32_SYSPROTO_H_
4f199109fSPeter Wemmsyshdr="freebsd32_syscall.h"
5f199109fSPeter Wemmsyssw="freebsd32_sysent.c"
65eb29d9bSDoug Rabsonsysmk="/dev/null"
7f199109fSPeter Wemmsyscallprefix="FREEBSD32_SYS_"
8f199109fSPeter Wemmswitchname="freebsd32_sysent"
9f199109fSPeter Wemmnamesname="freebsd32_syscallnames"
1056ede107SAndriy Gaponsystrace="freebsd32_systrace_args.c"
11be67ea40SBrooks Davisabi_flags="long_size|pointer_size|time_t_size|pair_64bit"
125b1df300SBrooks Davisabi_func_prefix="freebsd32_"
13be67ea40SBrooks Davisabi_type_suffix="32"
14be67ea40SBrooks Davisabi_long="int32_t"
15be67ea40SBrooks Davisabi_u_long="uint32_t"
16be67ea40SBrooks Davisabi_semid_t="int32_t"
17be67ea40SBrooks Davisabi_size_t="uint32_t"
18be67ea40SBrooks Davisabi_ptr_array_t="uint32_t"
19be67ea40SBrooks Davisabi_headers="#include <compat/freebsd32/freebsd32_proto.h>"
20be67ea40SBrooks Davis
21be67ea40SBrooks Davis#
22be67ea40SBrooks Davis# Variables below this line are exceptions to the ABI changes programatically
23be67ea40SBrooks Davis# detected by makesyscalls.lua.  New system calls should not require an entry
24be67ea40SBrooks Davis# here in nearly virtually all cases.  New entries are almost certainly
25be67ea40SBrooks Davis# representative of badly designed interfaces.
26be67ea40SBrooks Davis#
27be67ea40SBrooks Davis
28be67ea40SBrooks Davis# System calls that require freebsd32-specific handling:
29be67ea40SBrooks Davis# fcntl - need to sign extend arg unless it's a pointer
30be67ea40SBrooks Davis# ksem_init, ksem_open - XXX not required
31be67ea40SBrooks Davis# mprotect - i386 read-implies-exec
32be67ea40SBrooks Davis# msgsys, semsys, shmsys - some sub-syscalls require compat
33be67ea40SBrooks Davis# sigqueue - union sival requires special handing on big-endian
34be67ea40SBrooks Davis# sigreturn - struct osigcontext
35be67ea40SBrooks Davis# sysarch - always MD
36be67ea40SBrooks Davis# _umtx_lock _umtx_unlock _umtx_op - arguments require special handling
37be67ea40SBrooks Davissyscall_abi_change="fcntl ksem_init ksem_open mprotect msgsys semsys shmsys sigqueue sigreturn sysarch _umtx_lock _umtx_unlock _umtx_op"
38be67ea40SBrooks Davis
39be67ea40SBrooks Davis# System calls that appear to require handling, but don't:
40be67ea40SBrooks Davis# aio_cancel - the aiocb pointer is just a virtual address
41be67ea40SBrooks Davis# thr_* - the lack of sign extension of long args is OK
42be67ea40SBrooks Davis# sctp_generic_* - iovec differences handled internally
43be67ea40SBrooks Davissyscall_no_abi_change="aio_cancel thr_exit thr_kill thr_kill2 thr_self thr_set_name thr_wake sctp_generic_sendmsg_iov sctp_generic_recvmsg"
44be67ea40SBrooks Davis
45be67ea40SBrooks Davis# OBSOL syscalls
46be67ea40SBrooks Davis# getkerninfo - obsolete and can't be implemented (kernel virtual addresses can't fit in 32-bits)
47be67ea40SBrooks Davisobsol="getkerninfo"
48be67ea40SBrooks Davis
49be67ea40SBrooks Davis# Syscalls without implementations:
50*30cdbb58SStephen J. Kiernan# __mac_* - should be implemented
51be67ea40SBrooks Davis# afs3_syscall - requires significant porting, probably doesn't make sense
52be67ea40SBrooks Davis# kldsym - can't be implemented (kernel virtual addresses can't fit in 32-bits)
53be67ea40SBrooks Davis# lgetfh - should be implemented
54be67ea40SBrooks Davis# nlm_syscall - requires significant porting, probably doesn't make sense
55be67ea40SBrooks Davis# nnpfs_syscall - requires significant porting, probably doesn't make sense
56be67ea40SBrooks Davis# ntp_gettime - should be implemented
57be67ea40SBrooks Davis# thr_create - was unimplemented and appears to be unnecessicary
58*30cdbb58SStephen J. Kiernanunimpl="afs3_syscall kldsym __mac_get_proc __mac_set_proc __mac_get_fd __mac_get_file __mac_set_fd __mac_set_file __mac_get_pid __mac_get_link __mac_set_link __mac_execve nfssvc nlm_syscall ntp_gettime lgetfh nnpfs_syscall thr_create"
59