53c9307857
one had the problem of bypassing the syscall layer and doing a function call into the kernel directly. Therefore there was no way for users of librumpclient to specify compat. The new model pushes the compat handling in the kernel and leaves only the task of selecting the right syscall number to the client. This change also introduces a stable ABI for rump syscalls, i.e. it is possible to use the same syscall client library both on NetBSD 5.0 and -current and get the syscalls resolved to the right place depending on the ABI at the time the client binary is compiled. A list of what to be called when will have to maintained separately simply because this information is not available in syscalls.master -- in the case of the normal kernel we always want to resolve a newly linked syscall to the latest version, whereas in rump we might want to resolve a syscall to a -current kernel to the 5.0 compat call (because our client namespace is 5.0). This information in maintained in rump_syscalls_compat.h with the current format: /* time_t change */ #if !__NetBSD_Prereq__(5,99,7) #define RUMP_SYS_RENAME_STAT rump___sysimpl_stat30 .... If no compat override is given, a syscall resolves automatically to the latest version of the syscall. Also, this change autogenerates forward declarations for all syscall types where it is possible (i.e. ones without typedef insanity). This makes it possible to include rump_syscalls.h without including rump.h. |
||
---|---|---|
.. | ||
altq | ||
arch | ||
coda | ||
common/bus_dma | ||
compat | ||
conf | ||
crypto | ||
ddb | ||
dev | ||
dist | ||
external | ||
fs | ||
gdbscripts | ||
ipkdb | ||
kern | ||
lib | ||
miscfs | ||
modules | ||
net | ||
net80211 | ||
netatalk | ||
netbt | ||
netinet | ||
netinet6 | ||
netipsec | ||
netisdn | ||
netiso | ||
netkey | ||
netmpls | ||
netnatm | ||
netsmb | ||
nfs | ||
opencrypto | ||
rump | ||
secmodel | ||
stand | ||
sys | ||
ufs | ||
uvm | ||
Makefile |