Home | History | Annotate | only in /src/sys/compat/linux/arch/mips
History log of /src/sys/compat/linux/arch/mips
RevisionDateAuthorComments
 1.4 29-May-2024  christos should not be using .include <> but .include "" here.
 1.3 08-Apr-2014  njoly Do not include bsd.kinc.mk in each arch Makefile, it's already pulled
by bsd.syscall.mk (from Makefile.inc).
 1.2 03-Oct-1998  christos branches: 1.2.184; 1.2.194; 1.2.200; 1.2.210;
Attempt to fix the mess.
 1.1 30-Sep-1998  erh Stubs for future development of linux compat architechtures.
 1.2.210.1 10-Aug-2014  tls Rebase.
 1.2.200.1 18-May-2014  rmind sync with head
 1.2.194.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.184.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.8 03-May-2020  thorpej Always clear FUTEX_PRIVATE_FLAG for Linux processes. NetBSD-native futexes
exist in different namespace depending on FUTEX_PRIVATE_FLAG. This appears
not to be the case in Linux, and some futex users will mix private and non-
private ops on the same futex object. Provide a convenience wrapper that
puts this logic in one place witn a comment explaining why.

While here, move the Linux futex wrapper out of its own file and plop
it in linux_misc.c, which is where it lives in the linux32 module.
 1.7 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.6 07-Jul-2010  chs branches: 1.6.2;
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.5 02-Feb-2008  dsl branches: 1.5.10; 1.5.30; 1.5.32;
Extract the fcntl64() suppoort from linux_file64.c into linux_fcntl64.c
Unravel some of the knots that caused linux_file64.c to be compiled twice
for an amd64 kernel (once for linux and once for linux32) with different
parts being skipped each time.
 1.4 30-Aug-2006  matt branches: 1.4.28; 1.4.34;
Update to deal with options PTRACE
 1.3 31-Mar-2002  christos branches: 1.3.26; 1.3.40; 1.3.44;
bring the reverse signal mapping array into linux_signo.c
 1.2 30-Sep-2001  manu branches: 1.2.2; 1.2.6;
Implements parts of sysmips() and fctnl64() emulation
 1.1 22-Sep-2001  manu branches: 1.1.2;
Initial support for running Linux binaries on the Mips. Both static and
dynamic binaries work on 32 bit mips. Signals are completely broken yet,
and ptrace is not supported.
 1.1.2.4 17-Apr-2002  nathanw Catch up to -current.
 1.1.2.3 08-Oct-2001  nathanw Catch up to -current.
 1.1.2.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.2.1 22-Sep-2001  nathanw file files.linux_mips was added on branch nathanw_sa on 2001-09-26 19:54:46 +0000
 1.2.6.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.6.1 30-Sep-2001  thorpej file files.linux_mips was added on branch kqueue on 2002-01-10 19:51:32 +0000
 1.2.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.2.2.1 30-Sep-2001  fvdl file files.linux_mips was added on branch thorpej-devvp on 2001-10-01 12:43:37 +0000
 1.3.44.1 03-Sep-2006  yamt sync with head.
 1.3.40.1 09-Sep-2006  rpaulo sync with head
 1.3.26.2 04-Feb-2008  yamt sync with head.
 1.3.26.1 30-Dec-2006  yamt sync with head.
 1.4.34.1 18-Feb-2008  mjf Sync with HEAD.
 1.4.28.1 23-Mar-2008  matt sync with HEAD
 1.5.32.2 31-May-2011  rmind sync with head
 1.5.32.1 05-Mar-2011  rmind sync with head
 1.5.30.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.5.10.1 11-Aug-2010  yamt sync with head.
 1.6.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7 17-Dec-2013  njoly Cleanup compat linux errnos by adding generic errnos in a single file.
Use it for all arches except alpha and mips.
Add a few missing native to linux errno conversions.
 1.6 28-Apr-2008  martin branches: 1.6.34; 1.6.44; 1.6.50;
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 26-Feb-2005  perry nuke trailing whitespace
 1.3 19-Jun-2004  manu branches: 1.3.4; 1.3.6;
Fix a reversed errno issue for Linux binaries on mips. While we are there,
fix broken includes for alpha and m68k.
 1.2 02-Sep-2001  manu branches: 1.2.4; 1.2.6; 1.2.24; 1.2.26;
Fixed indent problems
 1.1 26-Aug-2001  manu Preliminary work for Linux/Mips compatibility, more to come soon.
 1.2.26.1 22-Jun-2004  tron Pull up revision 1.3 (requested by manu in ticket #521):
Fix a reversed errno issue for Linux binaries on mips. While we are
there,
fix broken includes for alpha and m68k.
 1.2.24.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.2.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.24.1 03-Aug-2004  skrll Sync with HEAD
 1.2.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.2.6.1 02-Sep-2001  nathanw file linux_errno.h was added on branch nathanw_sa on 2001-09-21 22:35:16 +0000
 1.2.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.4.1 02-Sep-2001  thorpej file linux_errno.h was added on branch kqueue on 2001-09-13 01:15:17 +0000
 1.3.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.3.4.1 29-Apr-2005  kent sync with -current
 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.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.50.1 18-May-2014  rmind sync with head
 1.6.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.34.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.17 26-Nov-2021  ryo - LINUX_GO_RT0_SIGNATURE for compat_linux is no longer enabled by default.
it is now defined in each arch same as the other *_SIGNATURE definitions.
- add new LINUX32_GO_RT0_SIGNATURE for compat_linux32, and is defined in amd64 and aarch64.
 1.16 12-Feb-2017  chs es_arglen is now in units of bytes, update the emulations accordingly.
 1.15 09-Feb-2014  chs branches: 1.15.6; 1.15.10; 1.15.14;
account for the 16 bytes of AT_RANDOM data in the stack setup. fixes PR 48518.
use cprng_strong32() instead of random(). add AT_RANDOM support for linux32.
 1.14 13-Aug-2009  matt branches: 1.14.12; 1.14.22; 1.14.26;
Don't include EXEC_AOUT stuff by default.
 1.13 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.12 11-Dec-2005  christos branches: 1.12.70; 1.12.72; 1.12.74;
merge ktrace-lwp.
 1.11 26-Feb-2005  perry nuke trailing whitespace
 1.10 14-Aug-2003  christos branches: 1.10.8; 1.10.10;
remove the args from the macro.
 1.9 08-Aug-2003  christos - GC all the setup_stack functions
- add one for linux/i386
 1.8 21-Nov-2002  jdolecek branches: 1.8.6;
g/c also mips-specific linux ELF copyargs function prototype and
linux ELF defines, use generic Aux32Info instead
this also adresses kern/19047 by FUKAUMI Naoki
 1.7 21-Nov-2002  jdolecek g/c local definition of LINUX_ELF_AUX_ENTRIES
 1.6 13-Nov-2002  jdolecek add generic linux compat ELF copyargs function

this gives:
* linux sysconf(_SC_CLK_TCK) gives correct value for linux binaries (hz)
even if hz != 100
* glibc gets proper information on real/effective uid and enables
secure mode for suid binaries

g/c LINUX_COPYARGS_FUNCTION, replaced by linux ELF copyargs function
g/c alpha-specific linux ELF copyargs function and linux ELF defines
 1.5 26-Aug-2002  christos Implement passing AT_{E,R}{U,G}ID in the elf aux vector, like solaris.
- pass struct proc to copyargs.
- eliminate svr4_copyargs, since it is the same as ours now.
 1.4 15-Aug-2002  enami Pull changes done in rev. 1.7 of sys/compat/linux/arch/powerpc/linux_exec.h
so that sysctl(8) compiles again.
 1.3 22-Sep-2001  manu branches: 1.3.10;
Fixed errors in header files
 1.2 02-Sep-2001  manu branches: 1.2.2; 1.2.4; 1.2.6;
Added 64 bits support in header files.
All headers should be common to 32 bits MIPS and 64 bits MIPS now.
 1.1 26-Aug-2001  manu Preliminary work on Linux/mips compatibility. More to come soon...
 1.2.6.5 11-Dec-2002  thorpej Sync with HEAD.
 1.2.6.4 27-Aug-2002  nathanw Catch up to -current.
 1.2.6.3 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.2.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.2.6.1 02-Sep-2001  nathanw file linux_exec.h was added on branch nathanw_sa on 2001-09-21 22:35:16 +0000
 1.2.4.4 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.2.4.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.4.1 02-Sep-2001  thorpej file linux_exec.h was added on branch kqueue on 2001-09-13 01:15:18 +0000
 1.2.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.3.10.1 29-Aug-2002  gehenna catch up with -current.
 1.8.6.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.8.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.8.6.1 03-Aug-2004  skrll Sync with HEAD
 1.10.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.10.8.1 29-Apr-2005  kent sync with -current
 1.12.74.2 19-Aug-2009  yamt sync with head.
 1.12.74.1 16-May-2008  yamt sync with head.
 1.12.72.1 18-May-2008  yamt sync with head.
 1.12.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.14.26.1 18-May-2014  rmind sync with head
 1.14.22.2 03-Dec-2017  jdolecek update from HEAD
 1.14.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.14.12.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.15.14.1 21-Apr-2017  bouyer Sync with HEAD
 1.15.10.1 20-Mar-2017  pgoyette Sync with HEAD
 1.15.6.1 28-Aug-2017  skrll Sync with HEAD
 1.8 25-Jun-2014  njoly Add a few missing open(2) flags (LINUX_O_*). Fix alpha wrong values.
 1.7 02-Nov-2010  chs branches: 1.7.18; 1.7.32;
define LINUX_O_CLOEXEC.
sort definitions by value.
consistently use hex instead of octal for the values.
 1.6 21-Sep-2010  chs implement O_DIRECTORY as standardized in POSIX-2008,
for both native and linux emulations.
this fixes the rest of PR 43695.
 1.5 28-Apr-2008  martin branches: 1.5.20; 1.5.22;
Remove clause 3 and 4 from TNF licenses
 1.4 11-Dec-2005  christos branches: 1.4.70; 1.4.72; 1.4.74;
merge ktrace-lwp.
 1.3 26-Feb-2005  perry nuke trailing whitespace
 1.2 30-Sep-2001  manu branches: 1.2.18; 1.2.26; 1.2.28;
Added initial support for fcntl64 system call (file locking is not
implemented)
 1.1 26-Aug-2001  manu branches: 1.1.2; 1.1.4; 1.1.6;
Preliminary work on Linux/mips compatibility. More to come soon...
 1.1.6.3 08-Oct-2001  nathanw Catch up to -current.
 1.1.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.1.6.1 26-Aug-2001  nathanw file linux_fcntl.h was added on branch nathanw_sa on 2001-09-21 22:35:16 +0000
 1.1.4.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.1.4.1 26-Aug-2001  thorpej file linux_fcntl.h was added on branch kqueue on 2001-09-13 01:15:18 +0000
 1.1.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.2.28.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.26.1 29-Apr-2005  kent sync with -current
 1.2.18.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.4.74.2 09-Oct-2010  yamt sync with head
 1.4.74.1 16-May-2008  yamt sync with head.
 1.4.72.1 18-May-2008  yamt sync with head.
 1.4.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.22.1 05-Mar-2011  rmind sync with head
 1.5.20.2 06-Nov-2010  uebayasi Sync with HEAD.
 1.5.20.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.7.32.1 10-Aug-2014  tls Rebase.
 1.7.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 26-Aug-2001  manu branches: 1.1.4; 1.1.6; 1.1.122; 1.1.124; 1.1.126;
Preliminary work on Linux/mips compatibility, more to come soon...
 1.1.126.1 16-May-2008  yamt sync with head.
 1.1.124.1 18-May-2008  yamt sync with head.
 1.1.122.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.1.6.1 26-Aug-2001  nathanw file linux_ioctl.h was added on branch nathanw_sa on 2001-09-21 22:35:16 +0000
 1.1.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.1.4.1 26-Aug-2001  thorpej file linux_ioctl.h was added on branch kqueue on 2001-09-13 01:15:18 +0000
 1.45 10-Aug-2025  andvar s/aknowledge/acknowledge/ in comment.
 1.44 07-Sep-2021  riastradh sys/compat: Memset zero before copyout.

Just in case of uninitialized padding which would lead to kernel
stack disclosure. If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.
 1.43 09-Nov-2014  maxv branches: 1.43.12; 1.43.24;
Do not uselessly include <sys/malloc.h>.
 1.42 20-Feb-2011  matt branches: 1.42.14; 1.42.30;
Deal with differences in signal delivery between o32/n32/n64.
 1.41 07-Jul-2010  chs branches: 1.41.2; 1.41.4;
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.40 14-Dec-2009  matt branches: 1.40.2; 1.40.4;
Merge from matt-nb5-mips64
 1.39 23-Nov-2009  rmind Use lwp_getpcb() in compat code, clean from struct user.
 1.38 28-Apr-2008  martin branches: 1.38.2; 1.38.18;
Remove clause 3 and 4 from TNF licenses
 1.37 24-Apr-2008  ad branches: 1.37.2;
Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.
 1.36 08-Jan-2008  elad branches: 1.36.6; 1.36.8;
In linux_sys_sysmips(), remove redundant kauth(9) call for LINUX_SETNAME
as the permission check is done by old_sysctl().

okay christos@.
 1.35 20-Dec-2007  dsl 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.34 08-Dec-2007  dsl branches: 1.34.4;
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
 1.33 08-Nov-2007  njoly branches: 1.33.2;
Replace strncpy with strlcpy in compat linux and linux32 uname,
old_uname and oldold_uname syscalls to ensure that all *utsname fields
are always NUL terminated.
 1.32 19-Oct-2007  ad branches: 1.32.2;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.31 13-Jun-2007  christos branches: 1.31.6; 1.31.8; 1.31.12;
cleanup some bitrot; from Matthew Orgass
 1.30 04-Mar-2007  christos branches: 1.30.2; 1.30.4;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.29 09-Feb-2007  ad branches: 1.29.2;
Merge newlock2 to head.
 1.28 04-Jan-2007  elad Consistent usage of KAUTH_GENERIC_ISSUSER.
 1.27 23-Jul-2006  ad branches: 1.27.4;
Use the LWP cached credentials where sane.
 1.26 15-May-2006  yamt include kauth.h for kauth_authorize_generic.
 1.25 14-May-2006  elad integrate kauth.
 1.24 11-Dec-2005  christos branches: 1.24.4; 1.24.6; 1.24.8; 1.24.10; 1.24.12;
merge ktrace-lwp.
 1.23 20-May-2005  fvdl branches: 1.23.2;
Define linux_usertrap function, and set it in struct emul. For all
but amd64, it just returns 0, doing nothing.

For amd64, it implements vsyscalls through cheating: if the faulting
address is in the vsyscall area (which is statically known on Linux/amd64),
and the intruction pointer is too, it must have been a vsyscall. In that
case, retrieve the return address from the user stack, fix up %rip and
%rsp, and just execute the normal system call. It will return as if
the vsyscall has been executed.
 1.22 26-Feb-2005  perry nuke trailing whitespace
 1.21 19-Jun-2004  manu branches: 1.21.4; 1.21.6;
Build COMPAT_LINUX again on mips after the siginfo change.
 1.20 04-Dec-2003  atatat branches: 1.20.2;
Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded. Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment. I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
 1.19 26-Sep-2003  simonb Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs. Test
compiled on most architectures.
 1.18 02-Aug-2003  jdolecek use copyin()/copyout() instead of fubyte()/subyte()
also nuke uvm_useracc() check, copyin()/copyout() do this atomically

XXX only compile-tested
 1.17 18-Jan-2003  thorpej branches: 1.17.2;
Merge the nathanw_sa branch.
 1.16 25-Sep-2002  thorpej Don't include <sys/map.h>.
 1.15 04-Jul-2002  thorpej Add kernel support for having userland provide the signal trampoline:

* struct sigacts gets a new sigact_sigdesc structure, which has the
sigaction and the trampoline/version. Version 0 means "legacy kernel
provided trampoline". Other versions are coordinated with machine-
dependent code in libc.
* sigaction1() grows two more arguments -- the trampoline pointer and
the trampoline version.
* A new __sigaction_sigtramp() system call is provided to register a
trampoline along with a signal handler.
* The handler is no longer passed to sensig() functions. Instead,
sendsig() looks up the handler by peeking in the sigacts for the
process getting the signal (since it has to look in there for the
trampoline anyway).
* Native sendsig() functions now select the appropriate trampoline and
its arguments based on the trampoline version in the sigacts.

Changes to libc to use the new facility will be checked in later. Kernel
version not bumped; we will ride the 1.6C bump made recently.
 1.14 20-May-2002  jdolecek whitespace fixes
 1.13 15-Apr-2002  manu branches: 1.13.2;
Do not restore SR on sigreturn: this could enable the user process to gain
unpropre privileges.
 1.12 31-Mar-2002  christos make signal array handling uniform, and put signal arrays in a separate
file. This is simular to errno array handling.
 1.11 17-Feb-2002  rafal Adapt for changes to linux_to_native_sigset() and native_to_linux_sigset().
 1.10 15-Feb-2002  christos - add a real linux_sys___sysctl because the mib numbers are different.
implement only the kernel version getting entries.
- make the signal conversion functions consistent; dest is arg 1.
- make linux_fakedev deal with block and char devices differently.
- add linux_sys_ugetrlimit, and flesh out the regular get/setrlimit so
that they work properly.
- add linux_mmap2 [untested].
- bump kernel to 2.4.18, and make the date be valentine's day :-)
- linux_sys_*stat64 family was totally busted. Fix it.

tested only on i386.

Status:
gdb, telnet, work
jdk-1.4.0 extractor works, jdk still coredumps.

christos
 1.9 20-Nov-2001  manu branches: 1.9.2;
Removed unused (commented out) code
 1.8 20-Nov-2001  manu Fixed the Linux signal trampoline and linux_sys_sigreturn(). Linux signal
delivery now seems fully functionnal.
 1.7 17-Nov-2001  manu Make it build again after recent MIPS cache code changes
 1.6 17-Nov-2001  manu Fixed typos
 1.5 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.4 14-Oct-2001  manu Fixed some mistakes in signal handling (this is still broken)
Added some code to set linux's uname kernel version to 2.4.0 (usefull for
testing with glibc-2.2). This is currently guarded by a #if 0.
 1.3 06-Oct-2001  manu Implements ATOMIC_SET in linux_sys_sysmips
 1.2 30-Sep-2001  manu branches: 1.2.2;
Implements parts of sysmips() and fctnl64() emulation
 1.1 22-Sep-2001  manu branches: 1.1.2;
Initial support for running Linux binaries on the Mips. Both static and
dynamic binaries work on 32 bit mips. Signals are completely broken yet,
and ptrace is not supported.
 1.1.2.14 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.13 01-Aug-2002  nathanw Catch up to -current.
 1.1.2.12 24-Jun-2002  nathanw Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).
 1.1.2.11 20-Jun-2002  nathanw Catch up to -current.
 1.1.2.10 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.2.9 17-Apr-2002  nathanw Catch up to -current.
 1.1.2.8 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.7 08-Jan-2002  nathanw Catch up to -current.
 1.1.2.6 06-Dec-2001  wdk struct proc -> struct lwp changes for COMPAT_LINUX support on Mips
processors.
 1.1.2.5 14-Nov-2001  nathanw Catch up to -current.
 1.1.2.4 22-Oct-2001  nathanw Catch up to -current.
 1.1.2.3 08-Oct-2001  nathanw Catch up to -current.
 1.1.2.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.2.1 22-Sep-2001  nathanw file linux_machdep.c was added on branch nathanw_sa on 2001-09-26 19:54:46 +0000
 1.2.2.3 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.2.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.2.2.1 30-Sep-2001  fvdl file linux_machdep.c was added on branch thorpej-devvp on 2001-10-01 12:43:38 +0000
 1.9.2.6 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.9.2.5 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.9.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.9.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.9.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.9.2.1 20-Nov-2001  thorpej file linux_machdep.c was added on branch kqueue on 2002-01-10 19:51:33 +0000
 1.13.2.2 15-Jul-2002  gehenna catch up with -current.
 1.13.2.1 30-May-2002  gehenna Catch up with -current.
 1.17.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.2.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.17.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.17.2.1 03-Aug-2004  skrll Sync with HEAD
 1.20.2.1 22-Jun-2004  tron Pull up revision 1.21 (requested by manu in ticket #519):
Build COMPAT_LINUX again on mips after the siginfo change.
 1.21.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.21.4.1 29-Apr-2005  kent sync with -current
 1.23.2.7 21-Jan-2008  yamt sync with head
 1.23.2.6 15-Nov-2007  yamt sync with head.
 1.23.2.5 27-Oct-2007  yamt sync with head.
 1.23.2.4 03-Sep-2007  yamt sync with head.
 1.23.2.3 26-Feb-2007  yamt sync with head.
 1.23.2.2 30-Dec-2006  yamt sync with head.
 1.23.2.1 21-Jun-2006  yamt sync with head.
 1.24.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.24.10.2 10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.24.10.1 08-Mar-2006  elad Adapt to kernel authorization KPI.
 1.24.8.2 11-Aug-2006  yamt sync with head
 1.24.8.1 24-May-2006  yamt sync with head.
 1.24.6.1 01-Jun-2006  kardel Sync with head.
 1.24.4.1 09-Sep-2006  rpaulo sync with head
 1.27.4.3 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.27.4.2 27-Jan-2007  ad More compat changes.
 1.27.4.1 12-Jan-2007  ad Sync with head.
 1.29.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.30.4.1 11-Jul-2007  mjf Sync with head.
 1.30.2.2 23-Oct-2007  ad Sync with head.
 1.30.2.1 15-Jul-2007  ad Sync with head.
 1.31.12.2 13-Nov-2007  bouyer Sync with HEAD
 1.31.12.1 25-Oct-2007  bouyer Sync with HEAD.
 1.31.8.3 23-Mar-2008  matt sync with HEAD
 1.31.8.2 09-Jan-2008  matt sync with HEAD
 1.31.8.1 06-Nov-2007  matt sync with HEAD
 1.31.6.3 09-Dec-2007  jmcneill Sync with HEAD.
 1.31.6.2 11-Nov-2007  joerg Sync with HEAD.
 1.31.6.1 26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.32.2.3 18-Feb-2008  mjf Sync with HEAD.
 1.32.2.2 27-Dec-2007  mjf Sync with HEAD.
 1.32.2.1 19-Nov-2007  mjf Sync with HEAD.
 1.33.2.1 26-Dec-2007  ad Sync with head.
 1.34.4.2 10-Jan-2008  bouyer Sync with HEAD
 1.34.4.1 02-Jan-2008  bouyer Sync with HEAD
 1.36.8.1 18-May-2008  yamt sync with head.
 1.36.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.37.2.3 11-Aug-2010  yamt sync with head.
 1.37.2.2 11-Mar-2010  yamt sync with head
 1.37.2.1 16-May-2008  yamt sync with head.
 1.38.18.1 21-Aug-2009  matt Adapt to mips changes. Use PRIx*
 1.38.2.3 14-May-2008  wrstuden Per discussion with ad at n dot o, revert signal mask handling
changes.

The l_sigstk changes are most likely totally un-needed as SA will
never use a signal stack - we send an upcall (or will as other
diffs are brought in).

The l_sigmask changes were too controvertial. In all honesty, I
think it's probably best to revert them. The main reason they were
there is the fact that in an SA process, we don't mask signals per
kernel thread, we mask them per user thread. In the kernel, we want
them all to get turned into upcalls. Thus the normal state of
l_sigmask in an SA process is for it to always be empty.

While we are in the process of delivering a signal, we want to
temporarily mask a signal (so we don't recursively exhaust our
upcall stacks). However signal delivery is rare (important, but
rare), and delivering back-to-back signals is even rarer. So rather
than cause every user of a signal mask to be prepared for this very
rare case, we will just add a second check later in the signal
delivery code. Said change is not in this diff.

This also un-compensates all of our compatability code for dealing
with SA. SA is a NetBSD-specific thing, so there's no need for
Irix, Linux, Solaris, SVR4 and so on to cope with it.

As previously, everything other than kern_sa.c compiles in i386
GENERIC as of this checkin. I will switch to ALL soon for compile
testing.
 1.38.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.38.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.40.4.1 05-Mar-2011  rmind sync with head
 1.40.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.41.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.41.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.42.30.1 17-Jan-2015  martin Pull up following revision(s) (requested by maxv in ticket #427):
sys/compat/svr4/svr4_schedctl.c: revision 1.8
sys/netinet/tcp_timer.c: revision 1.88
sys/miscfs/genfs/layer_vfsops.c: revision 1.45
sys/compat/svr4/svr4_ioctl.c: revision 1.37
sys/ufs/chfs/chfs_vfsops.c: revision 1.14
sys/miscfs/fdesc/fdesc_vfsops.c: revision 1.91
sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.30
sys/compat/common/kern_time_50.c: revision 1.28
sys/netinet6/ip6_forward.c: revision 1.74
sys/miscfs/umapfs/umap_vnops.c: revision 1.57
sys/compat/svr4/svr4_fcntl.c: revision 1.74
distrib/sets/lists/comp/mi: revision 1.1931
sys/netinet6/udp6_output.c: revision 1.46
sys/fs/puffs/puffs_compat.c: revision 1.3
sys/fs/udf/udf_rename.c: revision 1.11
sys/compat/svr4/svr4_filio.c: revision 1.24
sys/fs/udf/udf_rename.c: revision 1.12
sys/netinet/tcp_usrreq.c: revision 1.202
sys/miscfs/umapfs/umap_subr.c: revision 1.29
sys/compat/linux/common/linux_fadvise64.c: revision 1.3
sys/netinet/if_atm.c: revision 1.34
sys/miscfs/procfs/procfs_subr.c: revision 1.106
sys/miscfs/genfs/layer_subr.c: revision 1.37
sys/netinet/tcp_sack.c: revision 1.30
sys/compat/freebsd/freebsd_misc.c: revision 1.33
sys/compat/freebsd/freebsd_file.c: revision 1.33
sys/ufs/chfs/chfs_vnode.c: revision 1.12
sys/compat/svr4/svr4_ttold.c: revision 1.34
sys/compat/linux/common/linux_file.c: revision 1.114
sys/compat/linux/arch/mips/linux_machdep.c: revision 1.43
sys/compat/linux/common/linux_signal.c: revision 1.76
sys/compat/common/compat_util.c: revision 1.46
sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.18
sys/compat/svr4/svr4_sockio.c: revision 1.36
sys/compat/linux/arch/arm/linux_machdep.c: revision 1.32
sys/compat/svr4/svr4_signal.c: revision 1.66
sys/kern/kern_exec.c: revision 1.410
sys/fs/puffs/puffs_vfsops.c: revision 1.115
sys/compat/svr4/svr4_exec_elf64.c: revision 1.15
sys/compat/linux/arch/i386/linux_machdep.c: revision 1.159
sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.50
sys/compat/linux32/common/linux32_misc.c: revision 1.24
sys/netinet/in_pcb.c: revision 1.153
sys/sys/malloc.h: revision 1.116
sys/compat/common/if_43.c: revision 1.9
share/man/man9/Makefile: revision 1.380
sys/netinet/tcp_vtw.c: revision 1.12
sys/miscfs/umapfs/umap_vfsops.c: revision 1.95
sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.186
sys/compat/common/uipc_syscalls_43.c: revision 1.46
sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.115
sys/fs/puffs/puffs_msgif.c: revision 1.97
sys/compat/svr4/svr4_ipc.c: revision 1.27
sys/compat/linux/common/linux_exec.c: revision 1.117
sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.66
sys/netinet/tcp_output.c: revision 1.179
sys/compat/svr4/svr4_termios.c: revision 1.28
sys/fs/udf/udf_strat_bootstrap.c: revision 1.4
sys/fs/puffs/puffs_subr.c: revision 1.67
sys/fs/puffs/puffs_node.c: revision 1.36
sys/miscfs/overlay/overlay_vnops.c: revision 1.21
sys/fs/cd9660/cd9660_node.c: revision 1.34
sys/netinet/raw_ip.c: revision 1.146
sys/sys/mallocvar.h: revision 1.13
sys/miscfs/overlay/overlay_vfsops.c: revision 1.63
share/man/man9/malloc.9: revision 1.50
sys/netinet6/dest6.c: revision 1.18
sys/compat/linux/common/linux_uselib.c: revision 1.33
sys/compat/linux/common/linux_socket.c: revision 1.120
share/man/man9/malloc.9: revision 1.51
sys/netinet/tcp_subr.c: revision 1.257
sys/compat/linux/common/linux_socketcall.c: revision 1.45
sys/compat/linux/common/linux_fadvise64_64.c: revision 1.3
sys/compat/freebsd/freebsd_ipc.c: revision 1.17
sys/compat/linux/common/linux_misc_notalpha.c: revision 1.109
sys/compat/linux/arch/alpha/linux_pipe.c: revision 1.17
sys/netinet6/in6_pcb.c: revision 1.132
sys/netinet6/in6_ifattach.c: revision 1.94
sys/compat/svr4/svr4_exec_elf32.c: revision 1.15
sys/miscfs/nullfs/null_vfsops.c: revision 1.90
sys/fs/cd9660/cd9660_util.c: revision 1.12
sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.48
sys/compat/freebsd/freebsd_exec_elf32.c: revision 1.20
sys/miscfs/procfs/procfs_vfsops.c: revision 1.94
sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.28
sys/compat/linux/common/linux_sched.c: revision 1.67
sys/compat/linux/common/linux_exec_aout.c: revision 1.67
sys/compat/linux/common/linux_pipe.c: revision 1.67
sys/compat/linux/common/linux_llseek.c: revision 1.34
sys/compat/linux/arch/mips/linux_ptrace.c: revision 1.10
Do not uselessly include <sys/malloc.h>.
Cleanup:
- remove struct kmembuckets (dead)
- correctly deadify MALLOC_XX
- remove MALLOC_DEFINE_LIMIT and MALLOC_JUSTDEFINE_LIMIT (dead)
- remove malloc_roundup(), malloc_type_setlimit(), MALLOC_DEFINE_LIMIT()
and MALLOC_JUSTDEFINE_LIMIT() from man 9 malloc
New sentence, new line. Bump date for previous.
Obsolete malloc_roundup(9), malloc_type_setlimit(9) and MALLOC_DEFINE_LIMIT(9)
man pages.
 1.42.14.1 03-Dec-2017  jdolecek update from HEAD
 1.43.24.1 03-Aug-2022  martin Pull up following revision(s), all via patch
(requested by riastradh in ticket #1487):

sys/compat/linux/arch/i386/linux_machdep.c: revision 1.168
sys/compat/sunos/sunos_misc.c: revision 1.177
sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.52
sys/compat/common/kern_resource_43.c: revision 1.23
sys/compat/netbsd32/netbsd32_conv.h: revision 1.46
sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.35
sys/compat/common/vfs_syscalls_12.c: revision 1.38
sys/compat/ultrix/ultrix_misc.c: revision 1.126
sys/compat/common/kern_sig_43.c: revision 1.37
sys/compat/linux/common/linux_mtio.c: revision 1.8
sys/compat/freebsd/freebsd_misc.c: revision 1.34
sys/compat/freebsd/freebsd_machdep.c: revision 1.5
sys/compat/linux/common/linux_olduname.c: revision 1.67
sys/compat/linux/arch/mips/linux_machdep.c: revision 1.44
sys/compat/freebsd/freebsd_sched.c: revision 1.23
sys/compat/ossaudio/ossaudio.c: revision 1.84
sys/compat/sys/time_types.h: revision 1.6
sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.51
sys/compat/common/ieee80211_20.c: revision 1.7
sys/compat/linux/common/linux_file.c: revision 1.119
sys/compat/linux/arch/arm/linux_machdep.c: revision 1.34
sys/compat/netbsd32/netbsd32_wait.c: revision 1.25
sys/compat/linux32/common/linux32_time.c: revision 1.38
sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.33
sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.52
sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.46
sys/compat/netbsd32/netbsd32_compat_12.c: revision 1.36
sys/compat/ultrix/ultrix_ioctl.c: revision 1.39
sys/compat/linux/common/linux_misc.c: revision 1.252
sys/compat/linux/common/linux_hdio.c: revision 1.19
sys/compat/sunos/sunos_ioctl.c: revision 1.71
sys/compat/linux/common/linux_sched.c: revision 1.79
sys/compat/common/kern_info_43.c: revision 1.40
sys/compat/linux32/common/linux32_exec_elf32.c: revision 1.20
sys/compat/linux/common/linux_socket.c: revision 1.153
sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.60
sys/compat/common/vfs_syscalls_43.c: revision 1.68
sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.25
sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.9
sys/compat/common/kern_time_50.c: revision 1.37
sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.42
sys/compat/linux/common/linux_cdrom.c: revision 1.28
sys/compat/linux/arch/m68k/linux_machdep.c: revision 1.43
sys/compat/common/kern_info_09.c: revision 1.22
sys/compat/linux32/common/linux32_resource.c: revision 1.12
sys/compat/linux/common/linux_oldolduname.c: revision 1.67
sys/compat/common/if_media_80.c: revision 1.4
sys/compat/linux/arch/alpha/linux_osf1.c: revision 1.5
sys/compat/netbsd32/netbsd32_nfssvc.c: revision 1.8
sys/compat/linux32/common/linux32_signal.c: revision 1.21
sys/compat/common/kern_sig_13.c: revision 1.22
sys/compat/sunos32/sunos32_ioctl.c: revision 1.36
sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.62
sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.23
sys/compat/netbsd32/netbsd32_time.c: revision 1.56
sys/compat/linux/common/linux_signal.c: revision 1.84
sys/compat/netbsd32/netbsd32_signal.c: revision 1.52
sys/compat/sunos32/sunos32_misc.c: revision 1.85
sys/compat/linux/common/linux_time.c: revision 1.40
sys/compat/linux/common/linux_fdio.c: revision 1.14
sys/compat/common/vfs_syscalls_30.c: revision 1.43

sys/compat: Memset zero before copyout.

Just in case of uninitialized padding which would lead to kernel
stack disclosure. If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.
 1.43.12.1 21-Jun-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1836):

sys/compat/linux/arch/i386/linux_machdep.c: revision 1.168
sys/compat/sunos/sunos_misc.c: revision 1.177
sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.52
sys/compat/common/kern_resource_43.c: revision 1.23
sys/compat/netbsd32/netbsd32_conv.h: revision 1.46
sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.35
sys/compat/common/vfs_syscalls_12.c: revision 1.38
sys/compat/ultrix/ultrix_misc.c: revision 1.126
sys/compat/common/kern_sig_43.c: revision 1.37
sys/compat/linux/common/linux_mtio.c: revision 1.8
sys/compat/freebsd/freebsd_misc.c: revision 1.34
sys/compat/linux/common/linux_olduname.c: revision 1.67
sys/compat/linux/arch/mips/linux_machdep.c: revision 1.44
sys/compat/freebsd/freebsd_sched.c: revision 1.23
sys/compat/ossaudio/ossaudio.c: revision 1.84
sys/compat/sys/time_types.h: revision 1.6
sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.51
sys/compat/linux/common/linux_file.c: revision 1.119
sys/compat/linux/arch/arm/linux_machdep.c: revision 1.34
sys/compat/netbsd32/netbsd32_wait.c: revision 1.25
sys/compat/linux32/common/linux32_time.c: revision 1.38
sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.33
sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.52
sys/compat/linux32/arch/amd64/linux32_machdep.c: revision 1.46
sys/compat/netbsd32/netbsd32_compat_12.c: revision 1.36
sys/compat/ultrix/ultrix_ioctl.c: revision 1.39
sys/compat/linux/common/linux_misc.c: revision 1.252
sys/compat/linux/common/linux_hdio.c: revision 1.19
sys/compat/sunos/sunos_ioctl.c: revision 1.71
sys/compat/linux/common/linux_sched.c: revision 1.79
sys/compat/common/kern_info_43.c: revision 1.40
sys/compat/linux32/common/linux32_exec_elf32.c: revision 1.20
sys/compat/linux/common/linux_socket.c: revision 1.153
sys/compat/linux/arch/amd64/linux_machdep.c: revision 1.60
sys/compat/common/vfs_syscalls_43.c: revision 1.68
sys/compat/linux/arch/powerpc/linux_exec_powerpc.c: revision 1.25
sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.9
sys/compat/common/kern_time_50.c: revision 1.37
sys/compat/netbsd32/netbsd32_compat_20.c: revision 1.42
sys/compat/linux/common/linux_cdrom.c: revision 1.28
sys/compat/linux/arch/m68k/linux_machdep.c: revision 1.43
sys/compat/common/kern_info_09.c: revision 1.22
sys/compat/linux32/common/linux32_resource.c: revision 1.12
sys/compat/linux/common/linux_oldolduname.c: revision 1.67
sys/compat/netbsd32/netbsd32_nfssvc.c: revision 1.8
sys/compat/linux32/common/linux32_signal.c: revision 1.21
sys/compat/common/kern_sig_13.c: revision 1.22
sys/compat/sunos32/sunos32_ioctl.c: revision 1.36
sys/compat/netbsd32/netbsd32_compat_43.c: revision 1.62
sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.23
sys/compat/netbsd32/netbsd32_time.c: revision 1.56
sys/compat/linux/common/linux_signal.c: revision 1.84
sys/compat/netbsd32/netbsd32_signal.c: revision 1.52
sys/compat/sunos32/sunos32_misc.c: revision 1.85
sys/compat/linux/common/linux_time.c: revision 1.40
sys/compat/linux/common/linux_fdio.c: revision 1.14
sys/compat/common/vfs_syscalls_30.c: revision 1.43

sys/compat: Memset zero before copyout.

Just in case of uninitialized padding which would lead to kernel
stack disclosure. If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.
 1.11 20-Feb-2011  matt Deal with differences in signal delivery between o32/n32/n64.
 1.10 12-Nov-2008  ad branches: 1.10.8; 1.10.10; 1.10.12;
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.9 28-Apr-2008  martin branches: 1.9.6; 1.9.8;
Remove clause 3 and 4 from TNF licenses
 1.8 04-Dec-2007  dsl branches: 1.8.12; 1.8.14; 1.8.16;
Remove all the __P
 1.7 11-Nov-2005  chs branches: 1.7.46; 1.7.48; 1.7.54; 1.7.58;
include additional headers that are now needed.
 1.6 26-Feb-2005  perry branches: 1.6.4;
nuke trailing whitespace
 1.5 15-Feb-2002  christos branches: 1.5.16; 1.5.24; 1.5.26;
- add a real linux_sys___sysctl because the mib numbers are different.
implement only the kernel version getting entries.
- make the signal conversion functions consistent; dest is arg 1.
- make linux_fakedev deal with block and char devices differently.
- add linux_sys_ugetrlimit, and flesh out the regular get/setrlimit so
that they work properly.
- add linux_mmap2 [untested].
- bump kernel to 2.4.18, and make the date be valentine's day :-)
- linux_sys_*stat64 family was totally busted. Fix it.

tested only on i386.

Status:
gdb, telnet, work
jdk-1.4.0 extractor works, jdk still coredumps.

christos
 1.4 30-Sep-2001  manu Implements parts of sysmips() and fctnl64() emulation
 1.3 22-Sep-2001  manu Fixed errors in header files
 1.2 02-Sep-2001  manu branches: 1.2.2; 1.2.4; 1.2.6;
Added 64 bits support in header files.
All headers should be common to 32 bits MIPS and 64 bits MIPS now.
 1.1 26-Aug-2001  manu Preliminary work on Linux/mips compatibility. More to come soon...
 1.2.6.5 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.4 08-Oct-2001  nathanw Catch up to -current.
 1.2.6.3 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.2.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.2.6.1 02-Sep-2001  nathanw file linux_machdep.h was added on branch nathanw_sa on 2001-09-21 22:35:16 +0000
 1.2.4.4 16-Mar-2002  jdolecek Catch up with -current.
 1.2.4.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.4.1 02-Sep-2001  thorpej file linux_machdep.h was added on branch kqueue on 2001-09-13 01:15:19 +0000
 1.2.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.5.26.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.5.24.1 29-Apr-2005  kent sync with -current
 1.5.16.2 11-Dec-2005  christos Sync with head.
 1.5.16.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.6.4.2 07-Dec-2007  yamt sync with head
 1.6.4.1 21-Jun-2006  yamt sync with head.
 1.7.58.1 08-Dec-2007  ad Sync with head.
 1.7.54.1 08-Dec-2007  mjf Sync with HEAD.
 1.7.48.1 09-Jan-2008  matt sync with HEAD
 1.7.46.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.8.16.2 04-May-2009  yamt sync with head.
 1.8.16.1 16-May-2008  yamt sync with head.
 1.8.14.1 18-May-2008  yamt sync with head.
 1.8.12.2 17-Jan-2009  mjf Sync with HEAD.
 1.8.12.1 02-Jun-2008  mjf Sync with HEAD.
 1.9.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.9.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.10.12.1 05-Mar-2011  bouyer Sync with HEAD
 1.10.10.1 06-Jun-2011  jruoho Sync with HEAD.
 1.10.8.1 05-Mar-2011  rmind sync with head
 1.9 14-Mar-2015  njoly Support Linux MAP_LOCKED mmap flag.
 1.8 28-Apr-2008  martin branches: 1.8.44; 1.8.64;
Remove clause 3 and 4 from TNF licenses
 1.7 11-Dec-2005  christos branches: 1.7.70; 1.7.72; 1.7.74;
merge ktrace-lwp.
 1.6 26-Feb-2005  perry nuke trailing whitespace
 1.5 28-Aug-2004  jdolecek branches: 1.5.4; 1.5.6;
g/c LINUX_MAP_IGNMASK define - it's not used anywhere
 1.4 22-Sep-2001  manu branches: 1.4.18;
Fixed errors in header files
 1.3 02-Sep-2001  manu branches: 1.3.2;
Added some comments
 1.2 26-Aug-2001  manu Preliminary work on Linux/mips compatibility, more to come soon...
 1.1 30-Sep-1998  erh branches: 1.1.24; 1.1.26;
Stubs for future development of linux compat architechtures.
 1.1.26.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.26.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.1.24.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.24.1 21-Sep-2001  nathanw Catch up to -current.
 1.3.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.4.18.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.4.18.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.18.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.18.1 03-Sep-2004  skrll Sync with HEAD
 1.5.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.5.4.1 29-Apr-2005  kent sync with -current
 1.7.74.1 16-May-2008  yamt sync with head.
 1.7.72.1 18-May-2008  yamt sync with head.
 1.7.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.8.64.1 06-Apr-2015  skrll Sync with HEAD
 1.8.44.1 03-Dec-2017  jdolecek update from HEAD
 1.10 09-Nov-2014  maxv Do not uselessly include <sys/malloc.h>.
 1.9 12-Nov-2008  ad branches: 1.9.26; 1.9.42;
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.8 28-Apr-2008  martin branches: 1.8.2; 1.8.6; 1.8.8;
Remove clause 3 and 4 from TNF licenses
 1.7 20-Dec-2007  dsl branches: 1.7.6; 1.7.8; 1.7.10;
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.6 09-Feb-2007  ad branches: 1.6.20; 1.6.28; 1.6.32;
Merge newlock2 to head.
 1.5 30-Aug-2006  matt branches: 1.5.2;
Update to deal with options PTRACE
 1.4 18-Jan-2003  thorpej branches: 1.4.18; 1.4.32; 1.4.36;
Merge the nathanw_sa branch.
 1.3 15-Nov-2001  lukem branches: 1.3.2;
don't need <sys/types.h> when including <sys/param.h>
 1.2 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.1 22-Sep-2001  manu branches: 1.1.2; 1.1.4;
Initial support for running Linux binaries on the Mips. Both static and
dynamic binaries work on 32 bit mips. Signals are completely broken yet,
and ptrace is not supported.
 1.1.4.2 01-Oct-2001  fvdl Catch up with -current.
 1.1.4.1 22-Sep-2001  fvdl file linux_ptrace.c was added on branch thorpej-devvp on 2001-10-01 12:43:38 +0000
 1.1.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.1.2.5 08-Jan-2002  nathanw Catch up to -current.
 1.1.2.4 06-Dec-2001  wdk struct proc -> struct lwp changes for COMPAT_LINUX support on Mips
processors.
 1.1.2.3 14-Nov-2001  nathanw Catch up to -current.
 1.1.2.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.2.1 22-Sep-2001  nathanw file linux_ptrace.c was added on branch nathanw_sa on 2001-09-26 19:54:47 +0000
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 15-Nov-2001  thorpej file linux_ptrace.c was added on branch kqueue on 2002-01-10 19:51:34 +0000
 1.4.36.1 03-Sep-2006  yamt sync with head.
 1.4.32.1 09-Sep-2006  rpaulo sync with head
 1.4.18.3 21-Jan-2008  yamt sync with head
 1.4.18.2 26-Feb-2007  yamt sync with head.
 1.4.18.1 30-Dec-2006  yamt sync with head.
 1.5.2.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.6.32.1 02-Jan-2008  bouyer Sync with HEAD
 1.6.28.1 26-Dec-2007  ad Sync with head.
 1.6.20.1 09-Jan-2008  matt sync with HEAD
 1.7.10.2 04-May-2009  yamt sync with head.
 1.7.10.1 16-May-2008  yamt sync with head.
 1.7.8.1 18-May-2008  yamt sync with head.
 1.7.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.7.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.8.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.8.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.8.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.8.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.9.42.1 17-Jan-2015  martin Pull up following revision(s) (requested by maxv in ticket #427):
sys/compat/svr4/svr4_schedctl.c: revision 1.8
sys/netinet/tcp_timer.c: revision 1.88
sys/miscfs/genfs/layer_vfsops.c: revision 1.45
sys/compat/svr4/svr4_ioctl.c: revision 1.37
sys/ufs/chfs/chfs_vfsops.c: revision 1.14
sys/miscfs/fdesc/fdesc_vfsops.c: revision 1.91
sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.30
sys/compat/common/kern_time_50.c: revision 1.28
sys/netinet6/ip6_forward.c: revision 1.74
sys/miscfs/umapfs/umap_vnops.c: revision 1.57
sys/compat/svr4/svr4_fcntl.c: revision 1.74
distrib/sets/lists/comp/mi: revision 1.1931
sys/netinet6/udp6_output.c: revision 1.46
sys/fs/puffs/puffs_compat.c: revision 1.3
sys/fs/udf/udf_rename.c: revision 1.11
sys/compat/svr4/svr4_filio.c: revision 1.24
sys/fs/udf/udf_rename.c: revision 1.12
sys/netinet/tcp_usrreq.c: revision 1.202
sys/miscfs/umapfs/umap_subr.c: revision 1.29
sys/compat/linux/common/linux_fadvise64.c: revision 1.3
sys/netinet/if_atm.c: revision 1.34
sys/miscfs/procfs/procfs_subr.c: revision 1.106
sys/miscfs/genfs/layer_subr.c: revision 1.37
sys/netinet/tcp_sack.c: revision 1.30
sys/compat/freebsd/freebsd_misc.c: revision 1.33
sys/compat/freebsd/freebsd_file.c: revision 1.33
sys/ufs/chfs/chfs_vnode.c: revision 1.12
sys/compat/svr4/svr4_ttold.c: revision 1.34
sys/compat/linux/common/linux_file.c: revision 1.114
sys/compat/linux/arch/mips/linux_machdep.c: revision 1.43
sys/compat/linux/common/linux_signal.c: revision 1.76
sys/compat/common/compat_util.c: revision 1.46
sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.18
sys/compat/svr4/svr4_sockio.c: revision 1.36
sys/compat/linux/arch/arm/linux_machdep.c: revision 1.32
sys/compat/svr4/svr4_signal.c: revision 1.66
sys/kern/kern_exec.c: revision 1.410
sys/fs/puffs/puffs_vfsops.c: revision 1.115
sys/compat/svr4/svr4_exec_elf64.c: revision 1.15
sys/compat/linux/arch/i386/linux_machdep.c: revision 1.159
sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.50
sys/compat/linux32/common/linux32_misc.c: revision 1.24
sys/netinet/in_pcb.c: revision 1.153
sys/sys/malloc.h: revision 1.116
sys/compat/common/if_43.c: revision 1.9
share/man/man9/Makefile: revision 1.380
sys/netinet/tcp_vtw.c: revision 1.12
sys/miscfs/umapfs/umap_vfsops.c: revision 1.95
sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.186
sys/compat/common/uipc_syscalls_43.c: revision 1.46
sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.115
sys/fs/puffs/puffs_msgif.c: revision 1.97
sys/compat/svr4/svr4_ipc.c: revision 1.27
sys/compat/linux/common/linux_exec.c: revision 1.117
sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.66
sys/netinet/tcp_output.c: revision 1.179
sys/compat/svr4/svr4_termios.c: revision 1.28
sys/fs/udf/udf_strat_bootstrap.c: revision 1.4
sys/fs/puffs/puffs_subr.c: revision 1.67
sys/fs/puffs/puffs_node.c: revision 1.36
sys/miscfs/overlay/overlay_vnops.c: revision 1.21
sys/fs/cd9660/cd9660_node.c: revision 1.34
sys/netinet/raw_ip.c: revision 1.146
sys/sys/mallocvar.h: revision 1.13
sys/miscfs/overlay/overlay_vfsops.c: revision 1.63
share/man/man9/malloc.9: revision 1.50
sys/netinet6/dest6.c: revision 1.18
sys/compat/linux/common/linux_uselib.c: revision 1.33
sys/compat/linux/common/linux_socket.c: revision 1.120
share/man/man9/malloc.9: revision 1.51
sys/netinet/tcp_subr.c: revision 1.257
sys/compat/linux/common/linux_socketcall.c: revision 1.45
sys/compat/linux/common/linux_fadvise64_64.c: revision 1.3
sys/compat/freebsd/freebsd_ipc.c: revision 1.17
sys/compat/linux/common/linux_misc_notalpha.c: revision 1.109
sys/compat/linux/arch/alpha/linux_pipe.c: revision 1.17
sys/netinet6/in6_pcb.c: revision 1.132
sys/netinet6/in6_ifattach.c: revision 1.94
sys/compat/svr4/svr4_exec_elf32.c: revision 1.15
sys/miscfs/nullfs/null_vfsops.c: revision 1.90
sys/fs/cd9660/cd9660_util.c: revision 1.12
sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.48
sys/compat/freebsd/freebsd_exec_elf32.c: revision 1.20
sys/miscfs/procfs/procfs_vfsops.c: revision 1.94
sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.28
sys/compat/linux/common/linux_sched.c: revision 1.67
sys/compat/linux/common/linux_exec_aout.c: revision 1.67
sys/compat/linux/common/linux_pipe.c: revision 1.67
sys/compat/linux/common/linux_llseek.c: revision 1.34
sys/compat/linux/arch/mips/linux_ptrace.c: revision 1.10
Do not uselessly include <sys/malloc.h>.
Cleanup:
- remove struct kmembuckets (dead)
- correctly deadify MALLOC_XX
- remove MALLOC_DEFINE_LIMIT and MALLOC_JUSTDEFINE_LIMIT (dead)
- remove malloc_roundup(), malloc_type_setlimit(), MALLOC_DEFINE_LIMIT()
and MALLOC_JUSTDEFINE_LIMIT() from man 9 malloc
New sentence, new line. Bump date for previous.
Obsolete malloc_roundup(9), malloc_type_setlimit(9) and MALLOC_DEFINE_LIMIT(9)
man pages.
 1.9.26.1 03-Dec-2017  jdolecek update from HEAD
 1.8 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.7 11-Dec-2005  christos branches: 1.7.70; 1.7.72; 1.7.74;
merge ktrace-lwp.
 1.6 26-Feb-2005  perry nuke trailing whitespace
 1.5 31-Mar-2002  christos branches: 1.5.10; 1.5.18; 1.5.20;
bring the reverse signal mapping array into linux_signo.c
 1.4 31-Mar-2002  christos make signal array handling uniform, and put signal arrays in a separate
file. This is simular to errno array handling.
 1.3 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.2 02-Sep-2001  manu branches: 1.2.4; 1.2.6;
Added some comments
 1.1 26-Aug-2001  manu Preliminary work on Linux/mips compatibility, more to come soon...
 1.2.6.4 17-Apr-2002  nathanw Catch up to -current.
 1.2.6.3 14-Nov-2001  nathanw Catch up to -current.
 1.2.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.2.6.1 02-Sep-2001  nathanw file linux_sigarray.c was added on branch nathanw_sa on 2001-09-21 22:35:16 +0000
 1.2.4.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.4.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.4.1 02-Sep-2001  thorpej file linux_sigarray.c was added on branch kqueue on 2001-09-13 01:15:19 +0000
 1.5.20.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.5.18.1 29-Apr-2005  kent sync with -current
 1.5.10.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.7.74.1 16-May-2008  yamt sync with head.
 1.7.72.1 18-May-2008  yamt sync with head.
 1.7.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.7 18-Nov-2011  christos - add sigtimedwait support.
- merge the siginfo population code.
 1.6 23-Nov-2008  njoly branches: 1.6.16;
Move si_code definitions from MD to MI linux_siginfo.h, all archs
(except mips for 3 values) are identical.
While here, remove unused/unneeded LINUX__SI_CODE macro. Only the
lower 16-bits are used for userland si_code.
 1.5 28-Apr-2008  martin branches: 1.5.6; 1.5.8;
Remove clause 3 and 4 from TNF licenses
 1.4 11-Dec-2005  christos branches: 1.4.70; 1.4.72; 1.4.74;
merge ktrace-lwp.
 1.3 26-Feb-2005  perry nuke trailing whitespace
 1.2 02-Sep-2001  manu branches: 1.2.4; 1.2.6; 1.2.24; 1.2.32; 1.2.34;
Fixed an error in a define
 1.1 26-Aug-2001  manu Preliminary work on Linux/mips compatibility, more to come soon...
 1.2.34.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.32.1 29-Apr-2005  kent sync with -current
 1.2.24.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.2.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.2.6.1 02-Sep-2001  nathanw file linux_siginfo.h was added on branch nathanw_sa on 2001-09-21 22:35:16 +0000
 1.2.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.4.1 02-Sep-2001  thorpej file linux_siginfo.h was added on branch kqueue on 2001-09-13 01:15:19 +0000
 1.4.74.2 04-May-2009  yamt sync with head.
 1.4.74.1 16-May-2008  yamt sync with head.
 1.4.72.1 18-May-2008  yamt sync with head.
 1.4.70.2 17-Jan-2009  mjf Sync with HEAD.
 1.4.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.5.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.6.16.1 17-Apr-2012  yamt sync with head
 1.14 14-Nov-2015  christos PR/50428: Rin Okuyama: support SA_RESTORER flag for rt_sigaction(2) in the
ports that support it.
 1.13 28-Apr-2008  martin branches: 1.13.44; 1.13.64;
Remove clause 3 and 4 from TNF licenses
 1.12 04-Dec-2007  dsl branches: 1.12.12; 1.12.14; 1.12.16;
Remove all the __P
 1.11 11-Dec-2005  christos branches: 1.11.44; 1.11.46; 1.11.52; 1.11.56;
merge ktrace-lwp.
 1.10 19-Sep-2005  christos MINSIGSTKSZ on linux is different depending on the platform and usually
smaller than ours.
 1.9 26-Feb-2005  perry branches: 1.9.4;
nuke trailing whitespace
 1.8 26-Nov-2002  christos branches: 1.8.6; 1.8.14; 1.8.16;
rename: s/sa_/<compat>sa/g
 1.7 19-Mar-2002  christos - Now that RT-signals fit, fix the array to deliver them. [i386 only].
- jdk-1.4 works perfectly now. :-)
 1.6 19-Feb-2002  rafal Add LINUX_SA_NOCLDWAIT, LINUX_SA_RESTORER, update LINUX_SA_ALLBITS. Linux
compat on mips builds again now.
 1.5 14-Oct-2001  manu Fixed some mistakes in signal handling (this is still broken)
Added some code to set linux's uname kernel version to 2.4.0 (usefull for
testing with glibc-2.2). This is currently guarded by a #if 0.
 1.4 22-Sep-2001  manu Fixed errors in header files
 1.3 02-Sep-2001  manu branches: 1.3.2; 1.3.4; 1.3.6;
Added 64 bits support in header files.
All headers should be common to 32 bits MIPS and 64 bits MIPS now.
 1.2 02-Sep-2001  manu Fixed indent problems
 1.1 26-Aug-2001  manu Preliminary work on Linux/Mips emulation, more to come soon...
 1.3.6.7 11-Dec-2002  thorpej Sync with HEAD.
 1.3.6.6 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.6.5 28-Feb-2002  nathanw Catch up to -current.
 1.3.6.4 22-Oct-2001  nathanw Catch up to -current.
 1.3.6.3 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.3.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.3.6.1 02-Sep-2001  nathanw file linux_signal.h was added on branch nathanw_sa on 2001-09-21 22:35:16 +0000
 1.3.4.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.4.4 16-Mar-2002  jdolecek Catch up with -current.
 1.3.4.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.3.4.1 02-Sep-2001  thorpej file linux_signal.h was added on branch kqueue on 2001-09-13 01:15:20 +0000
 1.3.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.8.16.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.8.14.1 29-Apr-2005  kent sync with -current
 1.8.6.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.8.6.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.9.4.2 07-Dec-2007  yamt sync with head
 1.9.4.1 21-Jun-2006  yamt sync with head.
 1.11.56.1 08-Dec-2007  ad Sync with head.
 1.11.52.1 08-Dec-2007  mjf Sync with HEAD.
 1.11.46.1 09-Jan-2008  matt sync with HEAD
 1.11.44.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.12.16.1 16-May-2008  yamt sync with head.
 1.12.14.1 18-May-2008  yamt sync with head.
 1.12.12.1 02-Jun-2008  mjf Sync with HEAD.
 1.13.64.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.13.44.1 03-Dec-2017  jdolecek update from HEAD
 1.6 25-Jan-2014  njoly Update linux socket socket options (SO_*). Add common version to its
own file (linux_socket_generic.h); use it for all but alpha and mips.
 1.5 28-Apr-2008  martin branches: 1.5.34; 1.5.44; 1.5.50;
Remove clause 3 and 4 from TNF licenses
 1.4 11-Dec-2005  christos branches: 1.4.70; 1.4.72; 1.4.74;
merge ktrace-lwp.
 1.3 26-Feb-2005  perry nuke trailing whitespace
 1.2 26-Jul-2003  jdolecek branches: 1.2.8; 1.2.10;
add LINUX_SO_PEERNAME, LINUX_SO_TIMESTAMP where it has been missing
fix value for LINUX_SO_DETACH_FILTER on couple places (unused anyway)

g/c LINUX_SCM_TIMESTAMP definition for some archs, it will be defined
in generic linux_socket.h
 1.1 26-Aug-2001  manu branches: 1.1.4; 1.1.6; 1.1.24;
Preliminary work on Linux/mips compat, more to come soon...
 1.1.24.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.1.6.1 26-Aug-2001  nathanw file linux_socket.h was added on branch nathanw_sa on 2001-09-21 22:35:17 +0000
 1.1.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.1.4.1 26-Aug-2001  thorpej file linux_socket.h was added on branch kqueue on 2001-09-13 01:15:20 +0000
 1.2.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.8.1 29-Apr-2005  kent sync with -current
 1.4.74.1 16-May-2008  yamt sync with head.
 1.4.72.1 18-May-2008  yamt sync with head.
 1.4.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.50.1 18-May-2014  rmind sync with head
 1.5.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.34.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.93 28-Sep-2024  christos regen
 1.92 01-Jul-2024  christos regen
 1.91 29-Jun-2024  christos branches: 1.91.2;
regen
 1.90 19-Aug-2023  christos regen
 1.89 18-Aug-2023  christos regen
 1.88 29-Jul-2023  christos regen
 1.87 28-Jul-2023  christos regen
 1.86 02-Dec-2021  ryo regen
 1.85 24-Nov-2021  ryo regen
 1.84 20-Sep-2021  thorpej Regen for preadv(2) / pwritev(2).
 1.83 20-Sep-2021  thorpej Regen for eventfd.
 1.82 19-Sep-2021  thorpej Regen for timerfd.
 1.81 19-Sep-2021  thorpej Regen for POSIX timer syscalls.
 1.80 26-Apr-2020  thorpej branches: 1.80.2;
Regen for native futex calls.
 1.79 09-Nov-2019  jdolecek regen
 1.78 10-Aug-2018  pgoyette Regen
 1.77 10-May-2017  riastradh branches: 1.77.8; 1.77.10;
regen
 1.76 09-Feb-2017  christos branches: 1.76.4;
regen
 1.75 09-Feb-2017  christos regen
 1.74 04-Feb-2017  christos regen
 1.73 03-Feb-2017  christos regen
 1.72 02-Feb-2017  christos regen
 1.71 16-Jan-2017  christos regen all
 1.70 13-Jan-2017  christos branches: 1.70.2;
regen
 1.69 02-Jan-2017  martin Regen (something apparently went wrong in previous)
 1.68 02-Jan-2017  manu Regen
 1.67 24-Jul-2016  njoly Regen for readlink/readlinkat signatures.
 1.66 27-Oct-2015  njoly branches: 1.66.2;
Regen.
 1.65 25-Oct-2015  njoly Regen for posix chown family cleanup.
 1.64 24-Sep-2015  christos regen
 1.63 07-Mar-2015  christos regen
 1.62 22-Nov-2014  njoly branches: 1.62.2;
Regen for ppoll signature fix
 1.61 31-May-2014  njoly branches: 1.61.2;
Regen for munmap(2) signature.
 1.60 29-May-2014  njoly Regen for utimes(2) change.
 1.59 20-May-2014  njoly Regen for getgroups/setgroups update.
 1.58 17-May-2014  njoly Regen for fadvise64 offset types changes.
 1.57 06-May-2014  njoly Regen for mknod device argument type change.
 1.56 04-May-2014  njoly Regen for pread/pwrite 64bit offset argument.
 1.55 08-Apr-2014  njoly Regen.
 1.54 08-Dec-2013  njoly branches: 1.54.2;
Regen.
 1.53 19-Nov-2013  chs regen
 1.52 07-Nov-2013  njoly Regen for dup/dup2/dup3 argument types fix.
 1.51 24-Sep-2013  njoly Regen for utimensat(2).
 1.50 08-Apr-2013  pooka branches: 1.50.4;
regen for utimes
 1.49 19-Sep-2012  pooka regen for ppoll (and, apparently, SYCALL_ARG_PTR)
 1.48 18-Nov-2011  christos branches: 1.48.10;
- add sigtimedwait support.
- merge the siginfo population code.
 1.47 30-May-2011  alnsn branches: 1.47.4;
Regenerate files to pick up correct RCS Ids. Suggested by Chris Badura.
 1.46 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.45 15-Apr-2011  he Regenerate these files after adding pipe2() and dup3().
 1.44 20-Feb-2011  matt Regen.
 1.43 07-Jul-2010  chs branches: 1.43.2; 1.43.4;
regen
 1.42 14-Dec-2009  matt branches: 1.42.2; 1.42.4;
Regen (new makesyscalls.sh)
 1.41 24-Nov-2009  njoly Regen for personality(2) update.
 1.40 17-Jun-2009  njoly Regen for sendmsg/recvmsg definitions update.
 1.39 08-Jun-2009  njoly Regen for rt_queueinfo(2) update.
 1.38 17-Jan-2009  njoly branches: 1.38.2;
Regen for wait4 update.
 1.37 15-Jan-2009  njoly Rengen for compat50 update.
 1.36 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.35 19-Nov-2008  ad Regen.
 1.34 12-Nov-2008  njoly Regen for nanosleep(2) fix.
 1.33 23-Apr-2008  ad branches: 1.33.2; 1.33.4; 1.33.8; 1.33.10; 1.33.12;
Regen.
 1.32 04-Apr-2008  njoly branches: 1.32.2;
Regen for linux_sys_msync removal.
 1.31 24-Dec-2007  njoly branches: 1.31.6;
Regen for linux_sys_getpgid removal.
 1.30 21-Dec-2007  njoly Regen for getfsuid/setfsgid syscall exchange.
 1.29 20-Dec-2007  dsl regen
 1.28 16-Nov-2007  njoly branches: 1.28.2; 1.28.6;
Regen, for syscalls cleanup.
 1.27 04-Mar-2007  christos branches: 1.27.14; 1.27.16; 1.27.20; 1.27.22;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.26 10-Jun-2006  christos branches: 1.26.12;
regen
 1.25 11-Dec-2005  christos branches: 1.25.4; 1.25.8; 1.25.14;
merge ktrace-lwp.
 1.24 16-May-2005  fvdl branches: 1.24.2;
Regen.
 1.23 16-May-2005  fvdl Regen.
 1.22 26-Feb-2005  perry regen
 1.21 26-Feb-2005  perry regen
 1.20 20-Sep-2004  jdolecek branches: 1.20.4; 1.20.6;
regen:
implement support for Linux statfs64() syscall - 64bit variant of statfs()
 1.19 08-Sep-2004  jdolecek regen: add exit_group(2)
 1.18 01-Aug-2004  jdolecek regen - sync syscall lists with Linux kernel 2.6.7
 1.17 01-Aug-2004  jdolecek regen:

connect madvise(2) and mincore(2) - apparently the newer Linux libs
don't stub it anymore, so allow the application to take advantage
of them

the Linux calls appear to be compatible in the flag values and semantics,
so a wrapper is not necessary
 1.16 10-Aug-2003  jdolecek regen - added wrapper for Linux ftruncate64()
 1.15 23-Jun-2003  christos branches: 1.15.2;
Regen.
 1.14 18-Jan-2003  thorpej Regen for correct RCS ID.
 1.13 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.12 01-Nov-2002  jdolecek nsysent set to 256, and use linux_sys_nosys()
 1.11 10-Apr-2002  christos branches: 1.11.4;
regen
 1.10 22-Mar-2002  christos regen
 1.9 18-Feb-2002  rafal Regen: Use linux_sys_{g,s}setrlimit, remove linux_sys_ugetrlimit since
linux/mips doesn't seem to have one.
 1.8 15-Feb-2002  christos Regen
 1.7 15-Feb-2002  christos - add a real linux_sys___sysctl because the mib numbers are different.
implement only the kernel version getting entries.
- make the signal conversion functions consistent; dest is arg 1.
- make linux_fakedev deal with block and char devices differently.
- add linux_sys_ugetrlimit, and flesh out the regular get/setrlimit so
that they work properly.
- add linux_mmap2 [untested].
- bump kernel to 2.4.18, and make the date be valentine's day :-)
- linux_sys_*stat64 family was totally busted. Fix it.

tested only on i386.

Status:
gdb, telnet, work
jdk-1.4.0 extractor works, jdk still coredumps.

christos
 1.6 20-Nov-2001  manu branches: 1.6.2;
Fixed the Linux signal trampoline and linux_sys_sigreturn(). Linux signal
delivery now seems fully functionnal.
 1.5 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.4 14-Oct-2001  manu Fixed some mistakes in signal handling (this is still broken)
Added some code to set linux's uname kernel version to 2.4.0 (usefull for
testing with glibc-2.2). This is currently guarded by a #if 0.
 1.3 06-Oct-2001  manu Added socket operations to Linux Mips emulation
 1.2 30-Sep-2001  manu branches: 1.2.2;
Implements parts of sysmips() and fctnl64() emulation
 1.1 22-Sep-2001  manu branches: 1.1.2;
More work on Linux compat for Mips: system calls mapping.
 1.1.2.11 11-Nov-2002  nathanw Catch up to -current
 1.1.2.10 29-May-2002  nathanw Regen.
 1.1.2.9 17-Apr-2002  nathanw Catch up to -current.
 1.1.2.8 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.7 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.6 08-Jan-2002  nathanw Catch up to -current.
 1.1.2.5 06-Dec-2001  wdk struct proc -> struct lwp changes for COMPAT_LINUX support on Mips
processors.
 1.1.2.4 22-Oct-2001  nathanw Catch up to -current.
 1.1.2.3 08-Oct-2001  nathanw Catch up to -current.
 1.1.2.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.2.1 22-Sep-2001  nathanw file linux_syscall.h was added on branch nathanw_sa on 2001-09-26 19:54:47 +0000
 1.2.2.3 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.2.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.2.2.1 30-Sep-2001  fvdl file linux_syscall.h was added on branch thorpej-devvp on 2001-10-01 12:43:39 +0000
 1.6.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.6.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.1 20-Nov-2001  thorpej file linux_syscall.h was added on branch kqueue on 2002-01-10 19:51:34 +0000
 1.11.4.3 14-Jun-2004  jmc Regen for changes in ticket #1708
 1.11.4.2 11-May-2004  tron Regen for ticket 1686.
 1.11.4.1 22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

Proper support for mmap2
 1.15.2.6 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.15.2.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.15.2.4 24-Sep-2004  skrll Sync with HEAD.
 1.15.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.15.2.1 03-Aug-2004  skrll Sync with HEAD
 1.20.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.20.4.1 29-Apr-2005  kent sync with -current
 1.24.2.4 21-Jan-2008  yamt sync with head
 1.24.2.3 07-Dec-2007  yamt sync with head
 1.24.2.2 03-Sep-2007  yamt sync with head.
 1.24.2.1 21-Jun-2006  yamt sync with head.
 1.25.14.1 19-Jun-2006  chap Sync with head.
 1.25.8.1 26-Jun-2006  yamt sync with head.
 1.25.4.1 09-Sep-2006  rpaulo sync with head
 1.26.12.1 12-Mar-2007  rmind Sync with HEAD.
 1.27.22.2 27-Dec-2007  mjf Sync with HEAD.
 1.27.22.1 19-Nov-2007  mjf Sync with HEAD.
 1.27.20.1 18-Nov-2007  bouyer Sync with HEAD
 1.27.16.1 09-Jan-2008  matt sync with HEAD
 1.27.14.1 21-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.31.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.31.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.32.2.1 18-May-2008  yamt sync with head.
 1.33.12.1 20-Nov-2008  snj Regen for ticket 81.
 1.33.10.1 19-Jan-2009  skrll Sync with HEAD.
 1.33.8.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 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.4 11-Aug-2010  yamt sync with head.
 1.33.2.3 11-Mar-2010  yamt sync with head
 1.33.2.2 20-Jun-2009  yamt sync with head
 1.33.2.1 04-May-2009  yamt sync with head.
 1.38.2.1 23-Jul-2009  jym Sync with HEAD.
 1.42.4.3 31-May-2011  rmind sync with head
 1.42.4.2 21-Apr-2011  rmind sync with head
 1.42.4.1 05-Mar-2011  rmind sync with head
 1.42.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.43.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.43.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.47.4.3 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.47.4.2 30-Oct-2012  yamt sync with head
 1.47.4.1 17-Apr-2012  yamt sync with head
 1.48.10.4 03-Dec-2017  jdolecek update from HEAD
 1.48.10.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.48.10.2 23-Jun-2013  tls resync from head
 1.48.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.50.4.1 18-May-2014  rmind sync with head
 1.54.2.1 10-Aug-2014  tls Rebase.
 1.61.2.1 17-Apr-2017  snj regen for ticket 1354
 1.62.2.5 28-Aug-2017  skrll Sync with HEAD
 1.62.2.4 05-Feb-2017  skrll Sync with HEAD
 1.62.2.3 05-Oct-2016  skrll Sync with HEAD
 1.62.2.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.62.2.1 06-Apr-2015  skrll Sync with HEAD
 1.66.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.66.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.66.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.70.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.76.4.1 11-May-2017  pgoyette Sync with HEAD
 1.77.10.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.77.10.1 10-Jun-2019  christos Sync with HEAD
 1.77.8.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.80.2.2 17-Dec-2020  thorpej Regen for preadv(2) and pwritev(2).
 1.80.2.1 15-Dec-2020  thorpej Regen for eventfd, timerfd, POSIX timers.
 1.91.2.1 02-Aug-2025  perseant Sync with HEAD
 1.92 28-Sep-2024  christos regen
 1.91 01-Jul-2024  christos regen
 1.90 29-Jun-2024  christos branches: 1.90.2;
regen
 1.89 19-Aug-2023  christos regen
 1.88 18-Aug-2023  christos regen
 1.87 29-Jul-2023  christos regen
 1.86 28-Jul-2023  christos regen
 1.85 02-Dec-2021  ryo regen
 1.84 24-Nov-2021  ryo regen
 1.83 20-Sep-2021  thorpej Regen for preadv(2) / pwritev(2).
 1.82 20-Sep-2021  thorpej Regen for eventfd.
 1.81 19-Sep-2021  thorpej Regen for timerfd.
 1.80 19-Sep-2021  thorpej Regen for POSIX timer syscalls.
 1.79 26-Apr-2020  thorpej branches: 1.79.2;
Regen for native futex calls.
 1.78 09-Nov-2019  jdolecek regen
 1.77 10-Aug-2018  pgoyette Regen
 1.76 10-May-2017  riastradh branches: 1.76.8; 1.76.10;
regen
 1.75 09-Feb-2017  christos branches: 1.75.4;
regen
 1.74 09-Feb-2017  christos regen
 1.73 04-Feb-2017  christos regen
 1.72 03-Feb-2017  christos regen
 1.71 02-Feb-2017  christos regen
 1.70 16-Jan-2017  christos regen all
 1.69 13-Jan-2017  christos branches: 1.69.2;
regen
 1.68 02-Jan-2017  martin Regen (something apparently went wrong in previous)
 1.67 02-Jan-2017  manu Regen
 1.66 24-Jul-2016  njoly Regen for readlink/readlinkat signatures.
 1.65 27-Oct-2015  njoly branches: 1.65.2;
Regen.
 1.64 25-Oct-2015  njoly Regen for posix chown family cleanup.
 1.63 24-Sep-2015  christos regen
 1.62 07-Mar-2015  christos regen
 1.61 22-Nov-2014  njoly branches: 1.61.2;
Regen for ppoll signature fix
 1.60 31-May-2014  njoly branches: 1.60.2;
Regen for munmap(2) signature.
 1.59 29-May-2014  njoly Regen for utimes(2) change.
 1.58 20-May-2014  njoly Regen for getgroups/setgroups update.
 1.57 17-May-2014  njoly Regen for fadvise64 offset types changes.
 1.56 06-May-2014  njoly Regen for mknod device argument type change.
 1.55 04-May-2014  njoly Regen for pread/pwrite 64bit offset argument.
 1.54 08-Apr-2014  njoly Regen.
 1.53 08-Dec-2013  njoly branches: 1.53.2;
Regen.
 1.52 19-Nov-2013  chs regen
 1.51 07-Nov-2013  njoly Regen for dup/dup2/dup3 argument types fix.
 1.50 24-Sep-2013  njoly Regen for utimensat(2).
 1.49 08-Apr-2013  pooka branches: 1.49.4;
regen for utimes
 1.48 19-Sep-2012  pooka regen for ppoll (and, apparently, SYCALL_ARG_PTR)
 1.47 18-Nov-2011  christos branches: 1.47.10;
- add sigtimedwait support.
- merge the siginfo population code.
 1.46 30-May-2011  alnsn branches: 1.46.4;
Regenerate files to pick up correct RCS Ids. Suggested by Chris Badura.
 1.45 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.44 15-Apr-2011  he Regenerate these files after adding pipe2() and dup3().
 1.43 20-Feb-2011  matt Regen.
 1.42 07-Jul-2010  chs branches: 1.42.2; 1.42.4;
regen
 1.41 14-Dec-2009  matt branches: 1.41.2; 1.41.4;
Regen (new makesyscalls.sh)
 1.40 24-Nov-2009  njoly Regen for personality(2) update.
 1.39 17-Jun-2009  njoly Regen for sendmsg/recvmsg definitions update.
 1.38 08-Jun-2009  njoly Regen for rt_queueinfo(2) update.
 1.37 17-Jan-2009  njoly branches: 1.37.2;
Regen for wait4 update.
 1.36 15-Jan-2009  njoly Rengen for compat50 update.
 1.35 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.34 19-Nov-2008  ad Regen.
 1.33 12-Nov-2008  njoly Regen for nanosleep(2) fix.
 1.32 23-Apr-2008  ad branches: 1.32.2; 1.32.4; 1.32.8; 1.32.10; 1.32.12;
Regen.
 1.31 04-Apr-2008  njoly branches: 1.31.2;
Regen for linux_sys_msync removal.
 1.30 24-Dec-2007  njoly branches: 1.30.6;
Regen for linux_sys_getpgid removal.
 1.29 21-Dec-2007  njoly Regen for getfsuid/setfsgid syscall exchange.
 1.28 20-Dec-2007  dsl regen
 1.27 16-Nov-2007  njoly branches: 1.27.2; 1.27.6;
Regen, for syscalls cleanup.
 1.26 04-Mar-2007  christos branches: 1.26.14; 1.26.16; 1.26.20; 1.26.22;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.25 10-Jun-2006  christos branches: 1.25.12;
regen
 1.24 11-Dec-2005  christos branches: 1.24.4; 1.24.8; 1.24.14;
merge ktrace-lwp.
 1.23 16-May-2005  fvdl branches: 1.23.2;
Regen.
 1.22 16-May-2005  fvdl Regen.
 1.21 26-Feb-2005  perry regen
 1.20 26-Feb-2005  perry regen
 1.19 20-Sep-2004  jdolecek branches: 1.19.4; 1.19.6;
regen:
implement support for Linux statfs64() syscall - 64bit variant of statfs()
 1.18 08-Sep-2004  jdolecek regen: add exit_group(2)
 1.17 01-Aug-2004  jdolecek regen - sync syscall lists with Linux kernel 2.6.7
 1.16 01-Aug-2004  jdolecek regen:

connect madvise(2) and mincore(2) - apparently the newer Linux libs
don't stub it anymore, so allow the application to take advantage
of them

the Linux calls appear to be compatible in the flag values and semantics,
so a wrapper is not necessary
 1.15 10-Aug-2003  jdolecek regen - added wrapper for Linux ftruncate64()
 1.14 23-Jun-2003  christos branches: 1.14.2;
Regen.
 1.13 18-Jan-2003  thorpej Regen for correct RCS ID.
 1.12 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.11 10-Apr-2002  christos branches: 1.11.4;
regen
 1.10 22-Mar-2002  christos regen
 1.9 18-Feb-2002  rafal Regen: Use linux_sys_{g,s}setrlimit, remove linux_sys_ugetrlimit since
linux/mips doesn't seem to have one.
 1.8 15-Feb-2002  christos Regen
 1.7 15-Feb-2002  christos - add a real linux_sys___sysctl because the mib numbers are different.
implement only the kernel version getting entries.
- make the signal conversion functions consistent; dest is arg 1.
- make linux_fakedev deal with block and char devices differently.
- add linux_sys_ugetrlimit, and flesh out the regular get/setrlimit so
that they work properly.
- add linux_mmap2 [untested].
- bump kernel to 2.4.18, and make the date be valentine's day :-)
- linux_sys_*stat64 family was totally busted. Fix it.

tested only on i386.

Status:
gdb, telnet, work
jdk-1.4.0 extractor works, jdk still coredumps.

christos
 1.6 20-Nov-2001  manu branches: 1.6.2;
Fixed the Linux signal trampoline and linux_sys_sigreturn(). Linux signal
delivery now seems fully functionnal.
 1.5 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.4 14-Oct-2001  manu Fixed some mistakes in signal handling (this is still broken)
Added some code to set linux's uname kernel version to 2.4.0 (usefull for
testing with glibc-2.2). This is currently guarded by a #if 0.
 1.3 06-Oct-2001  manu Added socket operations to Linux Mips emulation
 1.2 30-Sep-2001  manu branches: 1.2.2;
Implements parts of sysmips() and fctnl64() emulation
 1.1 22-Sep-2001  manu branches: 1.1.2;
More work on Linux compat for Mips: system calls mapping.
 1.1.2.11 29-May-2002  nathanw Regen.
 1.1.2.10 17-Apr-2002  nathanw Catch up to -current.
 1.1.2.9 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.8 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.7 08-Jan-2002  nathanw Catch up to -current.
 1.1.2.6 06-Dec-2001  wdk struct proc -> struct lwp changes for COMPAT_LINUX support on Mips
processors.
 1.1.2.5 14-Nov-2001  nathanw Catch up to -current.
 1.1.2.4 22-Oct-2001  nathanw Catch up to -current.
 1.1.2.3 08-Oct-2001  nathanw Catch up to -current.
 1.1.2.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.2.1 22-Sep-2001  nathanw file linux_syscallargs.h was added on branch nathanw_sa on 2001-09-26 19:54:47 +0000
 1.2.2.3 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.2.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.2.2.1 30-Sep-2001  fvdl file linux_syscallargs.h was added on branch thorpej-devvp on 2001-10-01 12:43:40 +0000
 1.6.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.6.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.1 20-Nov-2001  thorpej file linux_syscallargs.h was added on branch kqueue on 2002-01-10 19:51:35 +0000
 1.11.4.3 14-Jun-2004  jmc Regen for changes in ticket #1708
 1.11.4.2 11-May-2004  tron Regen for ticket 1686.
 1.11.4.1 22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

Proper support for mmap2
 1.14.2.6 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.14.2.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.14.2.4 24-Sep-2004  skrll Sync with HEAD.
 1.14.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.14.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.14.2.1 03-Aug-2004  skrll Sync with HEAD
 1.19.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.19.4.1 29-Apr-2005  kent sync with -current
 1.23.2.4 21-Jan-2008  yamt sync with head
 1.23.2.3 07-Dec-2007  yamt sync with head
 1.23.2.2 03-Sep-2007  yamt sync with head.
 1.23.2.1 21-Jun-2006  yamt sync with head.
 1.24.14.1 19-Jun-2006  chap Sync with head.
 1.24.8.1 26-Jun-2006  yamt sync with head.
 1.24.4.1 09-Sep-2006  rpaulo sync with head
 1.25.12.1 12-Mar-2007  rmind Sync with HEAD.
 1.26.22.2 27-Dec-2007  mjf Sync with HEAD.
 1.26.22.1 19-Nov-2007  mjf Sync with HEAD.
 1.26.20.1 18-Nov-2007  bouyer Sync with HEAD
 1.26.16.1 09-Jan-2008  matt sync with HEAD
 1.26.14.1 21-Nov-2007  joerg Sync with HEAD.
 1.27.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.27.2.1 26-Dec-2007  ad Sync with head.
 1.30.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.30.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.31.2.1 18-May-2008  yamt sync with head.
 1.32.12.1 20-Nov-2008  snj Regen for ticket 81.
 1.32.10.1 19-Jan-2009  skrll Sync with HEAD.
 1.32.8.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.32.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.32.2.4 11-Aug-2010  yamt sync with head.
 1.32.2.3 11-Mar-2010  yamt sync with head
 1.32.2.2 20-Jun-2009  yamt sync with head
 1.32.2.1 04-May-2009  yamt sync with head.
 1.37.2.1 23-Jul-2009  jym Sync with HEAD.
 1.41.4.3 31-May-2011  rmind sync with head
 1.41.4.2 21-Apr-2011  rmind sync with head
 1.41.4.1 05-Mar-2011  rmind sync with head
 1.41.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.42.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.42.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.46.4.3 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.46.4.2 30-Oct-2012  yamt sync with head
 1.46.4.1 17-Apr-2012  yamt sync with head
 1.47.10.4 03-Dec-2017  jdolecek update from HEAD
 1.47.10.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.47.10.2 23-Jun-2013  tls resync from head
 1.47.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.49.4.1 18-May-2014  rmind sync with head
 1.53.2.1 10-Aug-2014  tls Rebase.
 1.60.2.1 17-Apr-2017  snj regen for ticket 1354
 1.61.2.5 28-Aug-2017  skrll Sync with HEAD
 1.61.2.4 05-Feb-2017  skrll Sync with HEAD
 1.61.2.3 05-Oct-2016  skrll Sync with HEAD
 1.61.2.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.61.2.1 06-Apr-2015  skrll Sync with HEAD
 1.65.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.65.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.65.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.69.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.75.4.1 11-May-2017  pgoyette Sync with HEAD
 1.76.10.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.76.10.1 10-Jun-2019  christos Sync with HEAD
 1.76.8.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.79.2.2 17-Dec-2020  thorpej Regen for preadv(2) and pwritev(2).
 1.79.2.1 15-Dec-2020  thorpej Regen for eventfd, timerfd, POSIX timers.
 1.90.2.1 02-Aug-2025  perseant Sync with HEAD
 1.92 28-Sep-2024  christos regen
 1.91 01-Jul-2024  christos regen
 1.90 29-Jun-2024  christos branches: 1.90.2;
regen
 1.89 19-Aug-2023  christos regen
 1.88 18-Aug-2023  christos regen
 1.87 29-Jul-2023  christos regen
 1.86 28-Jul-2023  christos regen
 1.85 02-Dec-2021  ryo regen
 1.84 24-Nov-2021  ryo regen
 1.83 20-Sep-2021  thorpej Regen for preadv(2) / pwritev(2).
 1.82 20-Sep-2021  thorpej Regen for eventfd.
 1.81 19-Sep-2021  thorpej Regen for timerfd.
 1.80 19-Sep-2021  thorpej Regen for POSIX timer syscalls.
 1.79 26-Apr-2020  thorpej branches: 1.79.2;
Regen for native futex calls.
 1.78 09-Nov-2019  jdolecek regen
 1.77 10-Aug-2018  pgoyette Regen
 1.76 10-May-2017  riastradh branches: 1.76.8; 1.76.10;
regen
 1.75 09-Feb-2017  christos branches: 1.75.4;
regen
 1.74 09-Feb-2017  christos regen
 1.73 04-Feb-2017  christos regen
 1.72 03-Feb-2017  christos regen
 1.71 02-Feb-2017  christos regen
 1.70 16-Jan-2017  christos regen all
 1.69 13-Jan-2017  christos branches: 1.69.2;
regen
 1.68 02-Jan-2017  martin Regen (something apparently went wrong in previous)
 1.67 02-Jan-2017  manu Regen
 1.66 24-Jul-2016  njoly Regen for readlink/readlinkat signatures.
 1.65 27-Oct-2015  njoly branches: 1.65.2;
Regen.
 1.64 25-Oct-2015  njoly Regen for posix chown family cleanup.
 1.63 24-Sep-2015  christos regen
 1.62 07-Mar-2015  christos regen
 1.61 22-Nov-2014  njoly branches: 1.61.2;
Regen for ppoll signature fix
 1.60 31-May-2014  njoly branches: 1.60.2;
Regen for munmap(2) signature.
 1.59 29-May-2014  njoly Regen for utimes(2) change.
 1.58 20-May-2014  njoly Regen for getgroups/setgroups update.
 1.57 17-May-2014  njoly Regen for fadvise64 offset types changes.
 1.56 06-May-2014  njoly Regen for mknod device argument type change.
 1.55 04-May-2014  njoly Regen for pread/pwrite 64bit offset argument.
 1.54 08-Apr-2014  njoly Regen.
 1.53 08-Dec-2013  njoly branches: 1.53.2;
Regen.
 1.52 19-Nov-2013  chs regen
 1.51 07-Nov-2013  njoly Regen for dup/dup2/dup3 argument types fix.
 1.50 24-Sep-2013  njoly Regen for utimensat(2).
 1.49 08-Apr-2013  pooka branches: 1.49.4;
regen for utimes
 1.48 19-Sep-2012  pooka regen for ppoll (and, apparently, SYCALL_ARG_PTR)
 1.47 18-Nov-2011  christos branches: 1.47.10;
- add sigtimedwait support.
- merge the siginfo population code.
 1.46 30-May-2011  alnsn branches: 1.46.4;
Regenerate files to pick up correct RCS Ids. Suggested by Chris Badura.
 1.45 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.44 15-Apr-2011  he Regenerate these files after adding pipe2() and dup3().
 1.43 20-Feb-2011  matt Regen.
 1.42 07-Jul-2010  chs branches: 1.42.2; 1.42.4;
regen
 1.41 14-Dec-2009  matt branches: 1.41.2; 1.41.4;
Regen (new makesyscalls.sh)
 1.40 24-Nov-2009  njoly Regen for personality(2) update.
 1.39 17-Jun-2009  njoly Regen for sendmsg/recvmsg definitions update.
 1.38 08-Jun-2009  njoly Regen for rt_queueinfo(2) update.
 1.37 17-Jan-2009  njoly branches: 1.37.2;
Regen for wait4 update.
 1.36 15-Jan-2009  njoly Rengen for compat50 update.
 1.35 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.34 19-Nov-2008  ad Regen.
 1.33 12-Nov-2008  njoly Regen for nanosleep(2) fix.
 1.32 23-Apr-2008  ad branches: 1.32.2; 1.32.4; 1.32.8; 1.32.10; 1.32.12;
Regen.
 1.31 04-Apr-2008  njoly branches: 1.31.2;
Regen for linux_sys_msync removal.
 1.30 24-Dec-2007  njoly branches: 1.30.6;
Regen for linux_sys_getpgid removal.
 1.29 21-Dec-2007  njoly Regen for getfsuid/setfsgid syscall exchange.
 1.28 20-Dec-2007  dsl regen
 1.27 16-Nov-2007  njoly branches: 1.27.2; 1.27.6;
Regen, for syscalls cleanup.
 1.26 09-Feb-2007  ad branches: 1.26.18; 1.26.20; 1.26.24; 1.26.26;
Merge newlock2 to head.
 1.25 10-Jun-2006  christos branches: 1.25.6;
regen
 1.24 11-Dec-2005  christos branches: 1.24.4; 1.24.8; 1.24.14;
merge ktrace-lwp.
 1.23 16-May-2005  fvdl branches: 1.23.2;
Regen.
 1.22 16-May-2005  fvdl Regen.
 1.21 26-Feb-2005  perry regen
 1.20 26-Feb-2005  perry regen
 1.19 20-Sep-2004  jdolecek branches: 1.19.4; 1.19.6;
regen:
implement support for Linux statfs64() syscall - 64bit variant of statfs()
 1.18 08-Sep-2004  jdolecek regen: add exit_group(2)
 1.17 01-Aug-2004  jdolecek regen - sync syscall lists with Linux kernel 2.6.7
 1.16 01-Aug-2004  jdolecek regen:

connect madvise(2) and mincore(2) - apparently the newer Linux libs
don't stub it anymore, so allow the application to take advantage
of them

the Linux calls appear to be compatible in the flag values and semantics,
so a wrapper is not necessary
 1.15 10-Aug-2003  jdolecek regen - added wrapper for Linux ftruncate64()
 1.14 23-Jun-2003  christos branches: 1.14.2;
Regen.
 1.13 18-Jan-2003  thorpej Regen for correct RCS ID.
 1.12 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.11 10-Apr-2002  christos branches: 1.11.4;
regen
 1.10 22-Mar-2002  christos regen
 1.9 18-Feb-2002  rafal Regen: Use linux_sys_{g,s}setrlimit, remove linux_sys_ugetrlimit since
linux/mips doesn't seem to have one.
 1.8 15-Feb-2002  christos Regen
 1.7 15-Feb-2002  christos - add a real linux_sys___sysctl because the mib numbers are different.
implement only the kernel version getting entries.
- make the signal conversion functions consistent; dest is arg 1.
- make linux_fakedev deal with block and char devices differently.
- add linux_sys_ugetrlimit, and flesh out the regular get/setrlimit so
that they work properly.
- add linux_mmap2 [untested].
- bump kernel to 2.4.18, and make the date be valentine's day :-)
- linux_sys_*stat64 family was totally busted. Fix it.

tested only on i386.

Status:
gdb, telnet, work
jdk-1.4.0 extractor works, jdk still coredumps.

christos
 1.6 20-Nov-2001  manu branches: 1.6.2;
Fixed the Linux signal trampoline and linux_sys_sigreturn(). Linux signal
delivery now seems fully functionnal.
 1.5 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.4 14-Oct-2001  manu Fixed some mistakes in signal handling (this is still broken)
Added some code to set linux's uname kernel version to 2.4.0 (usefull for
testing with glibc-2.2). This is currently guarded by a #if 0.
 1.3 06-Oct-2001  manu Added socket operations to Linux Mips emulation
 1.2 30-Sep-2001  manu branches: 1.2.2;
Implements parts of sysmips() and fctnl64() emulation
 1.1 22-Sep-2001  manu branches: 1.1.2;
More work on Linux compat for Mips: system calls mapping.
 1.1.2.11 29-May-2002  nathanw Regen.
 1.1.2.10 17-Apr-2002  nathanw Catch up to -current.
 1.1.2.9 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.8 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.7 08-Jan-2002  nathanw Catch up to -current.
 1.1.2.6 06-Dec-2001  wdk struct proc -> struct lwp changes for COMPAT_LINUX support on Mips
processors.
 1.1.2.5 14-Nov-2001  nathanw Catch up to -current.
 1.1.2.4 22-Oct-2001  nathanw Catch up to -current.
 1.1.2.3 08-Oct-2001  nathanw Catch up to -current.
 1.1.2.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.2.1 22-Sep-2001  nathanw file linux_syscalls.c was added on branch nathanw_sa on 2001-09-26 19:54:47 +0000
 1.2.2.3 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.2.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.2.2.1 30-Sep-2001  fvdl file linux_syscalls.c was added on branch thorpej-devvp on 2001-10-01 12:43:40 +0000
 1.6.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.6.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.1 20-Nov-2001  thorpej file linux_syscalls.c was added on branch kqueue on 2002-01-10 19:51:35 +0000
 1.11.4.3 14-Jun-2004  jmc Regen for changes in ticket #1708
 1.11.4.2 11-May-2004  tron Regen for ticket 1686.
 1.11.4.1 22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

Proper support for mmap2
 1.14.2.6 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.14.2.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.14.2.4 24-Sep-2004  skrll Sync with HEAD.
 1.14.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.14.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.14.2.1 03-Aug-2004  skrll Sync with HEAD
 1.19.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.19.4.1 29-Apr-2005  kent sync with -current
 1.23.2.4 21-Jan-2008  yamt sync with head
 1.23.2.3 07-Dec-2007  yamt sync with head
 1.23.2.2 26-Feb-2007  yamt sync with head.
 1.23.2.1 21-Jun-2006  yamt sync with head.
 1.24.14.1 19-Jun-2006  chap Sync with head.
 1.24.8.1 26-Jun-2006  yamt sync with head.
 1.24.4.1 09-Sep-2006  rpaulo sync with head
 1.25.6.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.26.26.2 27-Dec-2007  mjf Sync with HEAD.
 1.26.26.1 19-Nov-2007  mjf Sync with HEAD.
 1.26.24.1 18-Nov-2007  bouyer Sync with HEAD
 1.26.20.1 09-Jan-2008  matt sync with HEAD
 1.26.18.1 21-Nov-2007  joerg Sync with HEAD.
 1.27.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.27.2.1 26-Dec-2007  ad Sync with head.
 1.30.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.30.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.31.2.1 18-May-2008  yamt sync with head.
 1.32.12.1 20-Nov-2008  snj Regen for ticket 81.
 1.32.10.1 19-Jan-2009  skrll Sync with HEAD.
 1.32.8.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.32.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.32.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.32.2.4 11-Aug-2010  yamt sync with head.
 1.32.2.3 11-Mar-2010  yamt sync with head
 1.32.2.2 20-Jun-2009  yamt sync with head
 1.32.2.1 04-May-2009  yamt sync with head.
 1.37.2.1 23-Jul-2009  jym Sync with HEAD.
 1.41.4.3 31-May-2011  rmind sync with head
 1.41.4.2 21-Apr-2011  rmind sync with head
 1.41.4.1 05-Mar-2011  rmind sync with head
 1.41.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.42.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.42.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.46.4.3 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.46.4.2 30-Oct-2012  yamt sync with head
 1.46.4.1 17-Apr-2012  yamt sync with head
 1.47.10.4 03-Dec-2017  jdolecek update from HEAD
 1.47.10.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.47.10.2 23-Jun-2013  tls resync from head
 1.47.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.49.4.1 18-May-2014  rmind sync with head
 1.53.2.1 10-Aug-2014  tls Rebase.
 1.60.2.1 17-Apr-2017  snj regen for ticket 1354
 1.61.2.4 05-Feb-2017  skrll Sync with HEAD
 1.61.2.3 05-Oct-2016  skrll Sync with HEAD
 1.61.2.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.61.2.1 06-Apr-2015  skrll Sync with HEAD
 1.65.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.65.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.65.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.69.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.75.4.1 11-May-2017  pgoyette Sync with HEAD
 1.76.10.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.76.10.1 10-Jun-2019  christos Sync with HEAD
 1.76.8.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.79.2.2 17-Dec-2020  thorpej Regen for preadv(2) and pwritev(2).
 1.79.2.1 15-Dec-2020  thorpej Regen for eventfd, timerfd, POSIX timers.
 1.90.2.1 02-Aug-2025  perseant Sync with HEAD
 1.92 28-Sep-2024  christos regen
 1.91 01-Jul-2024  christos regen
 1.90 29-Jun-2024  christos branches: 1.90.2;
regen
 1.89 19-Aug-2023  christos regen
 1.88 18-Aug-2023  christos regen
 1.87 29-Jul-2023  christos regen
 1.86 28-Jul-2023  christos regen
 1.85 02-Dec-2021  ryo regen
 1.84 24-Nov-2021  ryo regen
 1.83 20-Sep-2021  thorpej Regen for preadv(2) / pwritev(2).
 1.82 20-Sep-2021  thorpej Regen for eventfd.
 1.81 19-Sep-2021  thorpej Regen for timerfd.
 1.80 19-Sep-2021  thorpej Regen for POSIX timer syscalls.
 1.79 26-Apr-2020  thorpej branches: 1.79.2;
Regen for native futex calls.
 1.78 09-Nov-2019  jdolecek regen
 1.77 10-Aug-2018  pgoyette Regen
 1.76 10-May-2017  riastradh branches: 1.76.8; 1.76.10;
regen
 1.75 09-Feb-2017  christos branches: 1.75.4;
regen
 1.74 09-Feb-2017  christos regen
 1.73 04-Feb-2017  christos regen
 1.72 03-Feb-2017  christos regen
 1.71 02-Feb-2017  christos regen
 1.70 16-Jan-2017  christos regen all
 1.69 13-Jan-2017  christos branches: 1.69.2;
regen
 1.68 02-Jan-2017  martin Regen (something apparently went wrong in previous)
 1.67 02-Jan-2017  manu Regen
 1.66 24-Jul-2016  njoly Regen for readlink/readlinkat signatures.
 1.65 27-Oct-2015  njoly branches: 1.65.2;
Regen.
 1.64 25-Oct-2015  njoly Regen for posix chown family cleanup.
 1.63 24-Sep-2015  christos regen
 1.62 07-Mar-2015  christos regen
 1.61 22-Nov-2014  njoly branches: 1.61.2;
Regen for ppoll signature fix
 1.60 31-May-2014  njoly branches: 1.60.2;
Regen for munmap(2) signature.
 1.59 29-May-2014  njoly Regen for utimes(2) change.
 1.58 20-May-2014  njoly Regen for getgroups/setgroups update.
 1.57 17-May-2014  njoly Regen for fadvise64 offset types changes.
 1.56 06-May-2014  njoly Regen for mknod device argument type change.
 1.55 04-May-2014  njoly Regen for pread/pwrite 64bit offset argument.
 1.54 08-Apr-2014  njoly Regen.
 1.53 08-Dec-2013  njoly branches: 1.53.2;
Regen.
 1.52 19-Nov-2013  chs regen
 1.51 07-Nov-2013  njoly Regen for dup/dup2/dup3 argument types fix.
 1.50 24-Sep-2013  njoly Regen for utimensat(2).
 1.49 08-Apr-2013  pooka branches: 1.49.4;
regen for utimes
 1.48 19-Sep-2012  pooka regen for ppoll (and, apparently, SYCALL_ARG_PTR)
 1.47 18-Nov-2011  christos branches: 1.47.10;
- add sigtimedwait support.
- merge the siginfo population code.
 1.46 30-May-2011  alnsn branches: 1.46.4;
Regenerate files to pick up correct RCS Ids. Suggested by Chris Badura.
 1.45 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.44 15-Apr-2011  he Regenerate these files after adding pipe2() and dup3().
 1.43 20-Feb-2011  matt Regen.
 1.42 07-Jul-2010  chs branches: 1.42.2; 1.42.4;
regen
 1.41 14-Dec-2009  matt branches: 1.41.2; 1.41.4;
Regen (new makesyscalls.sh)
 1.40 24-Nov-2009  njoly Regen for personality(2) update.
 1.39 17-Jun-2009  njoly Regen for sendmsg/recvmsg definitions update.
 1.38 08-Jun-2009  njoly Regen for rt_queueinfo(2) update.
 1.37 17-Jan-2009  njoly branches: 1.37.2;
Regen for wait4 update.
 1.36 15-Jan-2009  njoly Rengen for compat50 update.
 1.35 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.34 19-Nov-2008  ad Regen.
 1.33 12-Nov-2008  njoly Regen for nanosleep(2) fix.
 1.32 23-Apr-2008  ad branches: 1.32.2; 1.32.4; 1.32.8; 1.32.10; 1.32.12;
Regen.
 1.31 04-Apr-2008  njoly branches: 1.31.2;
Regen for linux_sys_msync removal.
 1.30 24-Dec-2007  njoly branches: 1.30.6;
Regen for linux_sys_getpgid removal.
 1.29 21-Dec-2007  njoly Regen for getfsuid/setfsgid syscall exchange.
 1.28 20-Dec-2007  dsl regen
 1.27 16-Nov-2007  njoly branches: 1.27.2; 1.27.6;
Regen, for syscalls cleanup.
 1.26 09-Feb-2007  ad branches: 1.26.18; 1.26.20; 1.26.24; 1.26.26;
Merge newlock2 to head.
 1.25 10-Jun-2006  christos branches: 1.25.6;
regen
 1.24 11-Dec-2005  christos branches: 1.24.4; 1.24.8; 1.24.14;
merge ktrace-lwp.
 1.23 16-May-2005  fvdl branches: 1.23.2;
Regen.
 1.22 16-May-2005  fvdl Regen.
 1.21 26-Feb-2005  perry regen
 1.20 26-Feb-2005  perry regen
 1.19 20-Sep-2004  jdolecek branches: 1.19.4; 1.19.6;
regen:
implement support for Linux statfs64() syscall - 64bit variant of statfs()
 1.18 08-Sep-2004  jdolecek regen: add exit_group(2)
 1.17 01-Aug-2004  jdolecek regen - sync syscall lists with Linux kernel 2.6.7
 1.16 01-Aug-2004  jdolecek regen:

connect madvise(2) and mincore(2) - apparently the newer Linux libs
don't stub it anymore, so allow the application to take advantage
of them

the Linux calls appear to be compatible in the flag values and semantics,
so a wrapper is not necessary
 1.15 10-Aug-2003  jdolecek regen - added wrapper for Linux ftruncate64()
 1.14 23-Jun-2003  christos branches: 1.14.2;
Regen.
 1.13 18-Jan-2003  thorpej Regen for correct RCS ID.
 1.12 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.11 01-Nov-2002  jdolecek nsysent set to 256, and use linux_sys_nosys()
 1.10 10-Apr-2002  christos branches: 1.10.4;
regen
 1.9 22-Mar-2002  christos regen
 1.8 18-Feb-2002  rafal Regen: Use linux_sys_{g,s}setrlimit, remove linux_sys_ugetrlimit since
linux/mips doesn't seem to have one.
 1.7 15-Feb-2002  christos Regen
 1.6 20-Nov-2001  manu branches: 1.6.2;
Fixed the Linux signal trampoline and linux_sys_sigreturn(). Linux signal
delivery now seems fully functionnal.
 1.5 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.4 14-Oct-2001  manu Fixed some mistakes in signal handling (this is still broken)
Added some code to set linux's uname kernel version to 2.4.0 (usefull for
testing with glibc-2.2). This is currently guarded by a #if 0.
 1.3 06-Oct-2001  manu Added socket operations to Linux Mips emulation
 1.2 30-Sep-2001  manu branches: 1.2.2;
Implements parts of sysmips() and fctnl64() emulation
 1.1 22-Sep-2001  manu branches: 1.1.2;
One file that was missing from a previous commit
 1.1.2.12 11-Nov-2002  nathanw Catch up to -current
 1.1.2.11 29-May-2002  nathanw Regen.
 1.1.2.10 17-Apr-2002  nathanw Catch up to -current.
 1.1.2.9 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.8 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.7 08-Jan-2002  nathanw Catch up to -current.
 1.1.2.6 06-Dec-2001  wdk struct proc -> struct lwp changes for COMPAT_LINUX support on Mips
processors.
 1.1.2.5 14-Nov-2001  nathanw Catch up to -current.
 1.1.2.4 22-Oct-2001  nathanw Catch up to -current.
 1.1.2.3 08-Oct-2001  nathanw Catch up to -current.
 1.1.2.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.2.1 22-Sep-2001  nathanw file linux_sysent.c was added on branch nathanw_sa on 2001-09-26 19:54:47 +0000
 1.2.2.3 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.2.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.2.2.1 30-Sep-2001  fvdl file linux_sysent.c was added on branch thorpej-devvp on 2001-10-01 12:43:40 +0000
 1.6.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.6.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.1 20-Nov-2001  thorpej file linux_sysent.c was added on branch kqueue on 2002-01-10 19:51:35 +0000
 1.10.4.3 14-Jun-2004  jmc Regen for changes in ticket #1708
 1.10.4.2 11-May-2004  tron Regen for ticket 1686.
 1.10.4.1 22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

Proper support for mmap2
 1.14.2.6 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.14.2.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.14.2.4 24-Sep-2004  skrll Sync with HEAD.
 1.14.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.14.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.14.2.1 03-Aug-2004  skrll Sync with HEAD
 1.19.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.19.4.1 29-Apr-2005  kent sync with -current
 1.23.2.4 21-Jan-2008  yamt sync with head
 1.23.2.3 07-Dec-2007  yamt sync with head
 1.23.2.2 26-Feb-2007  yamt sync with head.
 1.23.2.1 21-Jun-2006  yamt sync with head.
 1.24.14.1 19-Jun-2006  chap Sync with head.
 1.24.8.1 26-Jun-2006  yamt sync with head.
 1.24.4.1 09-Sep-2006  rpaulo sync with head
 1.25.6.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.26.26.2 27-Dec-2007  mjf Sync with HEAD.
 1.26.26.1 19-Nov-2007  mjf Sync with HEAD.
 1.26.24.1 18-Nov-2007  bouyer Sync with HEAD
 1.26.20.1 09-Jan-2008  matt sync with HEAD
 1.26.18.1 21-Nov-2007  joerg Sync with HEAD.
 1.27.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.27.2.1 26-Dec-2007  ad Sync with head.
 1.30.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.30.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.31.2.1 18-May-2008  yamt sync with head.
 1.32.12.1 20-Nov-2008  snj Regen for ticket 81.
 1.32.10.1 19-Jan-2009  skrll Sync with HEAD.
 1.32.8.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.32.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.32.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.32.2.4 11-Aug-2010  yamt sync with head.
 1.32.2.3 11-Mar-2010  yamt sync with head
 1.32.2.2 20-Jun-2009  yamt sync with head
 1.32.2.1 04-May-2009  yamt sync with head.
 1.37.2.1 23-Jul-2009  jym Sync with HEAD.
 1.41.4.3 31-May-2011  rmind sync with head
 1.41.4.2 21-Apr-2011  rmind sync with head
 1.41.4.1 05-Mar-2011  rmind sync with head
 1.41.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.42.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.42.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.46.4.3 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.46.4.2 30-Oct-2012  yamt sync with head
 1.46.4.1 17-Apr-2012  yamt sync with head
 1.47.10.4 03-Dec-2017  jdolecek update from HEAD
 1.47.10.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.47.10.2 23-Jun-2013  tls resync from head
 1.47.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.49.4.1 18-May-2014  rmind sync with head
 1.53.2.1 10-Aug-2014  tls Rebase.
 1.60.2.1 17-Apr-2017  snj regen for ticket 1354
 1.61.2.4 05-Feb-2017  skrll Sync with HEAD
 1.61.2.3 05-Oct-2016  skrll Sync with HEAD
 1.61.2.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.61.2.1 06-Apr-2015  skrll Sync with HEAD
 1.65.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.65.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.65.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.69.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.75.4.1 11-May-2017  pgoyette Sync with HEAD
 1.76.10.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.76.10.1 10-Jun-2019  christos Sync with HEAD
 1.76.8.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.79.2.2 17-Dec-2020  thorpej Regen for preadv(2) and pwritev(2).
 1.79.2.1 15-Dec-2020  thorpej Regen for eventfd, timerfd, POSIX timers.
 1.90.2.1 02-Aug-2025  perseant Sync with HEAD
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 11-Dec-2005  christos branches: 1.4.70; 1.4.72; 1.4.74;
merge ktrace-lwp.
 1.3 26-Feb-2005  perry nuke trailing whitespace
 1.2 02-Sep-2001  manu branches: 1.2.4; 1.2.6; 1.2.24; 1.2.32; 1.2.34;
Fixed indent problems
 1.1 26-Aug-2001  manu Preliminary work on Linux/Mips emul. More to come soon...
 1.2.34.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.32.1 29-Apr-2005  kent sync with -current
 1.2.24.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.2.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.2.6.1 02-Sep-2001  nathanw file linux_termios.h was added on branch nathanw_sa on 2001-09-21 22:35:17 +0000
 1.2.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.4.1 02-Sep-2001  thorpej file linux_termios.h was added on branch kqueue on 2001-09-13 01:15:20 +0000
 1.4.74.1 16-May-2008  yamt sync with head.
 1.4.72.1 18-May-2008  yamt sync with head.
 1.4.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.11 11-Jan-2009  christos merge christos-time_t
 1.10 28-Apr-2008  martin branches: 1.10.8; 1.10.14;
Remove clause 3 and 4 from TNF licenses
 1.9 11-Dec-2005  christos branches: 1.9.70; 1.9.72; 1.9.74;
merge ktrace-lwp.
 1.8 26-Feb-2005  perry nuke trailing whitespace
 1.7 20-Sep-2004  jdolecek branches: 1.7.4; 1.7.6;
move definition of linux_fsid_t to common/linux_types.h - it's identical
across all Linux archs
 1.6 19-Sep-2004  jdolecek move definition of struct linux_stafs to common/linux_types.h, and use
explicit size types - the structure definition is actually identical
on currently support COMPAT_LINUX archs, so no point to have 6 copies of it
in the tree
 1.5 17-Feb-2002  rafal branches: 1.5.16;
the MIPS stat64 struct doesn't have a separate ino64 field, but the ino field
is a u_longlong.
 1.4 06-Oct-2001  manu Added socket operations to Linux Mips emulation
 1.3 22-Sep-2001  manu Fixed errors in header files
 1.2 02-Sep-2001  manu branches: 1.2.2; 1.2.4; 1.2.6;
Added 64 bits support in header files.
All headers should be common to 32 bits MIPS and 64 bits MIPS now.
 1.1 26-Aug-2001  manu Preliminary work on Linux/Mips emul
 1.2.6.5 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.4 22-Oct-2001  nathanw Catch up to -current.
 1.2.6.3 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.2.6.2 21-Sep-2001  nathanw Catch up to -current.
 1.2.6.1 02-Sep-2001  nathanw file linux_types.h was added on branch nathanw_sa on 2001-09-21 22:35:17 +0000
 1.2.4.4 16-Mar-2002  jdolecek Catch up with -current.
 1.2.4.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.4.1 02-Sep-2001  thorpej file linux_types.h was added on branch kqueue on 2001-09-13 01:15:20 +0000
 1.2.2.2 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.2.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.5.16.2 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.5.16.1 24-Sep-2004  skrll Sync with HEAD.
 1.7.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.7.4.1 29-Apr-2005  kent sync with -current
 1.9.74.2 04-May-2009  yamt sync with head.
 1.9.74.1 16-May-2008  yamt sync with head.
 1.9.72.1 18-May-2008  yamt sync with head.
 1.9.70.2 17-Jan-2009  mjf Sync with HEAD.
 1.9.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.10.14.2 11-Jan-2009  christos add linux_suseconds_t
 1.10.14.1 28-Apr-2008  christos file linux_types.h was added on branch christos-time_t on 2009-01-11 00:17:51 +0000
 1.10.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 01-Aug-2004  jdolecek sync the syscall lists with Linux kernel 2.6.7
 1.2 01-Nov-2002  jdolecek branches: 1.2.6;
add appropriate nsysent, and use linux_sys_nosys as sys_nosys
 1.1 30-Sep-1998  erh branches: 1.1.24;
Stubs for future development of linux compat architechtures.
 1.1.24.1 11-Nov-2002  nathanw Catch up to -current
 1.2.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.6.1 03-Aug-2004  skrll Sync with HEAD
 1.83 01-Oct-2024  riastradh sys/compat/linux/arch/*/syscalls.master: Nix trailing whitespace.

No functional change intended.
 1.82 28-Sep-2024  christos Linux GSoC-2024: renameat2, clone3, sync_file_range, syncfs (Shivraj Jamgade)
 1.81 01-Jul-2024  christos Add linux POSIX message queue support (Ricardo Branco)
 1.80 29-Jun-2024  christos branches: 1.80.2;
From gsoc 2024: Implement faccessat2 and getcpu (Shivraz)
 1.79 19-Aug-2023  christos Add inotify* syscalls GSoC 2023 (Theodore Preduta)
 1.78 18-Aug-2023  christos Add linux waitid(2) from GSoC 2023 (Theodore Preduta)
 1.77 29-Jul-2023  christos typo
 1.76 29-Jul-2023  christos Add/fix statx, readahead, close_range. From GSoC 2023 by Theodore Preduta
 1.75 28-Jul-2023  christos add epoll syscalls
 1.74 02-Dec-2021  ryo add prlimit64(2) syscall to COMPAT_LINUX and COMPAT_LINUX32
 1.73 24-Nov-2021  ryo add getrandom(2) syscall entry
 1.72 20-Sep-2021  thorpej Add preadv(2) and pwritev(2) system calls to COMPAT_LINUX and COMPAT_LINUX32.
 1.71 20-Sep-2021  thorpej Add the eventfd system calls to COMPAT_LINUX and COMPAT_LINUX32.
 1.70 19-Sep-2021  thorpej Add the timerfd syscalls to COMPAT_LINUX and COMPAT_LINUX32.
 1.69 19-Sep-2021  thorpej Add the POSIX timer syscalls (timer_create(), timer_settime(), timer_gettime(),
timer_getoverrun(), and timer_delete()) to COMPAT_LINUX and COMPAT_LINUX32.
 1.68 26-Apr-2020  thorpej branches: 1.68.2;
Add a NetBSD native futex implementation, mostly written by riastradh@.
Map the COMPAT_LINUX futex calls to the native ones.
 1.67 09-Nov-2019  jdolecek add dummy implementation of linux fallocate() which just returns EOPNOTSUPP;
this is needed so that glibc falls back to emulation and apps behaving
properly, since EOPNOTSUPP is a documented and expected return code, but
ENOSYS is not

right now there are no filesystems in NetBSD tree supporting the fallocate
VOP, so no point trying to map this to a native call

supposed to help with problem reported in
https://mail-index.netbsd.org/tech-kern/2019/11/03/msg025641.html
 1.66 09-Feb-2017  christos branches: 1.66.14;
revert listen
 1.65 09-Feb-2017  christos fix listen
 1.64 04-Feb-2017  christos fix broken entries that prevented compilation.
 1.63 03-Feb-2017  christos add missing unimpl and sendmmsg and recvmmsg
 1.62 02-Feb-2017  christos implement accept4
XXX: mips looks busted (the syscalls file has lots of NOARGS syscalls that
should be STD).
 1.61 02-Jan-2017  manu branches: 1.61.2;
Add pselect6 Linux system call.
This lets Matlab R2016A run on NetBSD/amd64
 1.60 24-Jul-2016  njoly Small cleanup. Adjust readlink/readlinkat signatures to reduce diffs with
native.
 1.59 27-Oct-2015  njoly branches: 1.59.2;
Fix wrong gid types from previous.
 1.58 25-Oct-2015  njoly Cleanup posix chown family syscalls to match native (alpha, mips and
powerpc).
 1.57 22-Nov-2014  njoly branches: 1.57.2;
Fix ppoll signature (int ->u_int)
 1.56 31-May-2014  njoly branches: 1.56.2;
Fix munmap(2) signature.
 1.55 29-May-2014  njoly For utimes(2), use compat_50_sys_utimes() instead of local version.
 1.54 20-May-2014  njoly Fix getgroups/setgroups signature.
 1.53 17-May-2014  njoly Fix fadvise64 syscalls to use 64bit offset types.
 1.52 06-May-2014  njoly Reduce diffs between archs; make mknod device argument unsigned.
 1.51 04-May-2014  njoly Fix pread/pwrite syscalls which need a 64bit offset argument.
 1.50 08-Apr-2014  njoly Adjust read/write/readv/writev signature to match native versions.
 1.49 08-Dec-2013  njoly branches: 1.49.2;
Sprinkle a few more linux_umode_t where appropriate.
Reduce diffs between archs.
 1.48 19-Nov-2013  chs add the *at() syscalls.
 1.47 07-Nov-2013  njoly Fix dup/dup2/dup3 argument types (u_int -> int).
 1.46 24-Sep-2013  njoly Add utimensat(2) for compat linux.
 1.45 08-Apr-2013  pooka branches: 1.45.4;
support utimes on non-alpha linux platforms
 1.44 19-Sep-2012  pooka emulate ppoll which is essentially our pollts
 1.43 18-Nov-2011  christos branches: 1.43.10;
add sigtimedwait
 1.42 09-Jul-2011  christos branches: 1.42.2;
the first argument of {g,s}etitimer() is int not u_int.
 1.41 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.40 15-Apr-2011  he Add dup3() and pipe2() for these archs as well.
 1.39 20-Feb-2011  matt Change some ints to longs (for LP64).
 1.38 07-Jul-2010  chs branches: 1.38.2; 1.38.4;
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.37 24-Nov-2009  njoly branches: 1.37.2; 1.37.4;
Update personality(2) to match Linux definition where the argument is an
unsigned long.
 1.36 17-Jun-2009  njoly Add a new linux_msghdr structure, as its size differs on 64bit archs.
Do the needed conversions in sendmsg/recvmsg syscalls, and adjust
their definitions accordingly.
 1.35 08-Jun-2009  njoly Update rt_queueinfo(2) definition, and kill a corresponding comment.
 1.34 17-Jan-2009  njoly branches: 1.34.2;
Convert linux/linux32 wait(4) to use a compat50 rusage structure.
 1.33 15-Jan-2009  njoly Update some syscalls/arguments to use the new compat50 equivalents.
 1.32 13-Jan-2009  pooka 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.31 19-Nov-2008  ad 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.30 12-Nov-2008  njoly Fix nanosleep(2) on 64-bit archs. Do not call native nanosleep
syscall, but rather a modified version the will take care of `struct
timespec' conversions.
 1.29 23-Apr-2008  ad branches: 1.29.2; 1.29.4; 1.29.8; 1.29.10; 1.29.12;
-SYCALL_MPSAFE
 1.28 04-Apr-2008  njoly branches: 1.28.2;
Cleanup. Kill linux_sys_msync and use sys___msync13 instead.
No functional changes expected.
 1.27 24-Dec-2007  njoly branches: 1.27.6;
Kill unneeded linux_sys_getpgid and use native sys_getpgid instead.
 1.26 21-Dec-2007  njoly - Fix setfsuid to return uid on success.
- Replace getfsuid, which never existed on Linux, by correct setfsgid
syscall.

ok by christos and dsl.
 1.25 20-Dec-2007  dsl 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.24 16-Nov-2007  njoly branches: 1.24.2; 1.24.6;
Cleanup. Remove a few linux syscalls definitions, now identical to
native ones (with stackgap and ALT_CHECK_xxx removal). No functional
changes expected.
 1.23 04-Mar-2007  christos branches: 1.23.14; 1.23.16; 1.23.20; 1.23.22;
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 10-Jun-2006  christos branches: 1.21.6;
linux getpriority is off-by-20 so use our own function.
From PR/33671: Nicolas Joly
 1.20 11-Dec-2005  christos branches: 1.20.4; 1.20.8; 1.20.14;
merge ktrace-lwp.
 1.19 16-May-2005  fvdl branches: 1.19.2;
Add clock_* POSIX functions.
 1.18 16-May-2005  fvdl Add *xattr functions (they all return EOPNOTSUPP).
 1.17 26-Feb-2005  perry nuke trailing whitespace
 1.16 20-Sep-2004  jdolecek branches: 1.16.4; 1.16.6;
implement support for Linux statfs64() syscall - 64bit variant of statfs()
 1.15 08-Sep-2004  jdolecek implement basic exit_group(2), which just terminates calling thread;
apparently not many apps use thread groups yet, at least not with default
SuSE 9.1 libraries, so this is enough for now
 1.14 01-Aug-2004  jdolecek sync the syscall lists with Linux kernel 2.6.7
 1.13 01-Aug-2004  jdolecek connect madvise(2) and mincore(2) - apparently the newer Linux libs
don't stub it anymore, so allow the application to take advantage
of them

the Linux calls appear to be compatible in the flag values and semantics,
so a wrapper is not necessary
 1.12 10-Aug-2003  jdolecek add Linux compat arg wrapper for ftruncate64(), and change linux compat
truncate64() wrapper to translate args structure
NetBSD truncate() and ftrucate() have hidden 'pad' argument, so we have
to do the argument translation

Problem found and patch supplied in PR kern/22360 by Ales Krenek

This is the last of syscalls with hidden 'pad' arg we didn't have
wrapper for; all the others (lseek, mmap, pwrite, pread) already had
wrapper before.
 1.11 23-Jun-2003  christos branches: 1.11.2;
PR/21937: Todd Vierling: Proper support for mmap2
 1.10 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.9 10-Apr-2002  christos branches: 1.9.4;
add getdents64
 1.8 22-Mar-2002  christos add mprotect, nuke mmap2
 1.7 17-Feb-2002  rafal Use linux_sys_{g,s}etrlimit() since there's a common implementation now; but
MIPS has no sys_ugetrlimit, so don't declare it (209 is UNIMPL in the OSS
Linux-mips tree)
 1.6 15-Feb-2002  christos proper comment.
 1.5 15-Feb-2002  christos - add a real linux_sys___sysctl because the mib numbers are different.
implement only the kernel version getting entries.
- make the signal conversion functions consistent; dest is arg 1.
- make linux_fakedev deal with block and char devices differently.
- add linux_sys_ugetrlimit, and flesh out the regular get/setrlimit so
that they work properly.
- add linux_mmap2 [untested].
- bump kernel to 2.4.18, and make the date be valentine's day :-)
- linux_sys_*stat64 family was totally busted. Fix it.

tested only on i386.

Status:
gdb, telnet, work
jdk-1.4.0 extractor works, jdk still coredumps.

christos
 1.4 20-Nov-2001  manu branches: 1.4.2;
Fixed the Linux signal trampoline and linux_sys_sigreturn(). Linux signal
delivery now seems fully functionnal.
 1.3 06-Oct-2001  manu Added socket operations to Linux Mips emulation
 1.2 30-Sep-2001  manu branches: 1.2.2;
Implements parts of sysmips() and fctnl64() emulation
 1.1 22-Sep-2001  manu branches: 1.1.2;
More work on Linux compat for Mips: system calls mapping.
 1.1.2.9 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.2.8 17-Apr-2002  nathanw Catch up to -current.
 1.1.2.7 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.6 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.5 08-Jan-2002  nathanw Catch up to -current.
 1.1.2.4 22-Oct-2001  nathanw Catch up to -current.
 1.1.2.3 08-Oct-2001  nathanw Catch up to -current.
 1.1.2.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.2.1 22-Sep-2001  nathanw file syscalls.master was added on branch nathanw_sa on 2001-09-26 19:54:47 +0000
 1.2.2.3 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.2.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.2.2.1 30-Sep-2001  fvdl file syscalls.master was added on branch thorpej-devvp on 2001-10-01 12:43:41 +0000
 1.4.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.4.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1 20-Nov-2001  thorpej file syscalls.master was added on branch kqueue on 2002-01-10 19:51:35 +0000
 1.9.4.3 14-Jun-2004  jmc Pullup patch (requested by skrll in ticket #1708)

Bring netbsd-1-6 inline with -current sources after the mistakes in ticket #1686
 1.9.4.2 11-May-2004  tron Pull up revision 1.12 via patch (requested by wennmach in ticket #1686):
add Linux compat arg wrapper for ftruncate64(), and change linux compat
truncate64() wrapper to translate args structure
NetBSD truncate() and ftrucate() have hidden 'pad' argument, so we have
to do the argument translation
Problem found and patch supplied in PR kern/22360 by Ales Krenek
This is the last of syscalls with hidden 'pad' arg we didn't have
wrapper for; all the others (lseek, mmap, pwrite, pread) already had
wrapper before.
 1.9.4.1 22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

Proper support for mmap2
 1.11.2.6 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.11.2.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.11.2.4 24-Sep-2004  skrll Sync with HEAD.
 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.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.19.2.5 21-Jan-2008  yamt sync with head
 1.19.2.4 07-Dec-2007  yamt sync with head
 1.19.2.3 03-Sep-2007  yamt sync with head.
 1.19.2.2 26-Feb-2007  yamt sync with head.
 1.19.2.1 21-Jun-2006  yamt sync with head.
 1.20.14.1 19-Jun-2006  chap Sync with head.
 1.20.8.1 26-Jun-2006  yamt sync with head.
 1.20.4.1 09-Sep-2006  rpaulo sync with head
 1.21.6.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.22.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.23.22.2 27-Dec-2007  mjf Sync with HEAD.
 1.23.22.1 19-Nov-2007  mjf Sync with HEAD.
 1.23.20.1 18-Nov-2007  bouyer Sync with HEAD
 1.23.16.1 09-Jan-2008  matt sync with HEAD
 1.23.14.1 21-Nov-2007  joerg Sync with HEAD.
 1.24.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.24.2.1 26-Dec-2007  ad Sync with head.
 1.27.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.27.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.28.2.1 18-May-2008  yamt sync with head.
 1.29.12.1 20-Nov-2008  snj Pull up following revision(s) (requested by njoly in ticket #81):
sys/compat/linux/arch/mips/syscalls.master: revision 1.30
sys/compat/linux/arch/m68k/syscalls.master: revision 1.63
sys/compat/linux32/arch/amd64/syscalls.master: revision 1.39
sys/compat/linux/arch/alpha/syscalls.master: revision 1.63
sys/compat/linux/arch/powerpc/syscalls.master: revision 1.38
sys/compat/linux32/common/linux32_time.c: revision 1.22
sys/compat/linux/arch/amd64/syscalls.master: revision 1.25
sys/compat/linux/arch/i386/syscalls.master: revision 1.94
sys/compat/linux/arch/arm/syscalls.master: revision 1.36
sys/compat/linux/common/linux_time.c: revision 1.26
Fix nanosleep(2) on 64-bit archs. Do not call native nanosleep
syscall, but rather a modified version the will take care of `struct
timespec' conversions.
 1.29.10.1 19-Jan-2009  skrll Sync with HEAD.
 1.29.8.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 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.4 11-Aug-2010  yamt sync with head.
 1.29.2.3 11-Mar-2010  yamt sync with head
 1.29.2.2 20-Jun-2009  yamt sync with head
 1.29.2.1 04-May-2009  yamt sync with head.
 1.34.2.1 23-Jul-2009  jym Sync with HEAD.
 1.37.4.3 31-May-2011  rmind sync with head
 1.37.4.2 21-Apr-2011  rmind sync with head
 1.37.4.1 05-Mar-2011  rmind sync with head
 1.37.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.38.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.38.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.42.2.3 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.42.2.2 30-Oct-2012  yamt sync with head
 1.42.2.1 17-Apr-2012  yamt sync with head
 1.43.10.4 03-Dec-2017  jdolecek update from HEAD
 1.43.10.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.43.10.2 23-Jun-2013  tls resync from head
 1.43.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.45.4.1 18-May-2014  rmind sync with head
 1.49.2.1 10-Aug-2014  tls Rebase.
 1.56.2.1 17-Apr-2017  snj Pull up following revision(s) (requested by manu in ticket #1354):
sys/compat/linux/arch/alpha/syscalls.master: revision 1.92 via patch
sys/compat/linux/arch/amd64/syscalls.master: revision 1.58 via patch
sys/compat/linux/arch/arm/syscalls.master: revision 1.65 via patch
sys/compat/linux/arch/i386/syscalls.master: revision 1.122 via patch
sys/compat/linux/arch/m68k/syscalls.master: revision 1.91 via patch
sys/compat/linux/arch/mips/syscalls.master: revision 1.61 via patch
sys/compat/linux/arch/powerpc/syscalls.master: revision 1.70 via patch
sys/compat/linux/common/linux_misc.c: revision 1.234
sys/compat/linux/common/linux_signal.h: revision 1.31
Add pselect6 Linux system call.
This lets Matlab R2016A run on NetBSD/amd64
 1.57.2.4 28-Aug-2017  skrll Sync with HEAD
 1.57.2.3 05-Feb-2017  skrll Sync with HEAD
 1.57.2.2 05-Oct-2016  skrll Sync with HEAD
 1.57.2.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.59.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.59.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.59.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.61.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.66.14.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.68.2.2 17-Dec-2020  thorpej Add suppport for Linux preadv(2) and pwritev(2). Same as native, except
for the silly way that the offset argument is passed in.
 1.68.2.1 15-Dec-2020  thorpej Add Linux eventfd, timerfd, and POSIX timer calls.
 1.80.2.1 02-Aug-2025  perseant Sync with HEAD

RSS XML Feed