Home | History | Annotate | only in /src/sys/compat/aoutm68k
History log of /src/sys/compat/aoutm68k
RevisionDateAuthorComments
 1.7 14-Jan-2014  christos use new bsd.syscall.mk
 1.6 04-May-2006  tsutsui branches: 1.6.98; 1.6.108; 1.6.114;
aoutm68k_syscalls.c is now required by kdump(1).
 1.5 11-Dec-2005  christos branches: 1.5.4; 1.5.6; 1.5.8; 1.5.10; 1.5.12;
merge ktrace-lwp.
 1.4 10-Sep-2004  jdolecek branches: 1.4.12;
garbage-collect aoutm68k_syscalls.c, it's just taking up space (it's not used)
 1.3 15-Nov-2003  thorpej We have CVS; there is no reason to make .bak files when generating the
syscall tables.
 1.2 26-Oct-2003  lukem Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
 1.1 02-Dec-2000  scw branches: 1.1.2; 1.1.26;
Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.1.26.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.26.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.26.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.1.2.1 02-Dec-2000  bouyer file Makefile was added on branch thorpej_scsipi on 2001-01-08 14:56:43 +0000
 1.4.12.1 21-Jun-2006  yamt sync with head.
 1.5.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.5.10.1 11-May-2006  elad sync with head
 1.5.8.1 24-May-2006  yamt sync with head.
 1.5.6.1 01-Jun-2006  kardel Sync with head.
 1.5.4.1 09-Sep-2006  rpaulo sync with head
 1.6.114.1 18-May-2014  rmind sync with head
 1.6.108.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.98.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.30 10-Aug-2018  pgoyette Allow syscall_establish() to install new syscalls when the existing
entry-point is either sys_nomodule or sys_nosys. Update the
makesyscalls.sh script to create a const array of bits to allow
syscall_disestablish() to properly restore the original entry-point.
Update all the initializers of struct emul to initialize the pointer
to the bit array struct emul.

XXX Regen of all files created by makesyscalls.sh will come soon,
XXX followed by a kernel version bump (since struct emul is being
XXX modified).

This commit should address PR kern/45781 and also removes the need
for the work-around for that PR in file

sys/arch/usermode/modules/syscallemu/syscallemu.c
 1.29 06-May-2018  kamil branches: 1.29.2;
Remove an element from struct emul: e_tracesig

e_tracesig used to be implemented for Darwin compat. Nowadays the Darwin
compatiblity layer is gone and there are no other users.

This functionality isn't used where it shall be used in the existing
codebase.

If we want to emulate debugging interfaces in compat layers we would need
to implement that from scratch anyway. We would need to be bug compatible
with other OSes too.

Proposed on tech-kern@.

Welcome to NetBSD 8.99.16!

Sponsored by <The NetBSD Foundation>
 1.28 09-Jan-2018  maya branches: 1.28.2;
remove struct emul's e_fault.

It used to be used by COMPAT_IRIX for the purpose of overriding
uvm_fault (only implemented in MIPS), now removed.

Ride 8.99.12 version bump.
 1.27 19-Feb-2012  rmind Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.
 1.26 15-Oct-2010  tsutsui branches: 1.26.8; 1.26.12;
compat_aoutm68k doesn't require alternative emul path lookup.
 1.25 07-Jul-2010  chs many changes for COMPAT_LINUX:
- update the linux syscall table for each platform.
- support new-style (NPTL) linux pthreads on all platforms.
clone() with CLONE_THREAD uses 1 process with many LWPs
instead of separate processes.
- move the contents of sys__lwp_setprivate() into a new
lwp_setprivate() and use that everywhere.
- update linux_release[] and linux32_release[] to "2.6.18".
- adjust placement of emul fork/exec/exit hooks as needed
and adjust other emul code to match.
- convert all struct emul definitions to use named initializers.
- change the pid allocator to allow multiple pids to refer to the same proc.
- remove a few fields from struct proc that are no longer needed.
- disable the non-functional "vdso" code in linux32/amd64,
glibc works fine without it.
- fix a race in the futex code where we could miss a wakeup after
a requeue operation.
- redo futex locking to be a little more efficient.
 1.24 02-Jun-2009  pooka branches: 1.24.2; 1.24.4;
Declare extern syscallnames in a header.
 1.23 19-Nov-2008  ad branches: 1.23.4;
Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
 1.22 28-Apr-2008  martin branches: 1.22.6; 1.22.8;
Remove clause 3 and 4 from TNF licenses
 1.21 04-Dec-2007  dsl branches: 1.21.12; 1.21.14; 1.21.16;
Remove all the __P
 1.20 11-Dec-2005  christos branches: 1.20.44; 1.20.46; 1.20.52; 1.20.56;
merge ktrace-lwp.
 1.19 26-Mar-2005  fvdl branches: 1.19.2;
Fix some things regarding COMPAT_NETBSD32 and limits/VM addresses.

* For sparc64 and amd64, define *SIZ32 VM constants.
* Add a new function pointer to struct emul, pointing at a function
that will return the default VM map address. The default function
is uvm_map_defaultaddr, which just uses the VM_DEFAULT_ADDRESS
macro. This gives emulations control over the default map address,
and allows things to be mapped at the right address (in 32bit range)
for COMPAT_NETBSD32.
* Add code to adjust the data and stack limits when a COMPAT_NETBSD32
or COMPAT_SVR4_32 binary is executed.
* Don't use USRSTACK in kern_resource.c, use p_vmspace->vm_minsaddr
instead (emulations might have set it differently)
* Since this changes struct emul, bump kernel version to 3.99.2

Tested on amd64, compile-tested on sparc64.
 1.18 12-Sep-2004  jdolecek branches: 1.18.4; 1.18.6; 1.18.10;
use native syscallnames[] for SYSCALL_DEBUG
 1.17 20-Dec-2003  fvdl Put back Emmanuel's sigfilter hooks, as decided by Core.
 1.16 20-Dec-2003  manu Introduce lwp_emuldata and the associated hooks. No hook is provided for the
exec case, as the emulation already has the ability to intercept that
with the e_proc_exec hook. It is the responsability of the emulation to
take appropriaye action about lwp_emuldata in e_proc_exec.

Patch reviewed by Christos.
 1.15 05-Dec-2003  jdolecek back the sigfilter emulation hook change off
 1.14 03-Dec-2003  manu Add a sigfilter emulation hook. It is used at the beginning of kpsignal2()
so that a specific emulation has the oportunity to filter out some signals.

if sigfilter returns 0, then no signal is sent by kpsignal2().

There is another place where signals can be generated: trapsignal. Since this
function is already an emulation hook, no call to the sigfilter hook was
introduced in trapsignal.

This is needed to emulate the softsignal feature in COMPAT_DARWIN (signals
sent as Mach exception messages)
 1.13 24-Aug-2003  chs add support for non-executable mappings (where the hardware allows this)
and make the stack and heap non-executable by default. the changes
fall into two basic catagories:

- pmap and trap-handler changes. these are all MD:
= alpha: we already track per-page execute permission with the (software)
PG_EXEC bit, so just have the trap handler pay attention to it.
= i386: use a new GDT segment for %cs for processes that have no
executable mappings above a certain threshold (currently the
bottom of the stack). track per-page execute permission with
the last unused PTE bit.
= powerpc/ibm4xx: just use the hardware exec bit.
= powerpc/oea: we already track per-page exec bits, but the hardware only
implements non-exec mappings at the segment level. so track the
number of executable mappings in each segment and turn on the no-exec
segment bit iff the count is 0. adjust the trap handler to deal.
= sparc (sun4m): fix our use of the hardware protection bits.
fix the trap handler to recognize text faults.
= sparc64: split the existing unified TSB into data and instruction TSBs,
and only load TTEs into the appropriate TSB(s) for the permissions.
fix the trap handler to check for execute permission.
= not yet implemented: amd64, hppa, sh5

- changes in all the emulations that put a signal trampoline on the stack.
instead, we now put the trampoline into a uvm_aobj and map that into
the process separately.

originally from openbsd, adapted for netbsd by me.
 1.12 10-Nov-2002  jdolecek branches: 1.12.6;
handle __HAVE_MINIMAL_EMUL
 1.11 01-Nov-2002  jdolecek set struct emul's nsysent to compat SYS_NSYSENT, not SYS_MAXSYSCALL
 1.10 21-Sep-2002  manu - Introduce a e_fault field in struct proc to provide emulation specific
memory fault handler. IRIX uses irix_vm_fault, and all other emulation
use NULL, which means to use uvm_fault.

- While we are there, explicitely set to NULL the uninitialized fields in
struct emul: e_fault and e_sysctl on most ports

- e_fault is used by the trap handler, for now only on mips. In order to avoid
intrusive modifications in UVM, the function pointed by e_fault does not
has exactly the same protoype as uvm_fault:
int uvm_fault __P((struct vm_map *, vaddr_t, vm_fault_t, vm_prot_t));
int e_fault __P((struct proc *, vaddr_t, vm_fault_t, vm_prot_t));

- In IRIX share groups, all the VM space is shared, except one page.
This bounds us to have different VM spaces and synchronize modifications
to the VM space accross share group members. We need an IRIX specific hook
to the page fault handler in order to propagate VM space modifications
caused by page faults.
 1.9 13-Jul-2002  scw m68k syscall rototill:

- Switch all m68k-based ports over to __HAVE_SYSCALL_INTERN.
- Add systrace glue.
- Define struct mdproc in <m68k/proc.h> instead of <machine/proc.h>.
(They were all defined exactly the same anyway, other than a couple
of the MDP_* flags.)
 1.8 13-Nov-2001  lukem branches: 1.8.8;
add RCSIDs (including regeneration of files as appropriate)
 1.7 18-Sep-2001  jdolecek Make the setregs hook emulation-specific, rather than executable
format specific.
Struct emul has a e_setregs hook back, which points to emulation-specific
setregs function. es_setregs of struct execsw now only points to
optional executable-specific setup function (this is only used for
ECOFF).
 1.6 18-Jun-2001  christos branches: 1.6.2; 1.6.4;
Add an e_trapsignal member to struct emul, so that emulated processes can
send the appropriate signal depending on the trap type.
 1.5 30-May-2001  mrg use _KERNEL_OPT.
 1.4 11-Dec-2000  mycroft branches: 1.4.2; 1.4.4;
Introduce 2 new flags in types.h:
* __HAVE_SYSCALL_INTERN. If this is defined, e_syscall is replaced by
e_syscall_intern, which is called at key places in the kernel. This can be
used to set a MD syscall handler pointer. This obsoletes and replaces the
*_HAS_SEPARATED_SYSCALL flags.
* __HAVE_MINIMAL_EMUL. If this is defined, certain (deprecated) elements in
struct emul are omitted.
 1.3 09-Dec-2000  jdolecek always fill in e_syscall in respective emul_*; if the emulation doesn't
have it's own separated *_syscall() function, use syscall()
 1.2 08-Dec-2000  jdolecek change emulation name from 'netbsd' to 'aoutm68k'
 1.1 02-Dec-2000  scw Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.4.4.6 11-Nov-2002  nathanw Catch up to -current
 1.4.4.5 18-Oct-2002  nathanw Catch up to -current.
 1.4.4.4 01-Aug-2002  nathanw Catch up to -current.
 1.4.4.3 14-Nov-2001  nathanw Catch up to -current.
 1.4.4.2 21-Sep-2001  nathanw Catch up to -current.
 1.4.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.4.2.1 11-Dec-2000  bouyer file aoutm68k_exec.c was added on branch thorpej_scsipi on 2001-01-08 14:56:43 +0000
 1.6.4.1 01-Oct-2001  fvdl Catch up with -current.
 1.6.2.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.6.2.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.6.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.8.1 15-Jul-2002  gehenna catch up with -current.
 1.12.6.4 01-Apr-2005  skrll Sync with HEAD.
 1.12.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.12.6.1 03-Aug-2004  skrll Sync with HEAD
 1.18.10.1 18-Sep-2005  tron Pull up following revision(s) (requested by fvdl in ticket #798):
sys/compat/sunos/sunos_exec.c: revision 1.47
sys/compat/pecoff/pecoff_emul.c: revision 1.11
sys/arch/sparc64/sparc64/netbsd32_machdep.c: revision 1.45
sys/arch/amd64/amd64/netbsd32_machdep.c: revision 1.12
sys/sys/proc.h: revision 1.198
sys/compat/mach/mach_exec.c: revision 1.56
sys/compat/freebsd/freebsd_exec.c: revision 1.27
sys/arch/sparc64/include/vmparam.h: revision 1.27
sys/kern/kern_resource.c: revision 1.91
sys/compat/netbsd32/netbsd32_netbsd.c: revision 1.88
sys/compat/osf1/osf1_exec.c: revision 1.39
sys/compat/svr4_32/svr4_32_resource.c: revision 1.5
sys/compat/ultrix/ultrix_misc.c: revision 1.99
sys/compat/svr4_32/svr4_32_exec.h: revision 1.9
sys/kern/exec_elf32.c: revision 1.103
sys/compat/aoutm68k/aoutm68k_exec.c: revision 1.19
sys/compat/sunos32/sunos32_exec.c: revision 1.20
sys/compat/hpux/hpux_exec.c: revision 1.46
sys/compat/darwin/darwin_exec.c: revision 1.40
sys/kern/sysv_shm.c: revision 1.83
sys/uvm/uvm_extern.h: revision 1.99
sys/uvm/uvm_mmap.c: revision 1.89
sys/kern/kern_exec.c: revision 1.195
sys/compat/netbsd32/netbsd32.h: revision 1.31
sys/arch/sparc64/sparc64/svr4_32_machdep.c: revision 1.20
sys/compat/svr4/svr4_exec.c: revision 1.56
sys/compat/irix/irix_exec.c: revision 1.41
sys/compat/ibcs2/ibcs2_exec.c: revision 1.63
sys/compat/svr4_32/svr4_32_exec.c: revision 1.16
sys/arch/amd64/include/vmparam.h: revision 1.8
sys/compat/linux/common/linux_exec.c: revision 1.73
Fix some things regarding COMPAT_NETBSD32 and limits/VM addresses.
* For sparc64 and amd64, define *SIZ32 VM constants.
* Add a new function pointer to struct emul, pointing at a function
that will return the default VM map address. The default function
is uvm_map_defaultaddr, which just uses the VM_DEFAULT_ADDRESS
macro. This gives emulations control over the default map address,
and allows things to be mapped at the right address (in 32bit range)
for COMPAT_NETBSD32.
* Add code to adjust the data and stack limits when a COMPAT_NETBSD32
or COMPAT_SVR4_32 binary is executed.
* Don't use USRSTACK in kern_resource.c, use p_vmspace->vm_minsaddr
instead (emulations might have set it differently)
* Since this changes struct emul, bump kernel version to 3.99.2
Tested on amd64, compile-tested on sparc64.
 1.18.6.1 26-Mar-2005  yamt sync with head.
 1.18.4.1 29-Apr-2005  kent sync with -current
 1.19.2.1 07-Dec-2007  yamt sync with head
 1.20.56.1 08-Dec-2007  ad Sync with head.
 1.20.52.1 08-Dec-2007  mjf Sync with HEAD.
 1.20.46.1 09-Jan-2008  matt sync with HEAD
 1.20.44.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.21.16.4 11-Aug-2010  yamt sync with head.
 1.21.16.3 20-Jun-2009  yamt sync with head
 1.21.16.2 04-May-2009  yamt sync with head.
 1.21.16.1 16-May-2008  yamt sync with head.
 1.21.14.1 18-May-2008  yamt sync with head.
 1.21.12.2 17-Jan-2009  mjf Sync with HEAD.
 1.21.12.1 02-Jun-2008  mjf Sync with HEAD.
 1.22.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.22.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.23.4.1 23-Jul-2009  jym Sync with HEAD.
 1.24.4.1 05-Mar-2011  rmind sync with head
 1.24.2.2 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.24.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.26.12.1 24-Feb-2012  mrg sync to -current.
 1.26.8.1 17-Apr-2012  yamt sync with head
 1.28.2.2 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.28.2.1 21-May-2018  pgoyette Sync with HEAD
 1.29.2.1 10-Jun-2019  christos Sync with HEAD
 1.4 14-Sep-2004  jdolecek remove all alternative path check code, and (empty) ioctl wrapper
 1.3 18-Jan-2003  thorpej branches: 1.3.2;
Merge the nathanw_sa branch.
 1.2 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.1 02-Dec-2000  scw branches: 1.1.2; 1.1.4; 1.1.6;
Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.1.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.4 12-Jul-2002  nathanw No longer need to pull in lwp.h; proc.h pulls it in for us.
 1.1.4.3 29-May-2002  nathanw #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
 1.1.4.2 17-Nov-2001  scw Add set/get_context syscall entries and regenerate sources from
syscalls.master.
Also s/proc/lwp/ where appropriate.
 1.1.4.1 14-Nov-2001  nathanw Catch up to -current.
 1.1.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.1.2.1 02-Dec-2000  bouyer file aoutm68k_ioctl.c was added on branch thorpej_scsipi on 2001-01-08 14:56:46 +0000
 1.3.2.3 22-Sep-2004  skrll Fix.
 1.3.2.2 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.2.1 18-Sep-2004  skrll Sync with HEAD.
 1.10 14-Sep-2004  jdolecek remove all alternative path check code, and (empty) ioctl wrapper
 1.9 21-Apr-2004  christos Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
 1.8 29-Jun-2003  fvdl branches: 1.8.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.7 28-Jun-2003  darrenr Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
 1.6 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.5 16-Mar-2002  christos make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc *
in, instead of using curproc). While there add an optional size argument to
stackgap_init.
 1.4 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.3 30-May-2001  mrg branches: 1.3.2;
use _KERNEL_OPT.
 1.2 22-Jan-2001  jdolecek branches: 1.2.2;
Use CHECK_ALT_SYMLINK() instead CHECK_ALT_EXISTS() where appropriate.
This addresses kern/11757.
 1.1 02-Dec-2000  scw branches: 1.1.2;
Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.1.2.3 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.1.2.1 02-Dec-2000  bouyer file aoutm68k_misc.c was added on branch thorpej_scsipi on 2001-01-08 14:56:47 +0000
 1.2.2.8 12-Jul-2002  nathanw No longer need to pull in lwp.h; proc.h pulls it in for us.
 1.2.2.7 03-Jul-2002  nathanw Whitespace.
 1.2.2.6 29-May-2002  nathanw #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
 1.2.2.5 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.2.4 18-Nov-2001  scw CHECK_ALT_EXISTS() takes a proc *, not an lwp *.
 1.2.2.3 17-Nov-2001  scw Add set/get_context syscall entries and regenerate sources from
syscalls.master.
Also s/proc/lwp/ where appropriate.
 1.2.2.2 14-Nov-2001  nathanw Catch up to -current.
 1.2.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.2.5 22-Sep-2004  skrll Fix.
 1.8.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.8.2.2 03-Aug-2004  skrll Sync with HEAD
 1.8.2.1 02-Jul-2003  darrenr Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
 1.3 07-Mar-2014  christos c99 initializers for struct execsw
 1.2 19-Sep-2013  christos exec modules need to be of the exec kind
 1.1 19-Nov-2008  ad branches: 1.1.4; 1.1.6; 1.1.8; 1.1.12; 1.1.24; 1.1.34; 1.1.38;
Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
 1.1.38.1 18-May-2014  rmind sync with head
 1.1.34.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.24.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.12.2 04-May-2009  yamt sync with head.
 1.1.12.1 19-Nov-2008  yamt file aoutm68k_mod.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:17 +0000
 1.1.8.2 19-Jan-2009  skrll Sync with HEAD.
 1.1.8.1 19-Nov-2008  skrll file aoutm68k_mod.c was added on branch nick-hppapmap on 2009-01-19 13:17:16 +0000
 1.1.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.1.6.1 19-Nov-2008  mjf file aoutm68k_mod.c was added on branch mjf-devfs2 on 2009-01-17 13:28:40 +0000
 1.1.4.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.1.4.1 19-Nov-2008  haad file aoutm68k_mod.c was added on branch haad-dm on 2008-12-13 01:13:44 +0000
 1.24 28-Apr-2008  martin branches: 1.24.2;
Remove clause 3 and 4 from TNF licenses
 1.23 23-Mar-2008  ad branches: 1.23.2; 1.23.4;
Make this build again. From isaki@.
 1.22 20-Dec-2007  dsl branches: 1.22.6;
Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
 1.21 08-Dec-2007  dsl branches: 1.21.4;
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
 1.20 30-Apr-2007  dsl branches: 1.20.6; 1.20.8; 1.20.16;
Rework compat stat() and statvfs() code so that it no longer uses the stackgap.
 1.19 22-Apr-2007  dsl Change the way that emulations locate files within the emulation root to
avoid having to allocate space in the 'stackgap'
- which is very LWP unfriendly.
The additional code for non-emulation namei() is trivial, the reduction for
the emulations is massive.
The vnode for a processes emulation root is saved in the cwdi structure
during process exec.
If the emulation root the TRYEMULROOT flag are set, namei() will do an initial
search for absolute pathnames in the emulation root, if that fails it will
retry from the normal root.
".." at the emulation root will always go to the real root, even in the middle
of paths and when expanding symlinks.
Absolute symlinks found using absolute paths in the emulation root will be
relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links
inside the emulation root don't need changing).
If the root of the emulation would be returned (for an emulation lookup), then
the real root is returned instead (matching the behaviour of emul_lookup,
but being a cheap comparison here) so that programs that scan "../.."
looking for the root dircetory don't loop forever.
The target for symbolic links is no longer mangled (it used to get the
CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended).
CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding
TRYEMULROOT to the flags to NDINIT().
A lot of the emulation system call stubs could now be deleted.
 1.18 10-Mar-2007  dsl branches: 1.18.2;
Update all the compat stuff to not use the 'stackgap' for processing
sys_stat() and friends, instead use do_sys_stat() and do_sys_fstat()
that write the answer into a kernel buffer (on stack) that can be
converted to the correct form and written the userspace.
I've test compiled a few kernels, and tested i386 netbsd1.6 ls.
Given I think I've fixed some bugs, it might be 50-50 with new ones.
 1.17 04-Mar-2007  christos branches: 1.17.2;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.16 09-Feb-2007  ad branches: 1.16.2;
Merge newlock2 to head.
 1.15 01-Aug-2006  martin branches: 1.15.4;
Adapt to latest fhandle_t changes.
Pointed out by Havard Eidnes.
 1.14 05-May-2006  tsutsui Update for fhstat(2) versioning.
 1.13 11-Dec-2005  christos branches: 1.13.4; 1.13.6; 1.13.8; 1.13.10; 1.13.12;
merge ktrace-lwp.
 1.12 14-Sep-2005  he This file now needs <compat/sys/stat.h> to build.
 1.11 22-Aug-2005  he Change from using sys___{,f,l}stat13() to sys___{,f,l}stat30() and
associated data structures, following the change to 64-bit inodes.
 1.10 29-Jun-2003  fvdl branches: 1.10.2; 1.10.18;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.9 28-Jun-2003  darrenr Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
 1.8 02-Apr-2003  he Fill the target st_qspare array with 0, the source field has been reclaimed
for other use by the UFS2 merge, and this is just a filler anyway.
 1.7 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.6 16-Mar-2002  christos make the stackgap_{init,alloc} functions MP friendly (i.e. pass struct proc *
in, instead of using curproc). While there add an optional size argument to
stackgap_init.
 1.5 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.4 30-May-2001  mrg branches: 1.4.2;
use _KERNEL_OPT.
 1.3 07-Apr-2001  tsutsui Allow enabling/disabling /emul/aout alternate path search
on COMPAT_AOUT_M68K environment by options COMPAT_AOUT_ALTPATH.
 1.2 06-Dec-2000  jdolecek branches: 1.2.2; 1.2.4;
make LKM safe
 1.1 02-Dec-2000  scw Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.2.4.8 12-Jul-2002  nathanw No longer need to pull in lwp.h; proc.h pulls it in for us.
 1.2.4.7 29-May-2002  nathanw #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
 1.2.4.6 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.4.5 18-Nov-2001  scw CHECK_ALT_EXISTS() takes a proc *, not an lwp *.
 1.2.4.4 17-Nov-2001  scw Add set/get_context syscall entries and regenerate sources from
syscalls.master.
Also s/proc/lwp/ where appropriate.
 1.2.4.3 14-Nov-2001  nathanw Catch up to -current.
 1.2.4.2 21-Jun-2001  nathanw Catch up to -current.
 1.2.4.1 09-Apr-2001  nathanw Catch up with -current.
 1.2.2.3 21-Apr-2001  bouyer Sync with HEAD
 1.2.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.2.2.1 06-Dec-2000  bouyer file aoutm68k_stat.c was added on branch thorpej_scsipi on 2001-01-08 14:56:47 +0000
 1.4.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.18.6 24-Mar-2008  yamt sync with head.
 1.10.18.5 21-Jan-2008  yamt sync with head
 1.10.18.4 03-Sep-2007  yamt sync with head.
 1.10.18.3 26-Feb-2007  yamt sync with head.
 1.10.18.2 30-Dec-2006  yamt sync with head.
 1.10.18.1 21-Jun-2006  yamt sync with head.
 1.10.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.10.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.10.2.1 02-Jul-2003  darrenr Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
 1.13.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.13.10.1 11-May-2006  elad sync with head
 1.13.8.2 11-Aug-2006  yamt sync with head
 1.13.8.1 24-May-2006  yamt sync with head.
 1.13.6.1 01-Jun-2006  kardel Sync with head.
 1.13.4.1 09-Sep-2006  rpaulo sync with head
 1.15.4.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.16.2.2 07-May-2007  yamt sync with head.
 1.16.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.17.2.2 27-May-2007  ad Sync with head.
 1.17.2.1 13-Mar-2007  ad Sync with head.
 1.18.2.1 11-Jul-2007  mjf Sync with head.
 1.20.16.1 26-Dec-2007  ad Sync with head.
 1.20.8.1 09-Jan-2008  matt sync with HEAD
 1.20.6.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.21.4.1 02-Jan-2008  bouyer Sync with HEAD
 1.22.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.22.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.23.4.1 16-May-2008  yamt sync with head.
 1.23.2.1 18-May-2008  yamt sync with head.
 1.24.2.2 14-May-2008  wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
 1.24.2.1 10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.8 11-Jan-2009  mhitch Compat a.out stat structures also need to use u_int32_t dev_t.
 1.7 11-Jan-2009  tsutsui Compat a.out stat structures should use compat struct timespec50.
Noticed by mhitch@.
 1.6 28-Apr-2008  martin branches: 1.6.8;
Remove clause 3 and 4 from TNF licenses
 1.5 11-Dec-2005  christos branches: 1.5.70; 1.5.72; 1.5.74;
merge ktrace-lwp.
 1.4 19-Aug-2005  christos 64 bit inode changes.
 1.3 25-Jun-2003  martin branches: 1.3.2; 1.3.18;
#ifdef _KERNEL_OPT police
 1.2 23-Jun-2003  martin Make sure to include opt_foo.h if a defflag option FOO is used.
 1.1 02-Dec-2000  scw branches: 1.1.2;
Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.1.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.1.2.1 02-Dec-2000  bouyer file aoutm68k_stat.h was added on branch thorpej_scsipi on 2001-01-08 14:56:48 +0000
 1.3.18.1 21-Jun-2006  yamt sync with head.
 1.3.2.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.74.2 04-May-2009  yamt sync with head.
 1.5.74.1 16-May-2008  yamt sync with head.
 1.5.72.1 18-May-2008  yamt sync with head.
 1.5.70.2 17-Jan-2009  mjf Sync with HEAD.
 1.5.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.55 18-Jun-2019  christos regen
 1.54 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.53 10-Aug-2018  pgoyette Regen
 1.52 06-Jan-2018  kamil branches: 1.52.2; 1.52.4;
Revert vadvise(2) removal

This system call was used in legacy Lisp code, that was inherited to modern
age and still compiled against supported compat layers (e.g. in clisp,
oaklisp, Franz Lisp).

It used to instruct the kernel about paging policy (G/C aware, flush etc).

Newly compiled code (assuming that it will detect vadvise()) will use the
libc stub for vadvise(). The headers for this interface are gone.

vadvise(2) could be marked as COMPAT_80, but as long as we support ultrix,
sunos or aout68k ABI, don't bother with this.

Requested by <mrg>
 1.51 19-Dec-2017  kamil compat/aoutm68k: Drop SYS_vadvise

The (o)vadvise syscall is dummy since the beginning of NetBSD.

Sponsored by <The NetBSD Foundation>
 1.50 19-Dec-2017  kamil compat/aoutm68k: Drop SYS_sbrk

sbrk - change data segment size

This syscall is dummy since the inception of the project. It's implemented
in userland in libc.

Sponsored by <The NetBSD Foundation>
 1.49 19-Dec-2017  kamil compat aoutm68k: Mark sstk(2) as OBSOL

Remove the sstk(2) syscall support and mark it as obsolete.
It has never been implemented in the kernel.

Sponsored by <The NetBSD Foundation>
 1.48 10-May-2017  riastradh regen
 1.47 16-Jan-2017  christos branches: 1.47.4;
regen
 1.46 13-Jan-2017  christos branches: 1.46.2;
regen
 1.45 24-Sep-2015  christos branches: 1.45.2;
Regen
 1.44 07-Mar-2015  christos regen
 1.43 25-Jan-2014  christos branches: 1.43.6;
regen
 1.42 07-Mar-2011  bouyer Regen: use COMPAT_50 quotactl, not the native one
 1.41 02-Mar-2010  pooka branches: 1.41.2; 1.41.4;
regen:
- remove nfssvc / fs_nfs.h / #ifdef NFS
- make getfh unconditional
 1.40 02-Mar-2010  pooka regen for conditional lfs syscall removal
 1.39 14-Dec-2009  matt branches: 1.39.2;
Regen (new makesyscalls.sh)
 1.38 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.37 13-Jan-2009  pooka regen
 1.36 11-Jan-2009  tsutsui Regen from syscalls.master rev 1.31:
> Update for compat_50 stuff. (compile test only)
 1.35 21-Nov-2008  he Commit regenerated files after this change to syscalls.master:

sys_nfssvc() is actually only defined when NFSSERVER is defined,
not when only NFS is defined, according to sys/nfs/files.nfs.
Adapt accordingly. Fixes build of amiga INSTALL kernel.
 1.34 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.33 21-Jun-2008  he branches: 1.33.2; 1.33.4;
Commit regenerated files after adding include of <sys/sched.h>.
 1.32 23-Apr-2008  ad branches: 1.32.2; 1.32.4; 1.32.6;
Regen.
 1.31 20-Dec-2007  dsl branches: 1.31.6; 1.31.8;
regen
 1.30 12-Nov-2007  dsl branches: 1.30.2;
regen
 1.29 09-Nov-2007  dsl Regen
 1.28 14-Jul-2007  dsl branches: 1.28.6; 1.28.8; 1.28.12; 1.28.14;
Adapt for sys_mount() becoming compat_40_sys_mount(),
 1.27 04-Mar-2007  christos branches: 1.27.2;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.26 01-Sep-2006  matt branches: 1.26.8;
Regen.
 1.25 30-Aug-2006  he Regenerate after dealing with options PTRACE.
 1.24 01-Aug-2006  martin regen
 1.23 13-Jul-2006  pavel regen (sys_getfh -> compat_30_sys_getfh).
 1.22 26-Jun-2006  mrg regenerate.
 1.21 29-May-2006  drochner branches: 1.21.2;
regen
 1.20 07-May-2006  tsutsui branches: 1.20.2;
Regen from syscalls.master rev 1.15:
> Use "#if defined(COMPAT_xx) || !defined(_KERNEL)" so that
> kdump(1) can get all proper syscall names.
 1.19 04-May-2006  christos regen
 1.18 11-Dec-2005  christos branches: 1.18.4; 1.18.6; 1.18.8; 1.18.10; 1.18.12;
merge ktrace-lwp.
 1.17 26-Feb-2005  perry branches: 1.17.4;
regen
 1.16 14-Sep-2004  jdolecek branches: 1.16.4; 1.16.6;
regen:
remove all alternative path check code, and (empty) ioctl wrapper
 1.15 22-Apr-2004  matt Regen for statvfs changes.
 1.14 23-Sep-2003  cl regen
 1.13 22-Sep-2003  cl regen
 1.12 18-Jan-2003  thorpej branches: 1.12.2;
Regen to get correct RCS ID.
 1.11 18-Jan-2003  thorpej Regen: Merge the nathanw_sa branch.
 1.10 01-Nov-2002  jdolecek set nsysent to 512
 1.9 03-May-2002  eeh Regen.
 1.8 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.7 30-May-2001  mrg branches: 1.7.2;
use _KERNEL_OPT.
 1.6 07-Apr-2001  tsutsui Regen from aoutm68k/syscalls.master rev 1.5:
> Allow enabling/disabling /emul/aout alternate path search
> on COMPAT_AOUT_M68K environment by options COMPAT_AOUT_ALTPATH.
 1.5 27-Jan-2001  thorpej branches: 1.5.2;
Regen; getpid(2) is MP-safe.
 1.4 27-Jan-2001  thorpej Regen; add sy_flags.
 1.3 09-Dec-2000  mycroft branches: 1.3.2;
Regen.
 1.2 06-Dec-2000  jdolecek regen
 1.1 02-Dec-2000  scw Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.3.2.4 21-Apr-2001  bouyer Sync with HEAD
 1.3.2.3 11-Feb-2001  bouyer Sync with HEAD.
 1.3.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.3.2.1 09-Dec-2000  bouyer file aoutm68k_syscall.h was added on branch thorpej_scsipi on 2001-01-08 14:56:48 +0000
 1.5.2.7 11-Nov-2002  nathanw Catch up to -current
 1.5.2.6 21-Jun-2002  gmcgarry regen
 1.5.2.5 29-May-2002  nathanw Regen.
 1.5.2.4 17-Nov-2001  scw Add set/get_context syscall entries and regenerate sources from
syscalls.master.
Also s/proc/lwp/ where appropriate.
 1.5.2.3 14-Nov-2001  nathanw Catch up to -current.
 1.5.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.5.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.7.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.7.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.12.2.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.12.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.12.2.1 03-Aug-2004  skrll Sync with HEAD
 1.16.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.16.4.1 29-Apr-2005  kent sync with -current
 1.17.4.4 15-Nov-2007  yamt sync with head.
 1.17.4.3 03-Sep-2007  yamt sync with head.
 1.17.4.2 30-Dec-2006  yamt sync with head.
 1.17.4.1 21-Jun-2006  yamt sync with head.
 1.18.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.18.10.1 11-May-2006  elad sync with head
 1.18.8.4 03-Sep-2006  yamt sync with head.
 1.18.8.3 11-Aug-2006  yamt sync with head
 1.18.8.2 26-Jun-2006  yamt sync with head.
 1.18.8.1 24-May-2006  yamt sync with head.
 1.18.6.1 01-Jun-2006  kardel Sync with head.
 1.18.4.1 09-Sep-2006  rpaulo sync with head
 1.20.2.1 19-Jun-2006  chap Sync with head.
 1.21.2.1 13-Jul-2006  gdamore Merge from HEAD.
 1.26.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.27.2.1 15-Jul-2007  ad Sync with head.
 1.28.14.2 27-Dec-2007  mjf Sync with HEAD.
 1.28.14.1 19-Nov-2007  mjf Sync with HEAD.
 1.28.12.1 13-Nov-2007  bouyer Sync with HEAD
 1.28.8.1 09-Jan-2008  matt sync with HEAD
 1.28.6.2 14-Nov-2007  joerg Sync with HEAD.
 1.28.6.1 11-Nov-2007  joerg Sync with HEAD.
 1.30.2.1 26-Dec-2007  ad Sync with head.
 1.31.8.1 18-May-2008  yamt sync with head.
 1.31.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.31.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.31.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.32.6.1 27-Jun-2008  simonb Sync with head.
 1.32.4.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.32.2.2 11-Mar-2010  yamt sync with head
 1.32.2.1 04-May-2009  yamt sync with head.
 1.33.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.33.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.39.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.41.4.1 06-Jun-2011  jruoho Sync with HEAD.
 1.41.2.1 21-Apr-2011  rmind sync with head
 1.43.6.1 06-Apr-2015  skrll Sync with HEAD
 1.45.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.46.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.47.4.1 11-May-2017  pgoyette Sync with HEAD
 1.52.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.52.4.1 10-Jun-2019  christos Sync with HEAD
 1.52.2.2 29-Sep-2018  pgoyette Regen
 1.52.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.53 18-Jun-2019  christos regen
 1.52 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.51 10-Aug-2018  pgoyette Regen
 1.50 06-Jan-2018  kamil branches: 1.50.2; 1.50.4;
Revert vadvise(2) removal

This system call was used in legacy Lisp code, that was inherited to modern
age and still compiled against supported compat layers (e.g. in clisp,
oaklisp, Franz Lisp).

It used to instruct the kernel about paging policy (G/C aware, flush etc).

Newly compiled code (assuming that it will detect vadvise()) will use the
libc stub for vadvise(). The headers for this interface are gone.

vadvise(2) could be marked as COMPAT_80, but as long as we support ultrix,
sunos or aout68k ABI, don't bother with this.

Requested by <mrg>
 1.49 19-Dec-2017  kamil compat/aoutm68k: Drop SYS_vadvise

The (o)vadvise syscall is dummy since the beginning of NetBSD.

Sponsored by <The NetBSD Foundation>
 1.48 19-Dec-2017  kamil compat/aoutm68k: Drop SYS_sbrk

sbrk - change data segment size

This syscall is dummy since the inception of the project. It's implemented
in userland in libc.

Sponsored by <The NetBSD Foundation>
 1.47 19-Dec-2017  kamil compat aoutm68k: Mark sstk(2) as OBSOL

Remove the sstk(2) syscall support and mark it as obsolete.
It has never been implemented in the kernel.

Sponsored by <The NetBSD Foundation>
 1.46 10-May-2017  riastradh regen
 1.45 16-Jan-2017  christos branches: 1.45.4;
regen
 1.44 13-Jan-2017  christos branches: 1.44.2;
regen
 1.43 24-Sep-2015  christos branches: 1.43.2;
Regen
 1.42 07-Mar-2015  christos regen
 1.41 25-Jan-2014  christos branches: 1.41.6;
regen
 1.40 07-Mar-2011  bouyer branches: 1.40.14;
Regen: use COMPAT_50 quotactl, not the native one
 1.39 02-Mar-2010  pooka branches: 1.39.2; 1.39.4;
regen:
- remove nfssvc / fs_nfs.h / #ifdef NFS
- make getfh unconditional
 1.38 02-Mar-2010  pooka regen for conditional lfs syscall removal
 1.37 14-Dec-2009  matt branches: 1.37.2;
Regen (new makesyscalls.sh)
 1.36 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.35 13-Jan-2009  pooka regen
 1.34 11-Jan-2009  tsutsui Regen from syscalls.master rev 1.31:
> Update for compat_50 stuff. (compile test only)
 1.33 21-Nov-2008  he Commit regenerated files after this change to syscalls.master:

sys_nfssvc() is actually only defined when NFSSERVER is defined,
not when only NFS is defined, according to sys/nfs/files.nfs.
Adapt accordingly. Fixes build of amiga INSTALL kernel.
 1.32 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.31 21-Jun-2008  he branches: 1.31.2; 1.31.4;
Commit regenerated files after adding include of <sys/sched.h>.
 1.30 23-Apr-2008  ad branches: 1.30.2; 1.30.4; 1.30.6;
Regen.
 1.29 20-Dec-2007  dsl branches: 1.29.6; 1.29.8;
regen
 1.28 12-Nov-2007  dsl branches: 1.28.2; 1.28.6;
regen
 1.27 09-Nov-2007  dsl Regen
 1.26 14-Jul-2007  dsl branches: 1.26.6; 1.26.8; 1.26.12; 1.26.14;
Adapt for sys_mount() becoming compat_40_sys_mount(),
 1.25 01-Sep-2006  matt branches: 1.25.12;
Regen.
 1.24 30-Aug-2006  he Regenerate after dealing with options PTRACE.
 1.23 01-Aug-2006  martin regen
 1.22 13-Jul-2006  pavel regen (sys_getfh -> compat_30_sys_getfh).
 1.21 26-Jun-2006  mrg regenerate.
 1.20 29-May-2006  drochner branches: 1.20.2;
regen
 1.19 07-May-2006  tsutsui branches: 1.19.2;
Regen from syscalls.master rev 1.15:
> Use "#if defined(COMPAT_xx) || !defined(_KERNEL)" so that
> kdump(1) can get all proper syscall names.
 1.18 04-May-2006  christos regen
 1.17 11-Dec-2005  christos branches: 1.17.4; 1.17.6; 1.17.8; 1.17.10; 1.17.12;
merge ktrace-lwp.
 1.16 26-Feb-2005  perry branches: 1.16.4;
regen
 1.15 14-Sep-2004  jdolecek branches: 1.15.4; 1.15.6;
regen:
remove all alternative path check code, and (empty) ioctl wrapper
 1.14 22-Apr-2004  matt Regen for statvfs changes.
 1.13 23-Sep-2003  cl regen
 1.12 22-Sep-2003  cl regen
 1.11 18-Jan-2003  thorpej branches: 1.11.2;
Regen to get correct RCS ID.
 1.10 18-Jan-2003  thorpej Regen: Merge the nathanw_sa branch.
 1.9 03-May-2002  eeh Regen.
 1.8 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.7 30-May-2001  mrg branches: 1.7.2;
use _KERNEL_OPT.
 1.6 07-Apr-2001  tsutsui Regen from aoutm68k/syscalls.master rev 1.5:
> Allow enabling/disabling /emul/aout alternate path search
> on COMPAT_AOUT_M68K environment by options COMPAT_AOUT_ALTPATH.
 1.5 27-Jan-2001  thorpej branches: 1.5.2;
Regen; getpid(2) is MP-safe.
 1.4 27-Jan-2001  thorpej Regen; add sy_flags.
 1.3 09-Dec-2000  mycroft branches: 1.3.2;
Regen.
 1.2 06-Dec-2000  jdolecek regen
 1.1 02-Dec-2000  scw Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.3.2.4 21-Apr-2001  bouyer Sync with HEAD
 1.3.2.3 11-Feb-2001  bouyer Sync with HEAD.
 1.3.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.3.2.1 09-Dec-2000  bouyer file aoutm68k_syscallargs.h was added on branch thorpej_scsipi on 2001-01-08 14:56:49 +0000
 1.5.2.8 11-Nov-2002  nathanw Catch up to -current
 1.5.2.7 21-Jun-2002  gmcgarry regen
 1.5.2.6 20-Jun-2002  nathanw Catch up to -current.
 1.5.2.5 29-May-2002  nathanw Regen.
 1.5.2.4 17-Nov-2001  scw Add set/get_context syscall entries and regenerate sources from
syscalls.master.
Also s/proc/lwp/ where appropriate.
 1.5.2.3 14-Nov-2001  nathanw Catch up to -current.
 1.5.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.5.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.7.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.7.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.11.2.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.11.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.11.2.1 03-Aug-2004  skrll Sync with HEAD
 1.15.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.15.4.1 29-Apr-2005  kent sync with -current
 1.16.4.5 21-Jan-2008  yamt sync with head
 1.16.4.4 15-Nov-2007  yamt sync with head.
 1.16.4.3 03-Sep-2007  yamt sync with head.
 1.16.4.2 30-Dec-2006  yamt sync with head.
 1.16.4.1 21-Jun-2006  yamt sync with head.
 1.17.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.17.10.1 11-May-2006  elad sync with head
 1.17.8.4 03-Sep-2006  yamt sync with head.
 1.17.8.3 11-Aug-2006  yamt sync with head
 1.17.8.2 26-Jun-2006  yamt sync with head.
 1.17.8.1 24-May-2006  yamt sync with head.
 1.17.6.1 01-Jun-2006  kardel Sync with head.
 1.17.4.1 09-Sep-2006  rpaulo sync with head
 1.19.2.1 19-Jun-2006  chap Sync with head.
 1.20.2.1 13-Jul-2006  gdamore Merge from HEAD.
 1.25.12.1 15-Jul-2007  ad Sync with head.
 1.26.14.2 27-Dec-2007  mjf Sync with HEAD.
 1.26.14.1 19-Nov-2007  mjf Sync with HEAD.
 1.26.12.1 13-Nov-2007  bouyer Sync with HEAD
 1.26.8.1 09-Jan-2008  matt sync with HEAD
 1.26.6.2 14-Nov-2007  joerg Sync with HEAD.
 1.26.6.1 11-Nov-2007  joerg Sync with HEAD.
 1.28.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.28.2.1 26-Dec-2007  ad Sync with head.
 1.29.8.1 18-May-2008  yamt sync with head.
 1.29.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.29.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.29.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.30.6.1 27-Jun-2008  simonb Sync with head.
 1.30.4.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.30.2.2 11-Mar-2010  yamt sync with head
 1.30.2.1 04-May-2009  yamt sync with head.
 1.31.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.31.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.37.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.39.4.1 06-Jun-2011  jruoho Sync with HEAD.
 1.39.2.1 21-Apr-2011  rmind sync with head
 1.40.14.1 03-Dec-2017  jdolecek update from HEAD
 1.41.6.2 28-Aug-2017  skrll Sync with HEAD
 1.41.6.1 06-Apr-2015  skrll Sync with HEAD
 1.43.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.44.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.45.4.1 11-May-2017  pgoyette Sync with HEAD
 1.50.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.50.4.1 10-Jun-2019  christos Sync with HEAD
 1.50.2.2 29-Sep-2018  pgoyette Regen
 1.50.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.52 18-Jun-2019  christos regen
 1.51 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.50 10-Aug-2018  pgoyette Regen
 1.49 06-Jan-2018  kamil branches: 1.49.2; 1.49.4;
Revert vadvise(2) removal

This system call was used in legacy Lisp code, that was inherited to modern
age and still compiled against supported compat layers (e.g. in clisp,
oaklisp, Franz Lisp).

It used to instruct the kernel about paging policy (G/C aware, flush etc).

Newly compiled code (assuming that it will detect vadvise()) will use the
libc stub for vadvise(). The headers for this interface are gone.

vadvise(2) could be marked as COMPAT_80, but as long as we support ultrix,
sunos or aout68k ABI, don't bother with this.

Requested by <mrg>
 1.48 19-Dec-2017  kamil compat/aoutm68k: Drop SYS_vadvise

The (o)vadvise syscall is dummy since the beginning of NetBSD.

Sponsored by <The NetBSD Foundation>
 1.47 19-Dec-2017  kamil compat/aoutm68k: Drop SYS_sbrk

sbrk - change data segment size

This syscall is dummy since the inception of the project. It's implemented
in userland in libc.

Sponsored by <The NetBSD Foundation>
 1.46 19-Dec-2017  kamil compat aoutm68k: Mark sstk(2) as OBSOL

Remove the sstk(2) syscall support and mark it as obsolete.
It has never been implemented in the kernel.

Sponsored by <The NetBSD Foundation>
 1.45 10-May-2017  riastradh regen
 1.44 16-Jan-2017  christos branches: 1.44.4;
regen
 1.43 13-Jan-2017  christos branches: 1.43.2;
regen
 1.42 24-Sep-2015  christos branches: 1.42.2;
Regen
 1.41 07-Mar-2015  christos regen
 1.40 25-Jan-2014  christos branches: 1.40.6;
regen
 1.39 07-Mar-2011  bouyer branches: 1.39.14;
Regen: use COMPAT_50 quotactl, not the native one
 1.38 02-Mar-2010  pooka branches: 1.38.2; 1.38.4;
regen:
- remove nfssvc / fs_nfs.h / #ifdef NFS
- make getfh unconditional
 1.37 02-Mar-2010  pooka regen for conditional lfs syscall removal
 1.36 14-Dec-2009  matt branches: 1.36.2;
Regen (new makesyscalls.sh)
 1.35 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.34 13-Jan-2009  pooka regen
 1.33 11-Jan-2009  tsutsui Regen from syscalls.master rev 1.31:
> Update for compat_50 stuff. (compile test only)
 1.32 21-Nov-2008  he Commit regenerated files after this change to syscalls.master:

sys_nfssvc() is actually only defined when NFSSERVER is defined,
not when only NFS is defined, according to sys/nfs/files.nfs.
Adapt accordingly. Fixes build of amiga INSTALL kernel.
 1.31 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.30 21-Jun-2008  he branches: 1.30.2; 1.30.4;
Commit regenerated files after adding include of <sys/sched.h>.
 1.29 23-Apr-2008  ad branches: 1.29.2; 1.29.4; 1.29.6;
Regen.
 1.28 20-Dec-2007  dsl branches: 1.28.6; 1.28.8;
regen
 1.27 12-Nov-2007  dsl branches: 1.27.2;
regen
 1.26 09-Nov-2007  dsl Regen
 1.25 14-Jul-2007  dsl branches: 1.25.6; 1.25.8; 1.25.12; 1.25.14;
Adapt for sys_mount() becoming compat_40_sys_mount(),
 1.24 09-Feb-2007  ad branches: 1.24.6;
Merge newlock2 to head.
 1.23 01-Sep-2006  matt branches: 1.23.2;
Regen.
 1.22 30-Aug-2006  he Regenerate after dealing with options PTRACE.
 1.21 01-Aug-2006  martin regen
 1.20 13-Jul-2006  pavel regen (sys_getfh -> compat_30_sys_getfh).
 1.19 26-Jun-2006  mrg regenerate.
 1.18 29-May-2006  drochner branches: 1.18.2;
regen
 1.17 07-May-2006  tsutsui branches: 1.17.2; 1.17.4; 1.17.6;
Regen from syscalls.master rev 1.15:
> Use "#if defined(COMPAT_xx) || !defined(_KERNEL)" so that
> kdump(1) can get all proper syscall names.
 1.16 04-May-2006  tsutsui Generate initial aoutm68k_syscalls.c.
 1.15 10-Sep-2004  jdolecek branches: 1.15.6; 1.15.16; 1.15.18; 1.15.20;
garbage-collect aoutm68k_syscalls.c, it's just taking up space (it's not used)
 1.14 22-Apr-2004  matt Regen for statvfs changes.
 1.13 23-Sep-2003  cl regen
 1.12 22-Sep-2003  cl regen
 1.11 18-Jan-2003  thorpej branches: 1.11.2;
Regen to get correct RCS ID.
 1.10 18-Jan-2003  thorpej Regen: Merge the nathanw_sa branch.
 1.9 03-May-2002  eeh Regen.
 1.8 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.7 30-May-2001  mrg branches: 1.7.2;
use _KERNEL_OPT.
 1.6 07-Apr-2001  tsutsui Regen from aoutm68k/syscalls.master rev 1.5:
> Allow enabling/disabling /emul/aout alternate path search
> on COMPAT_AOUT_M68K environment by options COMPAT_AOUT_ALTPATH.
 1.5 27-Jan-2001  thorpej branches: 1.5.2;
Regen; getpid(2) is MP-safe.
 1.4 27-Jan-2001  thorpej Regen; add sy_flags.
 1.3 09-Dec-2000  mycroft branches: 1.3.2;
Regen.
 1.2 06-Dec-2000  jdolecek regen
 1.1 02-Dec-2000  scw Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.3.2.4 21-Apr-2001  bouyer Sync with HEAD
 1.3.2.3 11-Feb-2001  bouyer Sync with HEAD.
 1.3.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.3.2.1 09-Dec-2000  bouyer file aoutm68k_syscalls.c was added on branch thorpej_scsipi on 2001-01-08 14:56:49 +0000
 1.5.2.8 11-Nov-2002  nathanw Catch up to -current
 1.5.2.7 21-Jun-2002  gmcgarry regen
 1.5.2.6 20-Jun-2002  nathanw Catch up to -current.
 1.5.2.5 29-May-2002  nathanw Regen.
 1.5.2.4 17-Nov-2001  scw Add set/get_context syscall entries and regenerate sources from
syscalls.master.
Also s/proc/lwp/ where appropriate.
 1.5.2.3 14-Nov-2001  nathanw Catch up to -current.
 1.5.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.5.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.7.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.7.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.11.2.4 22-Sep-2004  skrll Fix.
 1.11.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.11.2.1 03-Aug-2004  skrll Sync with HEAD
 1.15.20.4 03-Sep-2006  yamt sync with head.
 1.15.20.3 11-Aug-2006  yamt sync with head
 1.15.20.2 26-Jun-2006  yamt sync with head.
 1.15.20.1 24-May-2006  yamt sync with head.
 1.15.18.1 01-Jun-2006  kardel Sync with head.
 1.15.16.1 09-Sep-2006  rpaulo sync with head
 1.15.6.5 15-Nov-2007  yamt sync with head.
 1.15.6.4 03-Sep-2007  yamt sync with head.
 1.15.6.3 26-Feb-2007  yamt sync with head.
 1.15.6.2 30-Dec-2006  yamt sync with head.
 1.15.6.1 21-Jun-2006  yamt sync with head.
 1.17.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.17.6.1 07-May-2006  tron file aoutm68k_syscalls.c was added on branch peter-altq on 2006-05-24 15:48:26 +0000
 1.17.4.1 19-Jun-2006  chap Sync with head.
 1.17.2.2 11-May-2006  elad sync with head
 1.17.2.1 07-May-2006  elad file aoutm68k_syscalls.c was added on branch elad-kernelauth on 2006-05-11 23:27:30 +0000
 1.18.2.1 13-Jul-2006  gdamore Merge from HEAD.
 1.23.2.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.24.6.1 15-Jul-2007  ad Sync with head.
 1.25.14.2 27-Dec-2007  mjf Sync with HEAD.
 1.25.14.1 19-Nov-2007  mjf Sync with HEAD.
 1.25.12.1 13-Nov-2007  bouyer Sync with HEAD
 1.25.8.1 09-Jan-2008  matt sync with HEAD
 1.25.6.2 14-Nov-2007  joerg Sync with HEAD.
 1.25.6.1 11-Nov-2007  joerg Sync with HEAD.
 1.27.2.1 26-Dec-2007  ad Sync with head.
 1.28.8.1 18-May-2008  yamt sync with head.
 1.28.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.28.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.28.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.29.6.1 27-Jun-2008  simonb Sync with head.
 1.29.4.3 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.29.4.2 14-May-2008  wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
 1.29.4.1 10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.29.2.2 11-Mar-2010  yamt sync with head
 1.29.2.1 04-May-2009  yamt sync with head.
 1.30.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.30.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.36.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.38.4.1 06-Jun-2011  jruoho Sync with HEAD.
 1.38.2.1 21-Apr-2011  rmind sync with head
 1.39.14.1 03-Dec-2017  jdolecek update from HEAD
 1.40.6.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.40.6.1 06-Apr-2015  skrll Sync with HEAD
 1.42.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.43.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.44.4.1 11-May-2017  pgoyette Sync with HEAD
 1.49.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.49.4.1 10-Jun-2019  christos Sync with HEAD
 1.49.2.2 29-Sep-2018  pgoyette Regen
 1.49.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.57 18-Jun-2019  christos regen
 1.56 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.55 10-Aug-2018  pgoyette Regen
 1.54 06-Jan-2018  kamil branches: 1.54.2; 1.54.4;
Revert vadvise(2) removal

This system call was used in legacy Lisp code, that was inherited to modern
age and still compiled against supported compat layers (e.g. in clisp,
oaklisp, Franz Lisp).

It used to instruct the kernel about paging policy (G/C aware, flush etc).

Newly compiled code (assuming that it will detect vadvise()) will use the
libc stub for vadvise(). The headers for this interface are gone.

vadvise(2) could be marked as COMPAT_80, but as long as we support ultrix,
sunos or aout68k ABI, don't bother with this.

Requested by <mrg>
 1.53 19-Dec-2017  kamil compat/aoutm68k: Drop SYS_vadvise

The (o)vadvise syscall is dummy since the beginning of NetBSD.

Sponsored by <The NetBSD Foundation>
 1.52 19-Dec-2017  kamil compat/aoutm68k: Drop SYS_sbrk

sbrk - change data segment size

This syscall is dummy since the inception of the project. It's implemented
in userland in libc.

Sponsored by <The NetBSD Foundation>
 1.51 19-Dec-2017  kamil compat aoutm68k: Mark sstk(2) as OBSOL

Remove the sstk(2) syscall support and mark it as obsolete.
It has never been implemented in the kernel.

Sponsored by <The NetBSD Foundation>
 1.50 10-May-2017  riastradh regen
 1.49 16-Jan-2017  christos branches: 1.49.4;
regen
 1.48 13-Jan-2017  christos branches: 1.48.2;
regen
 1.47 24-Sep-2015  christos branches: 1.47.2;
Regen
 1.46 07-Mar-2015  christos regen
 1.45 25-Jan-2014  christos branches: 1.45.6;
regen
 1.44 07-Mar-2011  bouyer branches: 1.44.4; 1.44.14; 1.44.18;
Regen: use COMPAT_50 quotactl, not the native one
 1.43 02-Mar-2010  pooka branches: 1.43.2; 1.43.4;
regen:
- remove nfssvc / fs_nfs.h / #ifdef NFS
- make getfh unconditional
 1.42 02-Mar-2010  pooka regen for conditional lfs syscall removal
 1.41 14-Dec-2009  matt branches: 1.41.2;
Regen (new makesyscalls.sh)
 1.40 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.39 13-Jan-2009  pooka regen
 1.38 11-Jan-2009  tsutsui Regen from syscalls.master rev 1.31:
> Update for compat_50 stuff. (compile test only)
 1.37 21-Nov-2008  he Commit regenerated files after this change to syscalls.master:

sys_nfssvc() is actually only defined when NFSSERVER is defined,
not when only NFS is defined, according to sys/nfs/files.nfs.
Adapt accordingly. Fixes build of amiga INSTALL kernel.
 1.36 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.35 21-Jun-2008  he branches: 1.35.2; 1.35.4;
Commit regenerated files after adding include of <sys/sched.h>.
 1.34 17-Jun-2008  he <sys/syscallargs.h> now needs <sys/sched.h> included for the cpuset_t type
declaragion, so comply with that so that this builds again.
 1.33 23-Apr-2008  ad branches: 1.33.2; 1.33.4; 1.33.6;
Regen.
 1.32 20-Dec-2007  dsl branches: 1.32.6; 1.32.8;
regen
 1.31 12-Nov-2007  dsl branches: 1.31.2; 1.31.6;
regen
 1.30 09-Nov-2007  dsl Regen
 1.29 14-Jul-2007  dsl branches: 1.29.6; 1.29.8; 1.29.12; 1.29.14;
Adapt for sys_mount() becoming compat_40_sys_mount(),
 1.28 09-Feb-2007  ad branches: 1.28.6;
Merge newlock2 to head.
 1.27 01-Sep-2006  matt branches: 1.27.2;
Regen.
 1.26 30-Aug-2006  he Regenerate after dealing with options PTRACE.
 1.25 01-Aug-2006  martin regen
 1.24 13-Jul-2006  pavel regen (sys_getfh -> compat_30_sys_getfh).
 1.23 26-Jun-2006  mrg regenerate.
 1.22 29-May-2006  drochner branches: 1.22.2;
regen
 1.21 07-May-2006  tsutsui branches: 1.21.2;
Regen from syscalls.master rev 1.15:
> Use "#if defined(COMPAT_xx) || !defined(_KERNEL)" so that
> kdump(1) can get all proper syscall names.
 1.20 04-May-2006  christos regen
 1.19 11-Dec-2005  christos branches: 1.19.4; 1.19.6; 1.19.8; 1.19.10; 1.19.12;
merge ktrace-lwp.
 1.18 22-Aug-2005  he Change from using sys___{,f,l}stat13() to sys___{,f,l}stat30() and
associated data structures, following the change to 64-bit inodes.
 1.17 26-Feb-2005  perry branches: 1.17.4;
regen
 1.16 14-Sep-2004  jdolecek branches: 1.16.4; 1.16.6;
regen:
remove all alternative path check code, and (empty) ioctl wrapper
 1.15 22-Apr-2004  matt Regen for statvfs changes.
 1.14 23-Sep-2003  cl regen
 1.13 22-Sep-2003  cl regen
 1.12 18-Jan-2003  thorpej branches: 1.12.2;
Regen to get correct RCS ID.
 1.11 18-Jan-2003  thorpej Regen: Merge the nathanw_sa branch.
 1.10 01-Nov-2002  jdolecek set nsysent to 512
 1.9 03-May-2002  eeh Regen.
 1.8 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.7 30-May-2001  mrg branches: 1.7.2;
use _KERNEL_OPT.
 1.6 07-Apr-2001  tsutsui Regen from aoutm68k/syscalls.master rev 1.5:
> Allow enabling/disabling /emul/aout alternate path search
> on COMPAT_AOUT_M68K environment by options COMPAT_AOUT_ALTPATH.
 1.5 27-Jan-2001  thorpej branches: 1.5.2;
Regen; getpid(2) is MP-safe.
 1.4 27-Jan-2001  thorpej Regen; add sy_flags.
 1.3 09-Dec-2000  mycroft branches: 1.3.2;
Regen.
 1.2 06-Dec-2000  jdolecek regen
 1.1 02-Dec-2000  scw Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.3.2.4 21-Apr-2001  bouyer Sync with HEAD
 1.3.2.3 11-Feb-2001  bouyer Sync with HEAD.
 1.3.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.3.2.1 09-Dec-2000  bouyer file aoutm68k_sysent.c was added on branch thorpej_scsipi on 2001-01-08 14:56:50 +0000
 1.5.2.8 11-Nov-2002  nathanw Catch up to -current
 1.5.2.7 21-Jun-2002  gmcgarry regen
 1.5.2.6 20-Jun-2002  nathanw Catch up to -current.
 1.5.2.5 29-May-2002  nathanw Regen.
 1.5.2.4 17-Nov-2001  scw Add set/get_context syscall entries and regenerate sources from
syscalls.master.
Also s/proc/lwp/ where appropriate.
 1.5.2.3 14-Nov-2001  nathanw Catch up to -current.
 1.5.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.5.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.7.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.7.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.12.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.12.2.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.12.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.12.2.1 03-Aug-2004  skrll Sync with HEAD
 1.16.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.16.4.1 29-Apr-2005  kent sync with -current
 1.17.4.6 21-Jan-2008  yamt sync with head
 1.17.4.5 15-Nov-2007  yamt sync with head.
 1.17.4.4 03-Sep-2007  yamt sync with head.
 1.17.4.3 26-Feb-2007  yamt sync with head.
 1.17.4.2 30-Dec-2006  yamt sync with head.
 1.17.4.1 21-Jun-2006  yamt sync with head.
 1.19.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.19.10.1 11-May-2006  elad sync with head
 1.19.8.4 03-Sep-2006  yamt sync with head.
 1.19.8.3 11-Aug-2006  yamt sync with head
 1.19.8.2 26-Jun-2006  yamt sync with head.
 1.19.8.1 24-May-2006  yamt sync with head.
 1.19.6.1 01-Jun-2006  kardel Sync with head.
 1.19.4.1 09-Sep-2006  rpaulo sync with head
 1.21.2.1 19-Jun-2006  chap Sync with head.
 1.22.2.1 13-Jul-2006  gdamore Merge from HEAD.
 1.27.2.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.28.6.1 15-Jul-2007  ad Sync with head.
 1.29.14.2 27-Dec-2007  mjf Sync with HEAD.
 1.29.14.1 19-Nov-2007  mjf Sync with HEAD.
 1.29.12.1 13-Nov-2007  bouyer Sync with HEAD
 1.29.8.1 09-Jan-2008  matt sync with HEAD
 1.29.6.2 14-Nov-2007  joerg Sync with HEAD.
 1.29.6.1 11-Nov-2007  joerg Sync with HEAD.
 1.31.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.31.2.1 26-Dec-2007  ad Sync with head.
 1.32.8.1 18-May-2008  yamt sync with head.
 1.32.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.32.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.32.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.33.6.2 27-Jun-2008  simonb Sync with head.
 1.33.6.1 18-Jun-2008  simonb Sync with head.
 1.33.4.3 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.33.4.2 14-May-2008  wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
 1.33.4.1 10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.33.2.2 11-Mar-2010  yamt sync with head
 1.33.2.1 04-May-2009  yamt sync with head.
 1.35.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.35.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.41.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.43.4.1 06-Jun-2011  jruoho Sync with HEAD.
 1.43.2.1 21-Apr-2011  rmind sync with head
 1.44.18.1 18-May-2014  rmind sync with head
 1.44.14.2 03-Dec-2017  jdolecek update from HEAD
 1.44.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.44.4.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.45.6.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.45.6.1 06-Apr-2015  skrll Sync with HEAD
 1.47.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.48.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.49.4.1 11-May-2017  pgoyette Sync with HEAD
 1.54.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.54.4.1 10-Jun-2019  christos Sync with HEAD
 1.54.2.2 29-Sep-2018  pgoyette Regen
 1.54.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 02-Dec-2000  scw branches: 1.1.2; 1.1.124; 1.1.126; 1.1.128;
Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.1.128.1 16-May-2008  yamt sync with head.
 1.1.126.1 18-May-2008  yamt sync with head.
 1.1.124.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.1.2.1 02-Dec-2000  bouyer file aoutm68k_util.h was added on branch thorpej_scsipi on 2001-01-08 14:56:50 +0000
 1.8 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.7 17-Nov-2014  uebayasi branches: 1.7.18; 1.7.20;
Define compat modules (but without dependencies yet).
 1.6 19-Nov-2008  ad branches: 1.6.26;
Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
 1.5 11-Dec-2005  christos branches: 1.5.70; 1.5.74; 1.5.80; 1.5.84;
merge ktrace-lwp.
 1.4 14-Sep-2004  jdolecek remove all alternative path check code, and (empty) ioctl wrapper
 1.3 12-Sep-2004  he More removal of references to aoutm68k_syscalls.c, following that file's
removal. Allows our m68k ports to build again.
 1.2 07-Apr-2001  tsutsui branches: 1.2.22;
Allow enabling/disabling /emul/aout alternate path search
on COMPAT_AOUT_M68K environment by options COMPAT_AOUT_ALTPATH.
 1.1 02-Dec-2000  scw branches: 1.1.2; 1.1.4;
Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.1.4.1 09-Apr-2001  nathanw Catch up with -current.
 1.1.2.3 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.1.2.1 02-Dec-2000  bouyer file files.aoutm68k was added on branch thorpej_scsipi on 2001-01-08 14:56:51 +0000
 1.2.22.2 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.22.1 18-Sep-2004  skrll Sync with HEAD.
 1.5.84.1 19-Jan-2009  skrll Sync with HEAD.
 1.5.80.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.5.74.1 04-May-2009  yamt sync with head.
 1.5.70.1 17-Jan-2009  mjf Sync with HEAD.
 1.6.26.1 03-Dec-2017  jdolecek update from HEAD
 1.7.20.1 10-Jun-2019  christos Sync with HEAD
 1.7.18.1 12-Mar-2018  pgoyette Update dependencies for modules when they are built-in. Now we don't
(or at least, shouldn't) need reminders in the GENERIC config files
about which module options require other options.

Update branch status doc accordingly.
 1.2 01-Nov-2002  jdolecek set nsysent to 512
 1.1 02-Dec-2000  scw branches: 1.1.2; 1.1.4;
Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.1.4.1 11-Nov-2002  nathanw Catch up to -current
 1.1.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.1.2.1 02-Dec-2000  bouyer file syscalls.conf was added on branch thorpej_scsipi on 2001-01-08 14:56:51 +0000
 1.44 18-Jun-2019  christos fix excl
 1.43 18-Jun-2019  christos add quota check
 1.42 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.41 06-Jan-2018  kamil branches: 1.41.2; 1.41.4;
Revert vadvise(2) removal

This system call was used in legacy Lisp code, that was inherited to modern
age and still compiled against supported compat layers (e.g. in clisp,
oaklisp, Franz Lisp).

It used to instruct the kernel about paging policy (G/C aware, flush etc).

Newly compiled code (assuming that it will detect vadvise()) will use the
libc stub for vadvise(). The headers for this interface are gone.

vadvise(2) could be marked as COMPAT_80, but as long as we support ultrix,
sunos or aout68k ABI, don't bother with this.

Requested by <mrg>
 1.40 19-Dec-2017  kamil compat/aoutm68k: Drop SYS_vadvise

The (o)vadvise syscall is dummy since the beginning of NetBSD.

Sponsored by <The NetBSD Foundation>
 1.39 19-Dec-2017  kamil compat/aoutm68k: Drop SYS_sbrk

sbrk - change data segment size

This syscall is dummy since the inception of the project. It's implemented
in userland in libc.

Sponsored by <The NetBSD Foundation>
 1.38 19-Dec-2017  kamil compat aoutm68k: Mark sstk(2) as OBSOL

Remove the sstk(2) syscall support and mark it as obsolete.
It has never been implemented in the kernel.

Sponsored by <The NetBSD Foundation>
 1.37 07-Mar-2011  bouyer Use the COMPAT_50 quotactl, not the native one.
Should fix build of COMPAT_AOUT_M68K
 1.36 02-Mar-2010  pooka branches: 1.36.2; 1.36.4;
Kill fs_nfs.h and #ifdef NFS by making getfh() support unconditional
and nfssvc unsupport unconditional. nfs server was just a fancy
NOP anyway for all except Ultrix. I know I'm boring but I couldn't
imagine why someone would want to run an Ultrix nfs server (and I
also doubt that it would work anymore with all the changes to fs
exporting etc).
 1.35 02-Mar-2010  pooka -fs_lfs.h
 1.34 02-Mar-2010  pooka Remove lfs syscall support from compat. I can't really imagine
anyone wanting to run lfs megamaid as a e.g. FreeBSD binary.
Besides, the real action has been in fcntl() for >5 years now.
The only place where the compat syscalls might have made the tiniest
bit of sense was netbsd32, but they were unimplemented there.
 1.33 13-Jan-2009  pooka branches: 1.33.4;
Convert the syscalls.master to a format from which it is easier
to parse and generate the compat name and basename (e.g. __stat50
and stat). Use this to autogenerate __RENAME()'s to the rump_syscalls
header so that they can be called e.g. rump_sys_socket() instead
of rump_sys___socket30().
 1.32 13-Jan-2009  pooka Make one UNIMPL consistent with the rest: remove signature.
 1.31 11-Jan-2009  tsutsui Update for compat_50 stuff. (compile test only)
 1.30 21-Nov-2008  he sys_nfssvc() is actually only defined when NFSSERVER is defined,
not when only NFS is defined, according to sys/nfs/files.nfs.
Adapt accordingly. Fixes build of amiga INSTALL kernel.
 1.29 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.28 21-Jun-2008  he branches: 1.28.2; 1.28.4;
<sys/sycallargs.h> needs <sys/sched.h> now.
 1.27 23-Apr-2008  ad branches: 1.27.2; 1.27.4; 1.27.6;
-SYCALL_MPSAFE
 1.26 12-Nov-2007  dsl branches: 1.26.14; 1.26.16;
syscall() needs to be 'NOARGS INDIR'.
Actually I wonder if this code could use the standard syscall table ?
 1.25 09-Nov-2007  dsl Add arguments to sys_syscall and sys___syscall.
Use MI wrappers for them in netbsd32.
Change prefix for constants from netbsd32 to NETBSD32 (used in #defines etc).
 1.24 14-Jul-2007  dsl branches: 1.24.6; 1.24.8; 1.24.12; 1.24.14;
Change calls from sys_mount() to compat_40_sys_mount()
 1.23 04-Mar-2007  christos branches: 1.23.2;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.22 09-Feb-2007  ad branches: 1.22.2;
Merge newlock2 to head.
 1.21 01-Sep-2006  matt branches: 1.21.2;
Don't conditionalize *sys_ptrace. The lack of sys_ptrace will be dealt
with differently.
 1.20 30-Aug-2006  he Update to deal with options PTRACE.
 1.19 01-Aug-2006  martin Adapt to latest fhandle_t changes.
Pointed out by Havard Eidnes.
 1.18 13-Jul-2006  pavel use the COMPAT_30 getfh. And do it always - don't protect it by
#if defined(NFS) || defined(NFSSERVER).
 1.17 26-Jun-2006  mrg version the socket(2) syscall. for compat30 socket, we use
EPROTONOSUPPORT instead of EAFNOSUPPORT.

from pavel@ with a little bit of clean up from myself.

XXX: netbsd32 (and perhaps other emulations) should be able
XXX: to call the standard socket calls for this i think, but
XXX: revisit this at another time.
 1.16 29-May-2006  drochner branches: 1.16.2;
Remove emulation of ntp_gettime. In preparation for "timecounters" we
will change "struct ntptimeval", so some translation would be necessary.
ntp_gettine is considered dispensable, the only userland program known
to use it is "ntptime".
 1.15 07-May-2006  tsutsui branches: 1.15.2;
Use "#if defined(COMPAT_xx) || !defined(_KERNEL)" so that
kdump(1) can get all proper syscall names.
 1.14 04-May-2006  christos Add compat30 getdents. Pointed out by Izumi Tsutsui.
 1.13 11-Dec-2005  christos branches: 1.13.4; 1.13.6; 1.13.8; 1.13.10; 1.13.12;
merge ktrace-lwp.
 1.12 14-Sep-2004  jdolecek branches: 1.12.12;
remove all alternative path check code, and (empty) ioctl wrapper
 1.11 21-Apr-2004  christos Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
 1.10 23-Sep-2003  cl catch up with sys___sigaction14 compat_16 rename
 1.9 22-Sep-2003  cl SA_SIGINFO support for m68k (compat aoutm68k)
 1.8 18-Jan-2003  thorpej branches: 1.8.2;
Merge the nathanw_sa branch.
 1.7 03-May-2002  eeh Use #if defined(_LP64) to determine if we're generating 64-bit binaries,
not #if defined(alpha).
 1.6 30-May-2001  mrg branches: 1.6.2;
use _KERNEL_OPT.
 1.5 07-Apr-2001  tsutsui Allow enabling/disabling /emul/aout alternate path search
on COMPAT_AOUT_M68K environment by options COMPAT_AOUT_ALTPATH.
 1.4 27-Jan-2001  thorpej branches: 1.4.2;
getpid(2) is MP-safe.
 1.3 09-Dec-2000  mycroft branches: 1.3.2;
Add the %% separators.
 1.2 06-Dec-2000  jdolecek make LKM safe (need to use if/endif, #if/#endif is filtered out by makesyscalls.sh)
 1.1 02-Dec-2000  scw Initial cut of COMPAT_AOUT_M68K.
This gets most existing m68k a.out binaries working with m68k ELF
kernels.

There are still some remaining ABI issues to track down; most notably,
some ioctl(2) calls are affected by the change.
 1.3.2.4 21-Apr-2001  bouyer Sync with HEAD
 1.3.2.3 11-Feb-2001  bouyer Sync with HEAD.
 1.3.2.2 08-Jan-2001  bouyer Files added on trunk.
 1.3.2.1 09-Dec-2000  bouyer file syscalls.master was added on branch thorpej_scsipi on 2001-01-08 14:56:51 +0000
 1.4.2.6 21-Jun-2002  gmcgarry sys_setlogin -> sys___setlogin syscall rename
 1.4.2.5 20-Jun-2002  nathanw Catch up to -current.
 1.4.2.4 29-May-2002  nathanw #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
 1.4.2.3 17-Nov-2001  scw Add set/get_context syscall entries and regenerate sources from
syscalls.master.
Also s/proc/lwp/ where appropriate.
 1.4.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.4.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.6.2.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.8.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.8.2.1 03-Aug-2004  skrll Sync with HEAD
 1.12.12.5 15-Nov-2007  yamt sync with head.
 1.12.12.4 03-Sep-2007  yamt sync with head.
 1.12.12.3 26-Feb-2007  yamt sync with head.
 1.12.12.2 30-Dec-2006  yamt sync with head.
 1.12.12.1 21-Jun-2006  yamt sync with head.
 1.13.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.13.10.1 11-May-2006  elad sync with head
 1.13.8.3 11-Aug-2006  yamt sync with head
 1.13.8.2 26-Jun-2006  yamt sync with head.
 1.13.8.1 24-May-2006  yamt sync with head.
 1.13.6.1 01-Jun-2006  kardel Sync with head.
 1.13.4.1 09-Sep-2006  rpaulo sync with head
 1.15.2.1 19-Jun-2006  chap Sync with head.
 1.16.2.1 13-Jul-2006  gdamore Merge from HEAD.
 1.21.2.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.22.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.23.2.1 15-Jul-2007  ad Sync with head.
 1.24.14.1 19-Nov-2007  mjf Sync with HEAD.
 1.24.12.1 13-Nov-2007  bouyer Sync with HEAD
 1.24.8.1 09-Jan-2008  matt sync with HEAD
 1.24.6.2 14-Nov-2007  joerg Sync with HEAD.
 1.24.6.1 11-Nov-2007  joerg Sync with HEAD.
 1.26.16.1 18-May-2008  yamt sync with head.
 1.26.14.3 17-Jan-2009  mjf Sync with HEAD.
 1.26.14.2 29-Jun-2008  mjf Sync with HEAD.
 1.26.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.27.6.1 27-Jun-2008  simonb Sync with head.
 1.27.4.3 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.27.4.2 14-May-2008  wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
 1.27.4.1 10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.27.2.2 11-Mar-2010  yamt sync with head
 1.27.2.1 04-May-2009  yamt sync with head.
 1.28.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.28.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.33.4.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.36.4.1 06-Jun-2011  jruoho Sync with HEAD.
 1.36.2.1 21-Apr-2011  rmind sync with head
 1.41.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.41.4.1 10-Jun-2019  christos Sync with HEAD
 1.41.2.1 29-Sep-2018  pgoyette Conditionalize some compat_30 syscalls appropriately

RSS XML Feed