Home | History | Annotate | only in /src/sys/compat/linux/arch/m68k
History log of /src/sys/compat/linux/arch/m68k
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 24-Dec-2013  njoly Reduce diffs between arches, add fcntl64() to m68k.
 1.6 30-May-2011  alnsn branches: 1.6.4; 1.6.14; 1.6.18;
Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.5 07-Jul-2010  chs branches: 1.5.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.4 15-Jan-2008  njoly branches: 1.4.10; 1.4.30; 1.4.32;
compat linux (and linux32) uid16 functions cleanup and fixes.

- Move uid16 functions to their own file linux_uid16.c, included by
needed archs (arm, i386 and m68k).
- Add new MI types linux_{u,g}id16_t.
- Add macros to handle linux_uid16_t and uid_t conversions.
- Add linux_sys_getres{uid,gid}16 syscalls, to fix an overflow with
bad sizes given to copyout when linux_sys_getres{uid,gid} are used.
- Update arm syscall table to use more uid16 functions.
 1.3 31-Mar-2002  christos branches: 1.3.26; 1.3.84; 1.3.90; 1.3.98;
bring the reverse signal mapping array into linux_signo.c
 1.2 12-Dec-2000  jdolecek branches: 1.2.2; 1.2.4;
add emulation of Linux truncate64(2), ftruncate64(2), *stat64(2)
 1.1 15-Dec-1998  itohy branches: 1.1.8;
Initial support of Linux/m68k compatibility.
 1.1.8.1 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.2.4.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.1 17-Apr-2002  nathanw Catch up to -current.
 1.3.98.1 19-Jan-2008  bouyer Sync with HEAD
 1.3.90.1 18-Feb-2008  mjf Sync with HEAD.
 1.3.84.1 23-Mar-2008  matt sync with HEAD
 1.3.26.1 21-Jan-2008  yamt sync with head
 1.4.32.2 31-May-2011  rmind sync with head
 1.4.32.1 05-Mar-2011  rmind sync with head
 1.4.30.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.4.10.1 11-Aug-2010  yamt sync with head.
 1.5.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.6.18.1 18-May-2014  rmind sync with head
 1.6.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.4.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.5 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.4 28-Apr-2008  martin branches: 1.4.34; 1.4.44; 1.4.50;
Remove clause 3 and 4 from TNF licenses
 1.3 12-Feb-2001  manu branches: 1.3.122; 1.3.124; 1.3.126;
Clarified comments about the LINUX_SCERR_SIGN macro
 1.2 11-Feb-2001  manu Moved the fix for negative errno returned to userland on the PowerPC to a
more machine independent fashion
 1.1 15-Dec-1998  itohy branches: 1.1.8;
Initial support of Linux/m68k compatibility.
 1.1.8.1 12-Mar-2001  bouyer Sync with HEAD.
 1.3.126.1 16-May-2008  yamt sync with head.
 1.3.124.1 18-May-2008  yamt sync with head.
 1.3.122.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.50.1 18-May-2014  rmind sync with head
 1.4.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.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.12 12-Feb-2017  chs es_arglen is now in units of bytes, update the emulations accordingly.
 1.11 09-Feb-2014  chs branches: 1.11.6; 1.11.10; 1.11.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.10 28-Apr-2008  martin branches: 1.10.34; 1.10.44; 1.10.50;
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 14-Aug-2003  christos remove the args from the macro.
 1.7 08-Aug-2003  christos - GC all the setup_stack functions
- add one for linux/i386
 1.6 13-Nov-2002  jdolecek branches: 1.6.6;
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 13-Jul-2002  scw m68k syscall rototill:

- Switch all m68k-based ports over to __HAVE_SYSCALL_INTERN.
- Add systrace glue.
- Define struct mdproc in <m68k/proc.h> instead of <machine/proc.h>.
(They were all defined exactly the same anyway, other than a couple
of the MDP_* flags.)
 1.4 17-Jan-2002  bjh21 branches: 1.4.8;
On platforms that don't __HAVE_SYSCALL_INTERN, define LINUX_SYSCALL_FUNCTION
to be the value of emul_linux.e_syscall that we want. This allows it to differ
between machines, so I can have a separate linux_syscall() on arm.
 1.3 13-Dec-2000  itohy branches: 1.3.2; 1.3.4;
sync with i386, so that exec_conf.c compiles again
 1.2 17-Nov-2000  erh Make the linux compatibilty code work on the alpha. (horay!) (at last!)
Two main changes:
Create a linux_elf64_copyargs that uses the linux specific LinuxAuxInfo
structure. This is only used on the alpha. i386 and m68k use the
standard elf copyargs function.

Since linux's approach to binary compatibilty is to look as much
like osf1 as possible, add all the osf1 syscalls that we have
implemented to the linux syscall table. This includes get/setsysinfo,
ported from FreeBSD.

In order for linux compat to work you must have COMPAT_OSF1, COMPAT_43,
COMPAT_09, COMPAT_12 and COMPAT_13 on also.
 1.1 15-Dec-1998  itohy branches: 1.1.8;
Initial support of Linux/m68k compatibility.
 1.1.8.2 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.1.8.1 22-Nov-2000  bouyer Sync with HEAD.
 1.3.4.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.4.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.3 11-Dec-2002  thorpej Sync with HEAD.
 1.3.2.2 01-Aug-2002  nathanw Catch up to -current.
 1.3.2.1 28-Feb-2002  nathanw Catch up to -current.
 1.4.8.1 15-Jul-2002  gehenna catch up with -current.
 1.6.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.6.1 03-Aug-2004  skrll 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.1 02-Jun-2008  mjf Sync with HEAD.
 1.10.50.1 18-May-2014  rmind sync with head
 1.10.44.2 03-Dec-2017  jdolecek update from HEAD
 1.10.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.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.11.14.1 21-Apr-2017  bouyer Sync with HEAD
 1.11.10.1 20-Mar-2017  pgoyette Sync with HEAD
 1.11.6.1 28-Aug-2017  skrll Sync with HEAD
 1.5 25-Jun-2014  njoly Add a few missing open(2) flags (LINUX_O_*). Fix alpha wrong values.
 1.4 02-Nov-2010  chs branches: 1.4.18; 1.4.32;
define LINUX_O_CLOEXEC.
sort definitions by value.
consistently use hex instead of octal for the values.
 1.3 28-Apr-2008  martin branches: 1.3.20; 1.3.22;
Remove clause 3 and 4 from TNF licenses
 1.2 30-Sep-2001  manu branches: 1.2.116; 1.2.118; 1.2.120;
Added initial support for fcntl64 system call (file locking is not
implemented)
 1.1 15-Dec-1998  itohy branches: 1.1.20; 1.1.22; 1.1.24;
Initial support of Linux/m68k compatibility.
 1.1.24.1 01-Oct-2001  fvdl Catch up with -current.
 1.1.22.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.20.1 08-Oct-2001  nathanw Catch up to -current.
 1.2.120.1 16-May-2008  yamt sync with head.
 1.2.118.1 18-May-2008  yamt sync with head.
 1.2.116.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.22.1 05-Mar-2011  rmind sync with head
 1.3.20.1 06-Nov-2010  uebayasi Sync with HEAD.
 1.4.32.1 10-Aug-2014  tls Rebase.
 1.4.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 10-Dec-2000  fvdl branches: 1.2.122; 1.2.124; 1.2.126;
The gist of the Linux _IOX definitions was the same for all platforms;
move it to the MI linux_ioctl.h and only leave the MD bits in the MD
header files.
 1.1 15-Dec-1998  itohy branches: 1.1.8; 1.1.18;
Initial support of Linux/m68k compatibility.
 1.1.18.1 30-Mar-2001  he Pull up revision 1.2 (requested by fvdl):
Add some required Linux emulation bits to support the Linux
version of VMware.
 1.1.8.1 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.2.126.1 16-May-2008  yamt sync with head.
 1.2.124.1 18-May-2008  yamt sync with head.
 1.2.122.1 02-Jun-2008  mjf Sync with HEAD.
 1.45 01-Oct-2024  riastradh sys/compat/linux/arch: Nix trailing whitespace.

No functional change intended.
 1.44 07-Aug-2022  tsutsui branches: 1.44.10;
Remove extra whitespaces added by an ancient stupid script.
 1.43 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.42 07-Jul-2010  chs branches: 1.42.52; 1.42.64;
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.41 15-Apr-2009  elad branches: 1.41.2; 1.41.4;
Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive
alternatives.

Discussed on tech-kern:

http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html

Input from ad@, christos@, dyoung@, tsutsui@.

Okay ad@.
 1.40 18-Mar-2009  cegger bcopy -> memcpy
 1.39 18-Mar-2009  cegger bzero -> memset
 1.38 28-Apr-2008  martin branches: 1.38.2; 1.38.8; 1.38.14;
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 20-Dec-2007  dsl branches: 1.36.6; 1.36.8;
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.35 08-Dec-2007  dsl branches: 1.35.4;
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
 1.34 04-Dec-2007  dsl Remove all the __P
 1.33 19-Oct-2007  ad branches: 1.33.2; 1.33.4;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.32 04-Mar-2007  tsutsui branches: 1.32.2; 1.32.14; 1.32.16; 1.32.20;
Use (char *) on pointer arith.
 1.31 04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.30 09-Feb-2007  ad branches: 1.30.2;
Merge newlock2 to head.
 1.29 04-Jan-2007  elad Consistent usage of KAUTH_GENERIC_ISSUSER.
 1.28 23-Jul-2006  ad branches: 1.28.4;
Use the LWP cached credentials where sane.
 1.27 15-May-2006  yamt include kauth.h for kauth_cred_geteuid, etc.
 1.26 14-May-2006  elad integrate kauth.
 1.25 24-Dec-2005  perry branches: 1.25.4; 1.25.6; 1.25.8; 1.25.10; 1.25.12;
bare asm -> __asm
 1.24 11-Dec-2005  christos 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 28-Sep-2003  cl fix fmovem argument reference
 1.21 28-Sep-2003  cl catch up with const sigset_t
 1.20 25-Sep-2003  christos constify sendsig/trapsignal
 1.19 22-Sep-2003  cl SA_SIGINFO support for m68k (emul linux)
 1.18 02-Aug-2003  jdolecek replace fuword() with copyin(), and suword() with copyout()
 1.17 29-Jun-2003  fvdl branches: 1.17.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.16 29-Jun-2003  thorpej Adapt to ktrace/lwp changes.
 1.15 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.14 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.13 08-Apr-2002  christos branches: 1.13.2;
PR/16231: Ben Harris: m68k does not compile.
 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 19-Feb-2002  is fix some swapped parameters
 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 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.8 04-Feb-2001  jmc branches: 1.8.2; 1.8.4;
Back out last change. m68k.h is now in cpu.h (which got updated in between
my noticing this problem here on a sun3).
 1.7 04-Feb-2001  jmc Add m68k/m68k.h to pickup fputype definitions.
 1.6 22-Dec-2000  jdolecek split off thread specific stuff from struct sigacts to struct sigctx, leaving
only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx

This addresses kern/10981 by Matthew Orgass.
 1.5 16-Dec-2000  scw Sprinkle some register prefixes in the asm() statements.
 1.4 19-Apr-1999  kleink branches: 1.4.2;
Move linux_reenter_syscall() to a common location and rename it to
reenter_syscall() - it's going to be shared with COMPAT_SVR4 and soon be
used by native code.
 1.3 02-Mar-1999  itohy branches: 1.3.4;
cachectl -> cachectl1
 1.2 19-Dec-1998  drochner get "opt_compat_xxx.h" includes out of <sys/signal.h>
 1.1 15-Dec-1998  itohy Initial support of Linux/m68k compatibility.
 1.3.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.4.2.1 05-Jan-2001  bouyer Sync with HEAD
 1.8.4.4 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.8.4.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.8.4.2 16-Mar-2002  jdolecek Catch up with -current.
 1.8.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.2.8 01-Aug-2002  nathanw Catch up to -current.
 1.8.2.7 12-Jul-2002  nathanw No longer need to pull in lwp.h; proc.h pulls it in for us.
 1.8.2.6 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.8.2.5 21-Jun-2002  gmcgarry LWPify
 1.8.2.4 29-May-2002  nathanw #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
 1.8.2.3 17-Apr-2002  nathanw Catch up to -current.
 1.8.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.8.2.1 14-Nov-2001  nathanw Catch up to -current.
 1.13.2.1 15-Jul-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 24-Jan-2005  skrll Adapt to branch.
 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.23.2.7 21-Jan-2008  yamt sync with head
 1.23.2.6 07-Dec-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.25.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.25.10.2 10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.25.10.1 08-Mar-2006  elad Adapt to kernel authorization KPI.
 1.25.8.2 11-Aug-2006  yamt sync with head
 1.25.8.1 24-May-2006  yamt sync with head.
 1.25.6.1 01-Jun-2006  kardel Sync with head.
 1.25.4.1 09-Sep-2006  rpaulo sync with head
 1.28.4.4 06-Feb-2007  ad More compat changes.

XXX compat_irix, compat_mach and compat_darwin need work.
 1.28.4.3 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.28.4.2 27-Jan-2007  ad More compat changes.
 1.28.4.1 12-Jan-2007  ad Sync with head.
 1.30.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.32.20.1 25-Oct-2007  bouyer Sync with HEAD.
 1.32.16.2 09-Jan-2008  matt sync with HEAD
 1.32.16.1 06-Nov-2007  matt sync with HEAD
 1.32.14.2 09-Dec-2007  jmcneill Sync with HEAD.
 1.32.14.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.1 23-Oct-2007  ad Sync with head.
 1.33.4.2 26-Dec-2007  ad Sync with head.
 1.33.4.1 08-Dec-2007  ad Sync with head.
 1.33.2.2 27-Dec-2007  mjf Sync with HEAD.
 1.33.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.35.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 04-May-2009  yamt sync with head.
 1.37.2.1 16-May-2008  yamt sync with head.
 1.38.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.38.8.1 28-Apr-2009  skrll Sync with HEAD.
 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.41.4.1 05-Mar-2011  rmind sync with head
 1.41.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.42.64.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.42.52.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.44.10.1 02-Aug-2025  perseant Sync with HEAD
 1.7 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.6 04-Dec-2007  dsl branches: 1.6.12; 1.6.14; 1.6.16;
Remove all the __P
 1.5 11-Nov-2005  chs branches: 1.5.46; 1.5.48; 1.5.54; 1.5.58;
include additional headers that are now needed.
 1.4 13-Jul-2002  scw branches: 1.4.6; 1.4.22;
m68k syscall rototill:

- Switch all m68k-based ports over to __HAVE_SYSCALL_INTERN.
- Add systrace glue.
- Define struct mdproc in <m68k/proc.h> instead of <machine/proc.h>.
(They were all defined exactly the same anyway, other than a couple
of the MDP_* flags.)
 1.3 15-Feb-2002  christos branches: 1.3.8;
- 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.2 19-Apr-1999  kleink branches: 1.2.14; 1.2.16;
Move linux_reenter_syscall() to a common location and rename it to
reenter_syscall() - it's going to be shared with COMPAT_SVR4 and soon be
used by native code.
 1.1 15-Dec-1998  itohy branches: 1.1.4;
Initial support of Linux/m68k compatibility.
 1.1.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.2.16.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.2.16.1 16-Mar-2002  jdolecek Catch up with -current.
 1.2.14.2 01-Aug-2002  nathanw Catch up to -current.
 1.2.14.1 28-Feb-2002  nathanw Catch up to -current.
 1.3.8.1 15-Jul-2002  gehenna catch up with -current.
 1.4.22.2 07-Dec-2007  yamt sync with head
 1.4.22.1 21-Jun-2006  yamt sync with head.
 1.4.6.1 11-Dec-2005  christos Sync with head.
 1.5.58.1 08-Dec-2007  ad Sync with head.
 1.5.54.1 08-Dec-2007  mjf Sync with HEAD.
 1.5.48.1 09-Jan-2008  matt sync with HEAD
 1.5.46.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.6.16.1 16-May-2008  yamt sync with head.
 1.6.14.1 18-May-2008  yamt sync with head.
 1.6.12.1 02-Jun-2008  mjf Sync with HEAD.
 1.5 14-Mar-2015  njoly Support Linux MAP_LOCKED mmap flag.
 1.4 28-Apr-2008  martin branches: 1.4.44; 1.4.64;
Remove clause 3 and 4 from TNF licenses
 1.3 11-Dec-2005  christos branches: 1.3.70; 1.3.72; 1.3.74;
merge ktrace-lwp.
 1.2 28-Aug-2004  jdolecek g/c LINUX_MAP_IGNMASK define - it's not used anywhere
 1.1 15-Dec-1998  itohy branches: 1.1.42;
Initial support of Linux/m68k compatibility.
 1.1.42.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.42.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.42.1 03-Sep-2004  skrll Sync with HEAD
 1.3.74.1 16-May-2008  yamt sync with head.
 1.3.72.1 18-May-2008  yamt sync with head.
 1.3.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.64.1 06-Apr-2015  skrll Sync with HEAD
 1.4.44.1 03-Dec-2017  jdolecek update from HEAD
 1.3 11-Nov-1999  thorpej Add register prefixes.
 1.2 19-Apr-1999  kleink branches: 1.2.2; 1.2.4; 1.2.8;
Move linux_reenter_syscall() to a common location and rename it to
reenter_syscall() - it's going to be shared with COMPAT_SVR4 and soon be
used by native code.
 1.1 15-Dec-1998  itohy branches: 1.1.4;
Initial support of Linux/m68k compatibility.
 1.1.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.2.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.4.1 15-Nov-1999  fvdl Sync with -current
 1.2.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.7 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.6 31-Mar-2002  christos branches: 1.6.108; 1.6.110; 1.6.112;
bring the reverse signal mapping array into linux_signo.c
 1.5 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.4 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.3 18-Jan-2001  jdolecek branches: 1.3.2; 1.3.4;
constify
 1.2 04-Dec-1999  tron Extend signal mapping array to 64 entries like in the i386 emulation.
 1.1 15-Dec-1998  itohy branches: 1.1.8; 1.1.14;
Initial support of Linux/m68k compatibility.
 1.1.14.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.8.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.3.4.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.2 17-Apr-2002  nathanw Catch up to -current.
 1.3.2.1 14-Nov-2001  nathanw Catch up to -current.
 1.6.112.1 16-May-2008  yamt sync with head.
 1.6.110.1 18-May-2008  yamt sync with head.
 1.6.108.1 02-Jun-2008  mjf Sync with HEAD.
 1.6 18-Nov-2011  christos - add sigtimedwait support.
- merge the siginfo population code.
 1.5 23-Nov-2008  njoly branches: 1.5.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.4 28-Apr-2008  martin branches: 1.4.6; 1.4.8;
Remove clause 3 and 4 from TNF licenses
 1.3 08-Apr-2002  christos branches: 1.3.108; 1.3.110; 1.3.112;
PR/16231: Ben Harris: m68k does not compile.
 1.2 04-Apr-2002  christos use lsi_ like all other linux emulations.
 1.1 15-Dec-1998  itohy branches: 1.1.20; 1.1.22;
Initial support of Linux/m68k compatibility.
 1.1.22.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.20.1 17-Apr-2002  nathanw Catch up to -current.
 1.3.112.2 04-May-2009  yamt sync with head.
 1.3.112.1 16-May-2008  yamt sync with head.
 1.3.110.1 18-May-2008  yamt sync with head.
 1.3.108.2 17-Jan-2009  mjf Sync with HEAD.
 1.3.108.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.4.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.5.16.1 17-Apr-2012  yamt sync with head
 1.7 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.6 04-Dec-2007  dsl branches: 1.6.12; 1.6.14; 1.6.16;
Remove all the __P
 1.5 11-Dec-2005  christos branches: 1.5.44; 1.5.46; 1.5.52; 1.5.56;
merge ktrace-lwp.
 1.4 19-Sep-2005  christos MINSIGSTKSZ on linux is different depending on the platform and usually
smaller than ours.
 1.3 26-Nov-2002  christos branches: 1.3.6; 1.3.22;
rename: s/sa_/<compat>sa/g
 1.2 19-Mar-2002  christos - Now that RT-signals fit, fix the array to deliver them. [i386 only].
- jdk-1.4 works perfectly now. :-)
 1.1 15-Dec-1998  itohy branches: 1.1.20; 1.1.22;
Initial support of Linux/m68k compatibility.
 1.1.22.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.20.2 11-Dec-2002  thorpej Sync with HEAD.
 1.1.20.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.22.2 07-Dec-2007  yamt sync with head
 1.3.22.1 21-Jun-2006  yamt sync with head.
 1.3.6.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.56.1 08-Dec-2007  ad Sync with head.
 1.5.52.1 08-Dec-2007  mjf Sync with HEAD.
 1.5.46.1 09-Jan-2008  matt sync with HEAD
 1.5.44.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.6.16.1 16-May-2008  yamt sync with head.
 1.6.14.1 18-May-2008  yamt sync with head.
 1.6.12.1 02-Jun-2008  mjf Sync with HEAD.
 1.5 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.4 28-Apr-2008  martin branches: 1.4.34; 1.4.44; 1.4.50;
Remove clause 3 and 4 from TNF licenses
 1.3 11-Dec-2005  christos branches: 1.3.70; 1.3.72; 1.3.74;
merge ktrace-lwp.
 1.2 26-Jul-2003  jdolecek 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 15-Dec-1998  itohy branches: 1.1.42;
Initial support of Linux/m68k compatibility.
 1.1.42.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.42.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.42.1 03-Aug-2004  skrll Sync with HEAD
 1.3.74.1 16-May-2008  yamt sync with head.
 1.3.72.1 18-May-2008  yamt sync with head.
 1.3.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.50.1 18-May-2014  rmind sync with head
 1.4.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.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.120 28-Sep-2024  christos regen
 1.119 01-Jul-2024  christos regen
 1.118 29-Jun-2024  christos branches: 1.118.2;
regen
 1.117 19-Aug-2023  christos regen
 1.116 29-Jul-2023  christos regen
 1.115 28-Jul-2023  christos regen
 1.114 02-Dec-2021  ryo regen
 1.113 24-Nov-2021  ryo regen
 1.112 20-Sep-2021  thorpej Regen for preadv(2) / pwritev(2).
 1.111 20-Sep-2021  thorpej Regen for eventfd.
 1.110 19-Sep-2021  thorpej Regen for timerfd.
 1.109 19-Sep-2021  thorpej Regen for POSIX timer syscalls.
 1.108 26-Apr-2020  thorpej branches: 1.108.2;
Regen for native futex calls.
 1.107 09-Nov-2019  jdolecek regen
 1.106 10-Aug-2018  pgoyette Regen
 1.105 10-May-2017  riastradh branches: 1.105.8; 1.105.10;
regen
 1.104 03-Feb-2017  christos branches: 1.104.4;
regen
 1.103 03-Feb-2017  martin regen
 1.102 16-Jan-2017  christos regen all
 1.101 13-Jan-2017  christos branches: 1.101.2;
regen
 1.100 02-Jan-2017  martin Regen (something apparently went wrong in previous)
 1.99 02-Jan-2017  manu Regen
 1.98 24-Jul-2016  njoly Regen for readlink/readlinkat signatures.
 1.97 24-Sep-2015  christos branches: 1.97.2;
regen
 1.96 07-Mar-2015  christos regen
 1.95 22-Nov-2014  njoly branches: 1.95.2;
Regen for ppoll signature fix
 1.94 31-May-2014  njoly branches: 1.94.2;
Regen for munmap(2) signature.
 1.93 29-May-2014  njoly Regen for utimes(2) change.
 1.92 20-May-2014  njoly Regen for getgroups/setgroups update.
 1.91 17-May-2014  njoly Regen for fadvise64 offset types changes.
 1.90 06-May-2014  njoly Regen for mknod device argument type change.
 1.89 04-May-2014  njoly Regen for pread/pwrite 64bit offset argument.
 1.88 08-Apr-2014  njoly Regen.
 1.87 15-Feb-2014  njoly branches: 1.87.2;
Regen.
 1.86 24-Dec-2013  njoly Regen for fcntl64().
 1.85 08-Dec-2013  njoly Regen.
 1.84 19-Nov-2013  chs regen
 1.83 07-Nov-2013  njoly Regen for dup/dup2/dup3 argument types fix.
 1.82 24-Sep-2013  njoly Regen for utimensat(2).
 1.81 08-Apr-2013  pooka branches: 1.81.4;
regen for utimes
 1.80 19-Sep-2012  pooka regen for ppoll (and, apparently, SYCALL_ARG_PTR)
 1.79 18-Nov-2011  christos branches: 1.79.10;
- add sigtimedwait support.
- merge the siginfo population code.
 1.78 30-May-2011  alnsn branches: 1.78.4;
Regenerate files to pick up correct RCS Ids. Suggested by Chris Badura.
 1.77 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.76 15-Apr-2011  he Regenerate these files after adding pipe2() and dup3().
 1.75 07-Jul-2010  chs branches: 1.75.2;
regen
 1.74 14-Dec-2009  matt branches: 1.74.2; 1.74.4;
Regen (new makesyscalls.sh)
 1.73 24-Nov-2009  njoly Regen for personality(2) update.
 1.72 08-Jun-2009  njoly Regen for rt_queueinfo(2) update.
 1.71 17-Jan-2009  njoly branches: 1.71.2;
Regen for wait4 update.
 1.70 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.69 11-Jan-2009  tsutsui Regen from syscalls.master rev 1.64:
> Update for compat_50 stuff. (compile test only)
 1.68 12-Nov-2008  njoly Regen for nanosleep(2) fix.
 1.67 18-Jun-2008  tsutsui branches: 1.67.2; 1.67.4; 1.67.6;
Regen from syscalls.master rev 1.62:
> Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
 1.66 23-Apr-2008  ad branches: 1.66.2; 1.66.4; 1.66.6;
Regen.
 1.65 04-Apr-2008  njoly branches: 1.65.2;
Regen for linux_sys_msync removal.
 1.64 15-Jan-2008  njoly branches: 1.64.6;
Regen.
 1.63 24-Dec-2007  njoly Regen for linux_sys_getpgid removal.
 1.62 21-Dec-2007  njoly Regen for getfsuid/setfsgid syscall exchange.
 1.61 20-Dec-2007  dsl regen
 1.60 16-Nov-2007  njoly branches: 1.60.2; 1.60.6;
Regen, for syscalls cleanup.
 1.59 04-Mar-2007  christos branches: 1.59.14; 1.59.16; 1.59.20; 1.59.22;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.58 01-Sep-2006  matt branches: 1.58.8;
Regen.
 1.57 30-Aug-2006  matt Regen
 1.56 13-Jun-2006  he Regenerate after fixing the getpriority syscall definition.
 1.55 10-Jun-2006  christos regen
 1.54 11-Dec-2005  christos branches: 1.54.4; 1.54.8; 1.54.14;
merge ktrace-lwp.
 1.53 18-Oct-2005  joerg Regen.
 1.52 23-May-2005  jmc branches: 1.52.2;
Regen
 1.51 16-May-2005  fvdl Regen.
 1.50 26-Feb-2005  perry regen
 1.49 01-Aug-2004  jdolecek branches: 1.49.4; 1.49.6;
regen - sync syscall lists with Linux kernel 2.6.7
 1.48 10-Aug-2003  jdolecek regen - added wrapper for Linux ftruncate64()
 1.47 29-Jun-2003  thorpej branches: 1.47.2;
Regen: adapt to linux mmap2 changes.
 1.46 23-Jun-2003  christos Regen.
 1.45 18-Jan-2003  thorpej Regen for correct RCS ID.
 1.44 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.43 01-Nov-2002  jdolecek regen: nsysent set to 256
 1.42 12-May-2002  jdolecek branches: 1.42.4;
regen
 1.41 10-Apr-2002  christos regen
 1.40 22-Mar-2002  christos regen
 1.39 17-Feb-2002  christos regen
 1.38 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.37 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.36 30-May-2001  mrg branches: 1.36.2;
use _KERNEL_OPT.
 1.35 13-May-2001  manu Improved the accuracy of gettimeofday/settimeofday: Linux stores a srtuct
timezone in the kernel. We now keep track of it for emulated processes.
Tested for powerpc and i386. Untested on m68k, but it should be ok
Alpha has a particular implementation (osf1_sys_gettimeofday), and it has
therefore not been touched.
 1.34 30-Mar-2001  jdolecek regen - use linux_sys_nosys() instead sys_nosys()
 1.33 30-Mar-2001  jdolecek regen
 1.32 30-Mar-2001  jdolecek regen
 1.31 27-Jan-2001  thorpej branches: 1.31.2;
Regen; getpid(2) is MP-safe.
 1.30 27-Jan-2001  thorpej Regen; add sy_flags.
 1.29 29-Dec-2000  fvdl Regen.
 1.28 27-Dec-2000  fvdl Regen.
 1.27 26-Dec-2000  itohy Regen.
 1.26 18-Dec-2000  fvdl Regen.
 1.25 14-Dec-2000  jdolecek regen
 1.24 12-Dec-2000  jdolecek regen
 1.23 12-Dec-2000  jdolecek regen
 1.22 09-Dec-2000  jdolecek regen
 1.21 09-Dec-2000  mycroft Regen.
 1.20 02-Dec-2000  jdolecek regen after addition of linux_sys_swapoff()
 1.19 01-Dec-2000  jdolecek regen
 1.18 01-Nov-2000  jdolecek regen
 1.17 31-Aug-2000  itohy Regen.
 1.16 18-Aug-2000  cgd update for changed makesyscalls.master
 1.15 18-Aug-2000  cgd update for new makesyscalls.sh, and also for correct ids for changed
syscalls.master files. (you need to regenerate after checking in
syscalls.master to get the correct ids.)
 1.14 18-Mar-2000  erh branches: 1.14.4;
Regen.
 1.13 03-Feb-2000  abs regen
 1.12 16-Dec-1999  tron Regen.
 1.11 05-Dec-1999  tron Regen.
 1.10 04-Dec-1999  tron Regen.
 1.9 04-Oct-1999  tron branches: 1.9.2; 1.9.8;
Regen from "syscalls.master".
 1.8 16-Aug-1999  tron Regen.
 1.7 14-May-1999  thorpej Regen.
 1.6 13-May-1999  thorpej Regen.
 1.5 30-Mar-1999  tron branches: 1.5.4;
Regen.
 1.4 27-Mar-1999  tron Regen.
 1.3 23-Mar-1999  thorpej Regen; pread(2) and pwrite(2).
 1.2 10-Feb-1999  itohy Regen.
 1.1 15-Dec-1998  itohy Generated from syscalls.master.
 1.5.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.9.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.2.7 21-Apr-2001  bouyer Sync with HEAD
 1.9.2.6 11-Feb-2001  bouyer Sync with HEAD.
 1.9.2.5 05-Jan-2001  bouyer Sync with HEAD
 1.9.2.4 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.9.2.3 08-Dec-2000  bouyer Sync with HEAD.
 1.9.2.2 22-Nov-2000  bouyer Sync with HEAD.
 1.9.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.14.4.2 01-May-2001  he Pull up regenerated files (requested by jdolecek):
Make it possible to use a different function for unimplemented
syscalls than sys_nosys(), so that the Linux emulation can avoid
posting SIGSYS and instead just return ENOSYS.
 1.14.4.1 30-Mar-2001  he Pull up regenerated files (requested by fvdl):
Add some required Linux emulation bits to support the Linux
version of VMware.
 1.31.2.9 11-Nov-2002  nathanw Catch up to -current
 1.31.2.8 20-Jun-2002  nathanw Catch up to -current.
 1.31.2.7 29-May-2002  nathanw Regen.
 1.31.2.6 17-Apr-2002  nathanw Catch up to -current.
 1.31.2.5 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.31.2.4 28-Feb-2002  nathanw Catch up to -current.
 1.31.2.3 14-Nov-2001  nathanw Catch up to -current.
 1.31.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.31.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.36.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.36.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.36.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.42.4.4 27-May-2004  tron Regen for ticket #1701.
 1.42.4.3 11-May-2004  tron Regen for ticket 1686.
 1.42.4.2 20-Nov-2003  jmc Regen after fix in syscalls.master from ticket #1427.
 1.42.4.1 22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

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

Hi Perry!
 1.47.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.47.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.47.2.1 03-Aug-2004  skrll Sync with HEAD
 1.49.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.49.4.1 29-Apr-2005  kent sync with -current
 1.52.2.5 21-Jan-2008  yamt sync with head
 1.52.2.4 07-Dec-2007  yamt sync with head
 1.52.2.3 03-Sep-2007  yamt sync with head.
 1.52.2.2 30-Dec-2006  yamt sync with head.
 1.52.2.1 21-Jun-2006  yamt sync with head.
 1.54.14.1 19-Jun-2006  chap Sync with head.
 1.54.8.2 03-Sep-2006  yamt sync with head.
 1.54.8.1 26-Jun-2006  yamt sync with head.
 1.54.4.1 09-Sep-2006  rpaulo sync with head
 1.58.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.59.22.3 18-Feb-2008  mjf Sync with HEAD.
 1.59.22.2 27-Dec-2007  mjf Sync with HEAD.
 1.59.22.1 19-Nov-2007  mjf Sync with HEAD.
 1.59.20.1 18-Nov-2007  bouyer Sync with HEAD
 1.59.16.2 23-Mar-2008  matt sync with HEAD
 1.59.16.1 09-Jan-2008  matt sync with HEAD
 1.59.14.1 21-Nov-2007  joerg Sync with HEAD.
 1.60.6.2 19-Jan-2008  bouyer Sync with HEAD
 1.60.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.60.2.1 26-Dec-2007  ad Sync with head.
 1.64.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.64.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.64.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.65.2.1 18-May-2008  yamt sync with head.
 1.66.6.1 18-Jun-2008  simonb Sync with head.
 1.66.4.2 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.66.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.66.2.4 11-Aug-2010  yamt sync with head.
 1.66.2.3 11-Mar-2010  yamt sync with head
 1.66.2.2 20-Jun-2009  yamt sync with head
 1.66.2.1 04-May-2009  yamt sync with head.
 1.67.6.1 20-Nov-2008  snj Regen for ticket 81.
 1.67.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.67.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.71.2.1 23-Jul-2009  jym Sync with HEAD.
 1.74.4.3 31-May-2011  rmind sync with head
 1.74.4.2 21-Apr-2011  rmind sync with head
 1.74.4.1 05-Mar-2011  rmind sync with head
 1.74.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.75.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.78.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.78.4.2 30-Oct-2012  yamt sync with head
 1.78.4.1 17-Apr-2012  yamt sync with head
 1.79.10.4 03-Dec-2017  jdolecek update from HEAD
 1.79.10.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.79.10.2 23-Jun-2013  tls resync from head
 1.79.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.81.4.1 18-May-2014  rmind sync with head
 1.87.2.1 10-Aug-2014  tls Rebase.
 1.94.2.1 17-Apr-2017  snj regen for ticket 1354
 1.95.2.3 05-Feb-2017  skrll Sync with HEAD
 1.95.2.2 05-Oct-2016  skrll Sync with HEAD
 1.95.2.1 06-Apr-2015  skrll Sync with HEAD
 1.97.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.97.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.97.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.101.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.104.4.1 11-May-2017  pgoyette Sync with HEAD
 1.105.10.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.105.10.1 10-Jun-2019  christos Sync with HEAD
 1.105.8.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.108.2.2 17-Dec-2020  thorpej Regen for preadv(2) and pwritev(2).
 1.108.2.1 15-Dec-2020  thorpej Regen for eventfd, timerfd, POSIX timers.
 1.118.2.1 02-Aug-2025  perseant Sync with HEAD
 1.119 28-Sep-2024  christos regen
 1.118 01-Jul-2024  christos regen
 1.117 29-Jun-2024  christos branches: 1.117.2;
regen
 1.116 19-Aug-2023  christos regen
 1.115 29-Jul-2023  christos regen
 1.114 28-Jul-2023  christos regen
 1.113 02-Dec-2021  ryo regen
 1.112 24-Nov-2021  ryo regen
 1.111 20-Sep-2021  thorpej Regen for preadv(2) / pwritev(2).
 1.110 20-Sep-2021  thorpej Regen for eventfd.
 1.109 19-Sep-2021  thorpej Regen for timerfd.
 1.108 19-Sep-2021  thorpej Regen for POSIX timer syscalls.
 1.107 26-Apr-2020  thorpej branches: 1.107.2;
Regen for native futex calls.
 1.106 09-Nov-2019  jdolecek regen
 1.105 10-Aug-2018  pgoyette Regen
 1.104 10-May-2017  riastradh branches: 1.104.8; 1.104.10;
regen
 1.103 03-Feb-2017  christos branches: 1.103.4;
regen
 1.102 03-Feb-2017  martin regen
 1.101 16-Jan-2017  christos regen all
 1.100 13-Jan-2017  christos branches: 1.100.2;
regen
 1.99 02-Jan-2017  martin Regen (something apparently went wrong in previous)
 1.98 02-Jan-2017  manu Regen
 1.97 24-Jul-2016  njoly Regen for readlink/readlinkat signatures.
 1.96 24-Sep-2015  christos branches: 1.96.2;
regen
 1.95 07-Mar-2015  christos regen
 1.94 22-Nov-2014  njoly branches: 1.94.2;
Regen for ppoll signature fix
 1.93 31-May-2014  njoly branches: 1.93.2;
Regen for munmap(2) signature.
 1.92 29-May-2014  njoly Regen for utimes(2) change.
 1.91 20-May-2014  njoly Regen for getgroups/setgroups update.
 1.90 17-May-2014  njoly Regen for fadvise64 offset types changes.
 1.89 06-May-2014  njoly Regen for mknod device argument type change.
 1.88 04-May-2014  njoly Regen for pread/pwrite 64bit offset argument.
 1.87 08-Apr-2014  njoly Regen.
 1.86 15-Feb-2014  njoly branches: 1.86.2;
Regen.
 1.85 24-Dec-2013  njoly Regen for fcntl64().
 1.84 08-Dec-2013  njoly Regen.
 1.83 19-Nov-2013  chs regen
 1.82 07-Nov-2013  njoly Regen for dup/dup2/dup3 argument types fix.
 1.81 24-Sep-2013  njoly Regen for utimensat(2).
 1.80 08-Apr-2013  pooka branches: 1.80.4;
regen for utimes
 1.79 19-Sep-2012  pooka regen for ppoll (and, apparently, SYCALL_ARG_PTR)
 1.78 18-Nov-2011  christos branches: 1.78.10;
- add sigtimedwait support.
- merge the siginfo population code.
 1.77 30-May-2011  alnsn branches: 1.77.4;
Regenerate files to pick up correct RCS Ids. Suggested by Chris Badura.
 1.76 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.75 15-Apr-2011  he Regenerate these files after adding pipe2() and dup3().
 1.74 07-Jul-2010  chs branches: 1.74.2;
regen
 1.73 14-Dec-2009  matt branches: 1.73.2; 1.73.4;
Regen (new makesyscalls.sh)
 1.72 24-Nov-2009  njoly Regen for personality(2) update.
 1.71 08-Jun-2009  njoly Regen for rt_queueinfo(2) update.
 1.70 17-Jan-2009  njoly branches: 1.70.2;
Regen for wait4 update.
 1.69 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.68 11-Jan-2009  tsutsui Regen from syscalls.master rev 1.64:
> Update for compat_50 stuff. (compile test only)
 1.67 12-Nov-2008  njoly Regen for nanosleep(2) fix.
 1.66 18-Jun-2008  tsutsui branches: 1.66.2; 1.66.4; 1.66.6;
Regen from syscalls.master rev 1.62:
> Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
 1.65 23-Apr-2008  ad branches: 1.65.2; 1.65.4; 1.65.6;
Regen.
 1.64 04-Apr-2008  njoly branches: 1.64.2;
Regen for linux_sys_msync removal.
 1.63 15-Jan-2008  njoly branches: 1.63.6;
Regen.
 1.62 24-Dec-2007  njoly Regen for linux_sys_getpgid removal.
 1.61 21-Dec-2007  njoly Regen for getfsuid/setfsgid syscall exchange.
 1.60 20-Dec-2007  dsl regen
 1.59 16-Nov-2007  njoly branches: 1.59.2; 1.59.6;
Regen, for syscalls cleanup.
 1.58 04-Mar-2007  christos branches: 1.58.14; 1.58.16; 1.58.20; 1.58.22;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.57 01-Sep-2006  matt branches: 1.57.8;
Regen.
 1.56 30-Aug-2006  matt Regen
 1.55 13-Jun-2006  he Regenerate after fixing the getpriority syscall definition.
 1.54 10-Jun-2006  christos regen
 1.53 11-Dec-2005  christos branches: 1.53.4; 1.53.8; 1.53.14;
merge ktrace-lwp.
 1.52 18-Oct-2005  joerg Regen.
 1.51 23-May-2005  jmc branches: 1.51.2;
Regen
 1.50 16-May-2005  fvdl Regen.
 1.49 26-Feb-2005  perry regen
 1.48 01-Aug-2004  jdolecek branches: 1.48.4; 1.48.6;
regen - sync syscall lists with Linux kernel 2.6.7
 1.47 10-Aug-2003  jdolecek regen - added wrapper for Linux ftruncate64()
 1.46 29-Jun-2003  thorpej branches: 1.46.2;
Regen: adapt to linux mmap2 changes.
 1.45 23-Jun-2003  christos Regen.
 1.44 18-Jan-2003  thorpej Regen for correct RCS ID.
 1.43 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.42 12-May-2002  jdolecek branches: 1.42.4;
regen
 1.41 10-Apr-2002  christos regen
 1.40 22-Mar-2002  christos regen
 1.39 17-Feb-2002  christos regen
 1.38 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.37 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.36 30-May-2001  mrg branches: 1.36.2;
use _KERNEL_OPT.
 1.35 13-May-2001  manu Improved the accuracy of gettimeofday/settimeofday: Linux stores a srtuct
timezone in the kernel. We now keep track of it for emulated processes.
Tested for powerpc and i386. Untested on m68k, but it should be ok
Alpha has a particular implementation (osf1_sys_gettimeofday), and it has
therefore not been touched.
 1.34 30-Mar-2001  jdolecek regen - use linux_sys_nosys() instead sys_nosys()
 1.33 30-Mar-2001  jdolecek regen
 1.32 30-Mar-2001  jdolecek regen
 1.31 27-Jan-2001  thorpej branches: 1.31.2;
Regen; getpid(2) is MP-safe.
 1.30 27-Jan-2001  thorpej Regen; add sy_flags.
 1.29 29-Dec-2000  fvdl Regen.
 1.28 27-Dec-2000  fvdl Regen.
 1.27 26-Dec-2000  itohy Regen.
 1.26 18-Dec-2000  fvdl Regen.
 1.25 14-Dec-2000  jdolecek regen
 1.24 12-Dec-2000  jdolecek regen
 1.23 12-Dec-2000  jdolecek regen
 1.22 09-Dec-2000  jdolecek regen
 1.21 09-Dec-2000  mycroft Regen.
 1.20 02-Dec-2000  jdolecek regen after addition of linux_sys_swapoff()
 1.19 01-Dec-2000  jdolecek regen
 1.18 01-Nov-2000  jdolecek regen
 1.17 31-Aug-2000  itohy Regen.
 1.16 18-Aug-2000  cgd update for changed makesyscalls.master
 1.15 18-Aug-2000  cgd update for new makesyscalls.sh, and also for correct ids for changed
syscalls.master files. (you need to regenerate after checking in
syscalls.master to get the correct ids.)
 1.14 18-Mar-2000  erh branches: 1.14.4;
Regen.
 1.13 03-Feb-2000  abs regen
 1.12 16-Dec-1999  tron Regen.
 1.11 05-Dec-1999  tron Regen.
 1.10 04-Dec-1999  tron Regen.
 1.9 04-Oct-1999  tron branches: 1.9.2; 1.9.8;
Regen from "syscalls.master".
 1.8 16-Aug-1999  tron Regen.
 1.7 14-May-1999  thorpej Regen.
 1.6 13-May-1999  thorpej Regen.
 1.5 30-Mar-1999  tron branches: 1.5.4;
Regen.
 1.4 27-Mar-1999  tron Regen.
 1.3 23-Mar-1999  thorpej Regen; pread(2) and pwrite(2).
 1.2 10-Feb-1999  itohy Regen.
 1.1 15-Dec-1998  itohy Generated from syscalls.master.
 1.5.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.9.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.2.7 21-Apr-2001  bouyer Sync with HEAD
 1.9.2.6 11-Feb-2001  bouyer Sync with HEAD.
 1.9.2.5 05-Jan-2001  bouyer Sync with HEAD
 1.9.2.4 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.9.2.3 08-Dec-2000  bouyer Sync with HEAD.
 1.9.2.2 22-Nov-2000  bouyer Sync with HEAD.
 1.9.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.14.4.2 01-May-2001  he Pull up regenerated files (requested by jdolecek):
Make it possible to use a different function for unimplemented
syscalls than sys_nosys(), so that the Linux emulation can avoid
posting SIGSYS and instead just return ENOSYS.
 1.14.4.1 30-Mar-2001  he Pull up regenerated files (requested by fvdl):
Add some required Linux emulation bits to support the Linux
version of VMware.
 1.31.2.7 29-May-2002  nathanw Regen.
 1.31.2.6 17-Apr-2002  nathanw Catch up to -current.
 1.31.2.5 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.31.2.4 28-Feb-2002  nathanw Catch up to -current.
 1.31.2.3 14-Nov-2001  nathanw Catch up to -current.
 1.31.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.31.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.36.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.36.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.36.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.42.4.4 27-May-2004  tron Regen for ticket #1701.
 1.42.4.3 11-May-2004  tron Regen for ticket 1686.
 1.42.4.2 20-Nov-2003  jmc Regen after fix in syscalls.master from ticket #1427.
 1.42.4.1 22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

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

Hi Perry!
 1.46.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.46.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.46.2.1 03-Aug-2004  skrll Sync with HEAD
 1.48.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.48.4.1 29-Apr-2005  kent sync with -current
 1.51.2.5 21-Jan-2008  yamt sync with head
 1.51.2.4 07-Dec-2007  yamt sync with head
 1.51.2.3 03-Sep-2007  yamt sync with head.
 1.51.2.2 30-Dec-2006  yamt sync with head.
 1.51.2.1 21-Jun-2006  yamt sync with head.
 1.53.14.1 19-Jun-2006  chap Sync with head.
 1.53.8.2 03-Sep-2006  yamt sync with head.
 1.53.8.1 26-Jun-2006  yamt sync with head.
 1.53.4.1 09-Sep-2006  rpaulo sync with head
 1.57.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.58.22.3 18-Feb-2008  mjf Sync with HEAD.
 1.58.22.2 27-Dec-2007  mjf Sync with HEAD.
 1.58.22.1 19-Nov-2007  mjf Sync with HEAD.
 1.58.20.1 18-Nov-2007  bouyer Sync with HEAD
 1.58.16.2 23-Mar-2008  matt sync with HEAD
 1.58.16.1 09-Jan-2008  matt sync with HEAD
 1.58.14.1 21-Nov-2007  joerg Sync with HEAD.
 1.59.6.2 19-Jan-2008  bouyer Sync with HEAD
 1.59.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.59.2.1 26-Dec-2007  ad Sync with head.
 1.63.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.63.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.63.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.64.2.1 18-May-2008  yamt sync with head.
 1.65.6.1 18-Jun-2008  simonb Sync with head.
 1.65.4.2 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.65.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.65.2.4 11-Aug-2010  yamt sync with head.
 1.65.2.3 11-Mar-2010  yamt sync with head
 1.65.2.2 20-Jun-2009  yamt sync with head
 1.65.2.1 04-May-2009  yamt sync with head.
 1.66.6.1 20-Nov-2008  snj Regen for ticket 81.
 1.66.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.66.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.70.2.1 23-Jul-2009  jym Sync with HEAD.
 1.73.4.3 31-May-2011  rmind sync with head
 1.73.4.2 21-Apr-2011  rmind sync with head
 1.73.4.1 05-Mar-2011  rmind sync with head
 1.73.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.74.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.77.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.77.4.2 30-Oct-2012  yamt sync with head
 1.77.4.1 17-Apr-2012  yamt sync with head
 1.78.10.4 03-Dec-2017  jdolecek update from HEAD
 1.78.10.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.78.10.2 23-Jun-2013  tls resync from head
 1.78.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.80.4.1 18-May-2014  rmind sync with head
 1.86.2.1 10-Aug-2014  tls Rebase.
 1.93.2.1 17-Apr-2017  snj regen for ticket 1354
 1.94.2.4 28-Aug-2017  skrll Sync with HEAD
 1.94.2.3 05-Feb-2017  skrll Sync with HEAD
 1.94.2.2 05-Oct-2016  skrll Sync with HEAD
 1.94.2.1 06-Apr-2015  skrll Sync with HEAD
 1.96.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.96.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.96.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.100.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.103.4.1 11-May-2017  pgoyette Sync with HEAD
 1.104.10.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.104.10.1 10-Jun-2019  christos Sync with HEAD
 1.104.8.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.107.2.2 17-Dec-2020  thorpej Regen for preadv(2) and pwritev(2).
 1.107.2.1 15-Dec-2020  thorpej Regen for eventfd, timerfd, POSIX timers.
 1.117.2.1 02-Aug-2025  perseant Sync with HEAD
 1.120 28-Sep-2024  christos regen
 1.119 01-Jul-2024  christos regen
 1.118 29-Jun-2024  christos branches: 1.118.2;
regen
 1.117 19-Aug-2023  christos regen
 1.116 29-Jul-2023  christos regen
 1.115 28-Jul-2023  christos regen
 1.114 02-Dec-2021  ryo regen
 1.113 24-Nov-2021  ryo regen
 1.112 20-Sep-2021  thorpej Regen for preadv(2) / pwritev(2).
 1.111 20-Sep-2021  thorpej Regen for eventfd.
 1.110 19-Sep-2021  thorpej Regen for timerfd.
 1.109 19-Sep-2021  thorpej Regen for POSIX timer syscalls.
 1.108 26-Apr-2020  thorpej branches: 1.108.2;
Regen for native futex calls.
 1.107 09-Nov-2019  jdolecek regen
 1.106 10-Aug-2018  pgoyette Regen
 1.105 10-May-2017  riastradh branches: 1.105.8; 1.105.10;
regen
 1.104 03-Feb-2017  christos branches: 1.104.4;
regen
 1.103 03-Feb-2017  martin regen
 1.102 16-Jan-2017  christos regen all
 1.101 13-Jan-2017  christos branches: 1.101.2;
regen
 1.100 02-Jan-2017  martin Regen (something apparently went wrong in previous)
 1.99 02-Jan-2017  manu Regen
 1.98 24-Jul-2016  njoly Regen for readlink/readlinkat signatures.
 1.97 24-Sep-2015  christos branches: 1.97.2;
regen
 1.96 07-Mar-2015  christos regen
 1.95 22-Nov-2014  njoly branches: 1.95.2;
Regen for ppoll signature fix
 1.94 31-May-2014  njoly branches: 1.94.2;
Regen for munmap(2) signature.
 1.93 29-May-2014  njoly Regen for utimes(2) change.
 1.92 20-May-2014  njoly Regen for getgroups/setgroups update.
 1.91 17-May-2014  njoly Regen for fadvise64 offset types changes.
 1.90 06-May-2014  njoly Regen for mknod device argument type change.
 1.89 04-May-2014  njoly Regen for pread/pwrite 64bit offset argument.
 1.88 08-Apr-2014  njoly Regen.
 1.87 15-Feb-2014  njoly branches: 1.87.2;
Regen.
 1.86 24-Dec-2013  njoly Regen for fcntl64().
 1.85 08-Dec-2013  njoly Regen.
 1.84 19-Nov-2013  chs regen
 1.83 07-Nov-2013  njoly Regen for dup/dup2/dup3 argument types fix.
 1.82 24-Sep-2013  njoly Regen for utimensat(2).
 1.81 08-Apr-2013  pooka branches: 1.81.4;
regen for utimes
 1.80 19-Sep-2012  pooka regen for ppoll (and, apparently, SYCALL_ARG_PTR)
 1.79 18-Nov-2011  christos branches: 1.79.10;
- add sigtimedwait support.
- merge the siginfo population code.
 1.78 30-May-2011  alnsn branches: 1.78.4;
Regenerate files to pick up correct RCS Ids. Suggested by Chris Badura.
 1.77 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.76 15-Apr-2011  he Regenerate these files after adding pipe2() and dup3().
 1.75 07-Jul-2010  chs branches: 1.75.2;
regen
 1.74 14-Dec-2009  matt branches: 1.74.2; 1.74.4;
Regen (new makesyscalls.sh)
 1.73 24-Nov-2009  njoly Regen for personality(2) update.
 1.72 08-Jun-2009  njoly Regen for rt_queueinfo(2) update.
 1.71 17-Jan-2009  njoly branches: 1.71.2;
Regen for wait4 update.
 1.70 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.69 11-Jan-2009  tsutsui Regen from syscalls.master rev 1.64:
> Update for compat_50 stuff. (compile test only)
 1.68 12-Nov-2008  njoly Regen for nanosleep(2) fix.
 1.67 18-Jun-2008  tsutsui branches: 1.67.2; 1.67.4; 1.67.6;
Regen from syscalls.master rev 1.62:
> Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
 1.66 23-Apr-2008  ad branches: 1.66.2; 1.66.4; 1.66.6;
Regen.
 1.65 04-Apr-2008  njoly branches: 1.65.2;
Regen for linux_sys_msync removal.
 1.64 15-Jan-2008  njoly branches: 1.64.6;
Regen.
 1.63 24-Dec-2007  njoly Regen for linux_sys_getpgid removal.
 1.62 21-Dec-2007  njoly Regen for getfsuid/setfsgid syscall exchange.
 1.61 20-Dec-2007  dsl regen
 1.60 16-Nov-2007  njoly branches: 1.60.2; 1.60.6;
Regen, for syscalls cleanup.
 1.59 09-Feb-2007  ad branches: 1.59.18; 1.59.20; 1.59.24; 1.59.26;
Merge newlock2 to head.
 1.58 01-Sep-2006  matt branches: 1.58.2;
Regen.
 1.57 30-Aug-2006  matt Regen
 1.56 13-Jun-2006  he Regenerate after fixing the getpriority syscall definition.
 1.55 10-Jun-2006  christos regen
 1.54 11-Dec-2005  christos branches: 1.54.4; 1.54.8; 1.54.14;
merge ktrace-lwp.
 1.53 18-Oct-2005  joerg Regen.
 1.52 23-May-2005  jmc branches: 1.52.2;
Regen
 1.51 16-May-2005  fvdl Regen.
 1.50 26-Feb-2005  perry regen
 1.49 01-Aug-2004  jdolecek branches: 1.49.4; 1.49.6;
regen - sync syscall lists with Linux kernel 2.6.7
 1.48 10-Aug-2003  jdolecek regen - added wrapper for Linux ftruncate64()
 1.47 29-Jun-2003  thorpej branches: 1.47.2;
Regen: adapt to linux mmap2 changes.
 1.46 23-Jun-2003  christos Regen.
 1.45 18-Jan-2003  thorpej Regen for correct RCS ID.
 1.44 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.43 12-May-2002  jdolecek branches: 1.43.4;
regen
 1.42 10-Apr-2002  christos regen
 1.41 22-Mar-2002  christos regen
 1.40 17-Feb-2002  christos regen
 1.39 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.38 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.37 30-May-2001  mrg branches: 1.37.2;
use _KERNEL_OPT.
 1.36 13-May-2001  manu Improved the accuracy of gettimeofday/settimeofday: Linux stores a srtuct
timezone in the kernel. We now keep track of it for emulated processes.
Tested for powerpc and i386. Untested on m68k, but it should be ok
Alpha has a particular implementation (osf1_sys_gettimeofday), and it has
therefore not been touched.
 1.35 30-Mar-2001  jdolecek regen - use linux_sys_nosys() instead sys_nosys()
 1.34 30-Mar-2001  jdolecek regen
 1.33 30-Mar-2001  jdolecek regen
 1.32 27-Jan-2001  thorpej branches: 1.32.2;
Regen; getpid(2) is MP-safe.
 1.31 27-Jan-2001  thorpej Regen; add sy_flags.
 1.30 29-Dec-2000  fvdl Regen.
 1.29 27-Dec-2000  fvdl Regen.
 1.28 26-Dec-2000  itohy Regen.
 1.27 18-Dec-2000  fvdl Regen.
 1.26 14-Dec-2000  jdolecek regen
 1.25 12-Dec-2000  jdolecek regen
 1.24 12-Dec-2000  jdolecek regen
 1.23 09-Dec-2000  jdolecek regen
 1.22 09-Dec-2000  mycroft Regen.
 1.21 02-Dec-2000  jdolecek regen after addition of linux_sys_swapoff()
 1.20 01-Dec-2000  jdolecek regen
 1.19 13-Nov-2000  jdolecek change the type of *syscallnames[] array to 'const char * const foo[]'
 1.18 01-Nov-2000  jdolecek regen
 1.17 31-Aug-2000  itohy Regen.
 1.16 18-Aug-2000  cgd update for changed makesyscalls.master
 1.15 18-Aug-2000  cgd update for new makesyscalls.sh, and also for correct ids for changed
syscalls.master files. (you need to regenerate after checking in
syscalls.master to get the correct ids.)
 1.14 18-Mar-2000  erh branches: 1.14.4;
Regen.
 1.13 03-Feb-2000  abs regen
 1.12 16-Dec-1999  tron Regen.
 1.11 05-Dec-1999  tron Regen.
 1.10 04-Dec-1999  tron Regen.
 1.9 04-Oct-1999  tron branches: 1.9.2; 1.9.8;
Regen from "syscalls.master".
 1.8 16-Aug-1999  tron Regen.
 1.7 14-May-1999  thorpej Regen.
 1.6 13-May-1999  thorpej Regen.
 1.5 30-Mar-1999  tron branches: 1.5.4;
Regen.
 1.4 27-Mar-1999  tron Regen.
 1.3 23-Mar-1999  thorpej Regen; pread(2) and pwrite(2).
 1.2 10-Feb-1999  itohy Regen.
 1.1 15-Dec-1998  itohy Generated from syscalls.master.
 1.5.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.9.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.2.7 21-Apr-2001  bouyer Sync with HEAD
 1.9.2.6 11-Feb-2001  bouyer Sync with HEAD.
 1.9.2.5 05-Jan-2001  bouyer Sync with HEAD
 1.9.2.4 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.9.2.3 08-Dec-2000  bouyer Sync with HEAD.
 1.9.2.2 22-Nov-2000  bouyer Sync with HEAD.
 1.9.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.14.4.2 01-May-2001  he Pull up regenerated files (requested by jdolecek):
Make it possible to use a different function for unimplemented
syscalls than sys_nosys(), so that the Linux emulation can avoid
posting SIGSYS and instead just return ENOSYS.
 1.14.4.1 30-Mar-2001  he Pull up regenerated files (requested by fvdl):
Add some required Linux emulation bits to support the Linux
version of VMware.
 1.32.2.8 20-Jun-2002  nathanw Catch up to -current.
 1.32.2.7 29-May-2002  nathanw Regen.
 1.32.2.6 17-Apr-2002  nathanw Catch up to -current.
 1.32.2.5 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.32.2.4 28-Feb-2002  nathanw Catch up to -current.
 1.32.2.3 14-Nov-2001  nathanw Catch up to -current.
 1.32.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.32.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.37.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.37.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.37.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.43.4.4 27-May-2004  tron Regen for ticket #1701.
 1.43.4.3 11-May-2004  tron Regen for ticket 1686.
 1.43.4.2 20-Nov-2003  jmc Regen after fix in syscalls.master from ticket #1427.
 1.43.4.1 22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

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

Hi Perry!
 1.47.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.47.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.47.2.1 03-Aug-2004  skrll Sync with HEAD
 1.49.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.49.4.1 29-Apr-2005  kent sync with -current
 1.52.2.5 21-Jan-2008  yamt sync with head
 1.52.2.4 07-Dec-2007  yamt sync with head
 1.52.2.3 26-Feb-2007  yamt sync with head.
 1.52.2.2 30-Dec-2006  yamt sync with head.
 1.52.2.1 21-Jun-2006  yamt sync with head.
 1.54.14.1 19-Jun-2006  chap Sync with head.
 1.54.8.2 03-Sep-2006  yamt sync with head.
 1.54.8.1 26-Jun-2006  yamt sync with head.
 1.54.4.1 09-Sep-2006  rpaulo sync with head
 1.58.2.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.59.26.3 18-Feb-2008  mjf Sync with HEAD.
 1.59.26.2 27-Dec-2007  mjf Sync with HEAD.
 1.59.26.1 19-Nov-2007  mjf Sync with HEAD.
 1.59.24.1 18-Nov-2007  bouyer Sync with HEAD
 1.59.20.2 23-Mar-2008  matt sync with HEAD
 1.59.20.1 09-Jan-2008  matt sync with HEAD
 1.59.18.1 21-Nov-2007  joerg Sync with HEAD.
 1.60.6.2 19-Jan-2008  bouyer Sync with HEAD
 1.60.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.60.2.1 26-Dec-2007  ad Sync with head.
 1.64.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.64.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.64.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.65.2.1 18-May-2008  yamt sync with head.
 1.66.6.1 18-Jun-2008  simonb Sync with head.
 1.66.4.3 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.66.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.66.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.66.2.4 11-Aug-2010  yamt sync with head.
 1.66.2.3 11-Mar-2010  yamt sync with head
 1.66.2.2 20-Jun-2009  yamt sync with head
 1.66.2.1 04-May-2009  yamt sync with head.
 1.67.6.1 20-Nov-2008  snj Regen for ticket 81.
 1.67.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.67.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.71.2.1 23-Jul-2009  jym Sync with HEAD.
 1.74.4.3 31-May-2011  rmind sync with head
 1.74.4.2 21-Apr-2011  rmind sync with head
 1.74.4.1 05-Mar-2011  rmind sync with head
 1.74.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.75.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.78.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.78.4.2 30-Oct-2012  yamt sync with head
 1.78.4.1 17-Apr-2012  yamt sync with head
 1.79.10.4 03-Dec-2017  jdolecek update from HEAD
 1.79.10.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.79.10.2 23-Jun-2013  tls resync from head
 1.79.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.81.4.1 18-May-2014  rmind sync with head
 1.87.2.1 10-Aug-2014  tls Rebase.
 1.94.2.1 17-Apr-2017  snj regen for ticket 1354
 1.95.2.4 05-Feb-2017  skrll Sync with HEAD
 1.95.2.3 05-Oct-2016  skrll Sync with HEAD
 1.95.2.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.95.2.1 06-Apr-2015  skrll Sync with HEAD
 1.97.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.97.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.97.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.101.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.104.4.1 11-May-2017  pgoyette Sync with HEAD
 1.105.10.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.105.10.1 10-Jun-2019  christos Sync with HEAD
 1.105.8.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.108.2.2 17-Dec-2020  thorpej Regen for preadv(2) and pwritev(2).
 1.108.2.1 15-Dec-2020  thorpej Regen for eventfd, timerfd, POSIX timers.
 1.118.2.1 02-Aug-2025  perseant Sync with HEAD
 1.120 28-Sep-2024  christos regen
 1.119 01-Jul-2024  christos regen
 1.118 29-Jun-2024  christos branches: 1.118.2;
regen
 1.117 19-Aug-2023  christos regen
 1.116 29-Jul-2023  christos regen
 1.115 28-Jul-2023  christos regen
 1.114 02-Dec-2021  ryo regen
 1.113 24-Nov-2021  ryo regen
 1.112 20-Sep-2021  thorpej Regen for preadv(2) / pwritev(2).
 1.111 20-Sep-2021  thorpej Regen for eventfd.
 1.110 19-Sep-2021  thorpej Regen for timerfd.
 1.109 19-Sep-2021  thorpej Regen for POSIX timer syscalls.
 1.108 26-Apr-2020  thorpej branches: 1.108.2;
Regen for native futex calls.
 1.107 09-Nov-2019  jdolecek regen
 1.106 10-Aug-2018  pgoyette Regen
 1.105 10-May-2017  riastradh branches: 1.105.8; 1.105.10;
regen
 1.104 03-Feb-2017  christos branches: 1.104.4;
regen
 1.103 03-Feb-2017  martin regen
 1.102 16-Jan-2017  christos regen all
 1.101 13-Jan-2017  christos branches: 1.101.2;
regen
 1.100 02-Jan-2017  martin Regen (something apparently went wrong in previous)
 1.99 02-Jan-2017  manu Regen
 1.98 24-Jul-2016  njoly Regen for readlink/readlinkat signatures.
 1.97 24-Sep-2015  christos branches: 1.97.2;
regen
 1.96 07-Mar-2015  christos regen
 1.95 22-Nov-2014  njoly branches: 1.95.2;
Regen for ppoll signature fix
 1.94 31-May-2014  njoly branches: 1.94.2;
Regen for munmap(2) signature.
 1.93 29-May-2014  njoly Regen for utimes(2) change.
 1.92 20-May-2014  njoly Regen for getgroups/setgroups update.
 1.91 17-May-2014  njoly Regen for fadvise64 offset types changes.
 1.90 06-May-2014  njoly Regen for mknod device argument type change.
 1.89 04-May-2014  njoly Regen for pread/pwrite 64bit offset argument.
 1.88 08-Apr-2014  njoly Regen.
 1.87 15-Feb-2014  njoly branches: 1.87.2;
Regen.
 1.86 24-Dec-2013  njoly Regen for fcntl64().
 1.85 08-Dec-2013  njoly Regen.
 1.84 19-Nov-2013  chs regen
 1.83 07-Nov-2013  njoly Regen for dup/dup2/dup3 argument types fix.
 1.82 24-Sep-2013  njoly Regen for utimensat(2).
 1.81 08-Apr-2013  pooka branches: 1.81.4;
regen for utimes
 1.80 19-Sep-2012  pooka regen for ppoll (and, apparently, SYCALL_ARG_PTR)
 1.79 18-Nov-2011  christos branches: 1.79.10;
- add sigtimedwait support.
- merge the siginfo population code.
 1.78 30-May-2011  alnsn branches: 1.78.4;
Regenerate files to pick up correct RCS Ids. Suggested by Chris Badura.
 1.77 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.76 15-Apr-2011  he Regenerate these files after adding pipe2() and dup3().
 1.75 07-Jul-2010  chs branches: 1.75.2;
regen
 1.74 14-Dec-2009  matt branches: 1.74.2; 1.74.4;
Regen (new makesyscalls.sh)
 1.73 24-Nov-2009  njoly Regen for personality(2) update.
 1.72 08-Jun-2009  njoly Regen for rt_queueinfo(2) update.
 1.71 17-Jan-2009  njoly branches: 1.71.2;
Regen for wait4 update.
 1.70 13-Jan-2009  pooka Regen to prove I didn't screw up the conversion: purely RCSID changes.
 1.69 11-Jan-2009  tsutsui Regen from syscalls.master rev 1.64:
> Update for compat_50 stuff. (compile test only)
 1.68 12-Nov-2008  njoly Regen for nanosleep(2) fix.
 1.67 18-Jun-2008  tsutsui branches: 1.67.2; 1.67.4; 1.67.6;
Regen from syscalls.master rev 1.62:
> Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
 1.66 23-Apr-2008  ad branches: 1.66.2; 1.66.4; 1.66.6;
Regen.
 1.65 04-Apr-2008  njoly branches: 1.65.2;
Regen for linux_sys_msync removal.
 1.64 15-Jan-2008  njoly branches: 1.64.6;
Regen.
 1.63 24-Dec-2007  njoly Regen for linux_sys_getpgid removal.
 1.62 21-Dec-2007  njoly Regen for getfsuid/setfsgid syscall exchange.
 1.61 20-Dec-2007  dsl regen
 1.60 16-Nov-2007  njoly branches: 1.60.2; 1.60.6;
Regen, for syscalls cleanup.
 1.59 09-Feb-2007  ad branches: 1.59.18; 1.59.20; 1.59.24; 1.59.26;
Merge newlock2 to head.
 1.58 01-Sep-2006  matt branches: 1.58.2;
Regen.
 1.57 30-Aug-2006  matt Regen
 1.56 13-Jun-2006  he Regenerate after fixing the getpriority syscall definition.
 1.55 10-Jun-2006  christos regen
 1.54 11-Dec-2005  christos branches: 1.54.4; 1.54.8; 1.54.14;
merge ktrace-lwp.
 1.53 18-Oct-2005  joerg Regen.
 1.52 23-May-2005  jmc branches: 1.52.2;
Regen
 1.51 16-May-2005  fvdl Regen.
 1.50 26-Feb-2005  perry regen
 1.49 01-Aug-2004  jdolecek branches: 1.49.4; 1.49.6;
regen - sync syscall lists with Linux kernel 2.6.7
 1.48 10-Aug-2003  jdolecek regen - added wrapper for Linux ftruncate64()
 1.47 29-Jun-2003  thorpej branches: 1.47.2;
Regen: adapt to linux mmap2 changes.
 1.46 23-Jun-2003  christos Regen.
 1.45 18-Jan-2003  thorpej Regen for correct RCS ID.
 1.44 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.43 01-Nov-2002  jdolecek regen: nsysent set to 256
 1.42 12-May-2002  jdolecek branches: 1.42.4;
regen
 1.41 10-Apr-2002  christos regen
 1.40 22-Mar-2002  christos regen
 1.39 17-Feb-2002  christos regen
 1.38 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.37 13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.36 30-May-2001  mrg branches: 1.36.2;
use _KERNEL_OPT.
 1.35 13-May-2001  manu Improved the accuracy of gettimeofday/settimeofday: Linux stores a srtuct
timezone in the kernel. We now keep track of it for emulated processes.
Tested for powerpc and i386. Untested on m68k, but it should be ok
Alpha has a particular implementation (osf1_sys_gettimeofday), and it has
therefore not been touched.
 1.34 30-Mar-2001  jdolecek regen - use linux_sys_nosys() instead sys_nosys()
 1.33 30-Mar-2001  jdolecek regen
 1.32 30-Mar-2001  jdolecek regen
 1.31 27-Jan-2001  thorpej branches: 1.31.2;
Regen; getpid(2) is MP-safe.
 1.30 27-Jan-2001  thorpej Regen; add sy_flags.
 1.29 29-Dec-2000  fvdl Regen.
 1.28 27-Dec-2000  fvdl Regen.
 1.27 26-Dec-2000  itohy Regen.
 1.26 18-Dec-2000  fvdl Regen.
 1.25 14-Dec-2000  jdolecek regen
 1.24 12-Dec-2000  jdolecek regen
 1.23 12-Dec-2000  jdolecek regen
 1.22 09-Dec-2000  jdolecek regen
 1.21 09-Dec-2000  mycroft Regen.
 1.20 02-Dec-2000  jdolecek regen after addition of linux_sys_swapoff()
 1.19 01-Dec-2000  jdolecek regen
 1.18 01-Nov-2000  jdolecek regen
 1.17 31-Aug-2000  itohy Regen.
 1.16 18-Aug-2000  cgd update for changed makesyscalls.master
 1.15 18-Aug-2000  cgd update for new makesyscalls.sh, and also for correct ids for changed
syscalls.master files. (you need to regenerate after checking in
syscalls.master to get the correct ids.)
 1.14 18-Mar-2000  erh branches: 1.14.4;
Regen.
 1.13 03-Feb-2000  abs regen
 1.12 16-Dec-1999  tron Regen.
 1.11 05-Dec-1999  tron Regen.
 1.10 04-Dec-1999  tron Regen.
 1.9 04-Oct-1999  tron branches: 1.9.2; 1.9.8;
Regen from "syscalls.master".
 1.8 16-Aug-1999  tron Regen.
 1.7 14-May-1999  thorpej Regen.
 1.6 13-May-1999  thorpej Regen.
 1.5 30-Mar-1999  tron branches: 1.5.4;
Regen.
 1.4 27-Mar-1999  tron Regen.
 1.3 23-Mar-1999  thorpej Regen; pread(2) and pwrite(2).
 1.2 10-Feb-1999  itohy Regen.
 1.1 15-Dec-1998  itohy Generated from syscalls.master.
 1.5.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.9.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.2.7 21-Apr-2001  bouyer Sync with HEAD
 1.9.2.6 11-Feb-2001  bouyer Sync with HEAD.
 1.9.2.5 05-Jan-2001  bouyer Sync with HEAD
 1.9.2.4 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.9.2.3 08-Dec-2000  bouyer Sync with HEAD.
 1.9.2.2 22-Nov-2000  bouyer Sync with HEAD.
 1.9.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.14.4.2 01-May-2001  he Pull up regenerated files (requested by jdolecek):
Make it possible to use a different function for unimplemented
syscalls than sys_nosys(), so that the Linux emulation can avoid
posting SIGSYS and instead just return ENOSYS.
 1.14.4.1 30-Mar-2001  he Pull up regenerated files (requested by fvdl):
Add some required Linux emulation bits to support the Linux
version of VMware.
 1.31.2.9 11-Nov-2002  nathanw Catch up to -current
 1.31.2.8 20-Jun-2002  nathanw Catch up to -current.
 1.31.2.7 29-May-2002  nathanw Regen.
 1.31.2.6 17-Apr-2002  nathanw Catch up to -current.
 1.31.2.5 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.31.2.4 28-Feb-2002  nathanw Catch up to -current.
 1.31.2.3 14-Nov-2001  nathanw Catch up to -current.
 1.31.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.31.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.36.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.36.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.36.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.42.4.4 27-May-2004  tron Regen for ticket #1701.
 1.42.4.3 11-May-2004  tron Regen for ticket 1686.
 1.42.4.2 20-Nov-2003  jmc Regen after fix in syscalls.master from ticket #1427.
 1.42.4.1 22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

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

Hi Perry!
 1.47.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.47.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.47.2.1 03-Aug-2004  skrll Sync with HEAD
 1.49.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.49.4.1 29-Apr-2005  kent sync with -current
 1.52.2.5 21-Jan-2008  yamt sync with head
 1.52.2.4 07-Dec-2007  yamt sync with head
 1.52.2.3 26-Feb-2007  yamt sync with head.
 1.52.2.2 30-Dec-2006  yamt sync with head.
 1.52.2.1 21-Jun-2006  yamt sync with head.
 1.54.14.1 19-Jun-2006  chap Sync with head.
 1.54.8.2 03-Sep-2006  yamt sync with head.
 1.54.8.1 26-Jun-2006  yamt sync with head.
 1.54.4.1 09-Sep-2006  rpaulo sync with head
 1.58.2.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.59.26.3 18-Feb-2008  mjf Sync with HEAD.
 1.59.26.2 27-Dec-2007  mjf Sync with HEAD.
 1.59.26.1 19-Nov-2007  mjf Sync with HEAD.
 1.59.24.1 18-Nov-2007  bouyer Sync with HEAD
 1.59.20.2 23-Mar-2008  matt sync with HEAD
 1.59.20.1 09-Jan-2008  matt sync with HEAD
 1.59.18.1 21-Nov-2007  joerg Sync with HEAD.
 1.60.6.2 19-Jan-2008  bouyer Sync with HEAD
 1.60.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.60.2.1 26-Dec-2007  ad Sync with head.
 1.64.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.64.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.64.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.65.2.1 18-May-2008  yamt sync with head.
 1.66.6.1 18-Jun-2008  simonb Sync with head.
 1.66.4.3 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.66.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.66.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.66.2.4 11-Aug-2010  yamt sync with head.
 1.66.2.3 11-Mar-2010  yamt sync with head
 1.66.2.2 20-Jun-2009  yamt sync with head
 1.66.2.1 04-May-2009  yamt sync with head.
 1.67.6.1 20-Nov-2008  snj Regen for ticket 81.
 1.67.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.67.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.71.2.1 23-Jul-2009  jym Sync with HEAD.
 1.74.4.3 31-May-2011  rmind sync with head
 1.74.4.2 21-Apr-2011  rmind sync with head
 1.74.4.1 05-Mar-2011  rmind sync with head
 1.74.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.75.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.78.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.78.4.2 30-Oct-2012  yamt sync with head
 1.78.4.1 17-Apr-2012  yamt sync with head
 1.79.10.4 03-Dec-2017  jdolecek update from HEAD
 1.79.10.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.79.10.2 23-Jun-2013  tls resync from head
 1.79.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.81.4.1 18-May-2014  rmind sync with head
 1.87.2.1 10-Aug-2014  tls Rebase.
 1.94.2.1 17-Apr-2017  snj regen for ticket 1354
 1.95.2.4 05-Feb-2017  skrll Sync with HEAD
 1.95.2.3 05-Oct-2016  skrll Sync with HEAD
 1.95.2.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.95.2.1 06-Apr-2015  skrll Sync with HEAD
 1.97.2.3 20-Mar-2017  pgoyette Sync with HEAD
 1.97.2.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.97.2.1 26-Jul-2016  pgoyette Sync with HEAD
 1.101.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.104.4.1 11-May-2017  pgoyette Sync with HEAD
 1.105.10.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.105.10.1 10-Jun-2019  christos Sync with HEAD
 1.105.8.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.108.2.2 17-Dec-2020  thorpej Regen for preadv(2) and pwritev(2).
 1.108.2.1 15-Dec-2020  thorpej Regen for eventfd, timerfd, POSIX timers.
 1.118.2.1 02-Aug-2025  perseant Sync with HEAD
 1.6 28-Apr-2008  martin 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 26-Aug-2001  manu branches: 1.3.20; 1.3.28; 1.3.30;
Moved LINUX_NCCS from MI file to MD file, because the value is different
on MIPS and sparc machines.
 1.2 20-Jan-2001  manu branches: 1.2.2; 1.2.4;
Moved architecure dependent part of struct linux_termio to architecture
dependent header files.
 1.1 15-Dec-1998  itohy branches: 1.1.8;
Initial support of Linux/m68k compatibility.
 1.1.8.1 11-Feb-2001  bouyer Sync with HEAD.
 1.2.4.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.2.1 21-Sep-2001  nathanw Catch up to -current.
 1.3.30.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.3.28.1 29-Apr-2005  kent sync with -current
 1.3.20.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 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.9 11-Jan-2009  christos merge christos-time_t
 1.8 28-Apr-2008  martin branches: 1.8.8; 1.8.14;
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 20-Sep-2004  jdolecek move definition of linux_fsid_t to common/linux_types.h - it's identical
across all Linux archs
 1.5 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.4 19-May-2002  jdolecek branches: 1.4.8;
On archs with broken linux struct stat64 st_ino, rename linux_stat64's
lst_ino to __lst_ino and lst_ino64 to lst_ino, and define
LINUX_STAT64_HAS_BROKEN_ST_INO. Only assign __lst_ino if this define
is present.

This fixes compile on powerpc archs, and hence port-powerpc/16893.
 1.3 16-Mar-2002  pooka branches: 1.3.4;
Replace unused padding in struct linux_stat64 by lst_ino64 as found in
linux's m68k struct stat64.

makes linux compat compile again
 1.2 12-Dec-2000  jdolecek branches: 1.2.2; 1.2.4;
define struct linux_stat64 used by linux_sys_*stat64()
 1.1 15-Dec-1998  itohy branches: 1.1.8;
Initial support of Linux/m68k compatibility.
 1.1.8.1 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.2.4.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2 20-Jun-2002  nathanw Catch up to -current.
 1.2.2.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.4.1 30-May-2002  gehenna Catch up with -current.
 1.4.8.1 24-Sep-2004  skrll Sync with HEAD.
 1.7.74.2 04-May-2009  yamt sync with head.
 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.2 17-Jan-2009  mjf Sync with HEAD.
 1.7.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.8.14.2 11-Jan-2009  christos add linux_suseconds_t
 1.8.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.8.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.5 11-Dec-2005  christos merge ktrace-lwp.
 1.4 01-Aug-2004  jdolecek sync the syscall lists with Linux kernel 2.6.7
 1.3 01-Nov-2002  jdolecek branches: 1.3.6;
add appropriate nsysent
 1.2 30-Mar-2001  jdolecek Use linux_sys_nosys() instead sys_nosys() here too.
 1.1 30-Sep-1998  erh branches: 1.1.12; 1.1.22; 1.1.24;
Stubs for future development of linux compat architechtures.
 1.1.24.2 11-Nov-2002  nathanw Catch up to -current
 1.1.24.1 09-Apr-2001  nathanw Catch up with -current.
 1.1.22.1 01-May-2001  he Pull up revision 1.2 (requested by jdolecek):
Make it possible to use a different function for unimplemented
syscalls than sys_nosys(), so that the Linux emulation can avoid
posting SIGSYS and instead just return ENOSYS.
 1.1.12.1 21-Apr-2001  bouyer Sync with HEAD
 1.3.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.6.1 03-Aug-2004  skrll Sync with HEAD
 1.107 28-Sep-2024  christos Linux GSoC-2024: renameat2, clone3, sync_file_range, syncfs (Shivraj Jamgade)
 1.106 01-Jul-2024  christos Add linux POSIX message queue support (Ricardo Branco)
 1.105 29-Jun-2024  christos branches: 1.105.2;
From gsoc 2024: Implement faccessat2 and getcpu (Shivraz)
 1.104 19-Aug-2023  christos Add inotify* syscalls GSoC 2023 (Theodore Preduta)
 1.103 29-Jul-2023  christos Add/fix statx, readahead, close_range. From GSoC 2023 by Theodore Preduta
 1.102 28-Jul-2023  christos add epoll syscalls
 1.101 02-Dec-2021  ryo add prlimit64(2) syscall to COMPAT_LINUX and COMPAT_LINUX32
 1.100 24-Nov-2021  ryo add getrandom(2) syscall entry
 1.99 20-Sep-2021  thorpej Add preadv(2) and pwritev(2) system calls to COMPAT_LINUX and COMPAT_LINUX32.
 1.98 20-Sep-2021  thorpej Add the eventfd system calls to COMPAT_LINUX and COMPAT_LINUX32.
 1.97 19-Sep-2021  thorpej Add the timerfd syscalls to COMPAT_LINUX and COMPAT_LINUX32.
 1.96 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.95 26-Apr-2020  thorpej branches: 1.95.2;
Add a NetBSD native futex implementation, mostly written by riastradh@.
Map the COMPAT_LINUX futex calls to the native ones.
 1.94 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.93 03-Feb-2017  christos branches: 1.93.14;
and send and recv mmsg and unimpl
 1.92 03-Feb-2017  martin Add accept4
 1.91 02-Jan-2017  manu branches: 1.91.2;
Add pselect6 Linux system call.
This lets Matlab R2016A run on NetBSD/amd64
 1.90 24-Jul-2016  njoly Small cleanup. Adjust readlink/readlinkat signatures to reduce diffs with
native.
 1.89 22-Nov-2014  njoly branches: 1.89.2; 1.89.4;
Fix ppoll signature (int ->u_int)
 1.88 31-May-2014  njoly branches: 1.88.2;
Fix munmap(2) signature.
 1.87 29-May-2014  njoly For utimes(2), use compat_50_sys_utimes() instead of local version.
 1.86 20-May-2014  njoly Fix getgroups/setgroups signature.
 1.85 17-May-2014  njoly Fix fadvise64 syscalls to use 64bit offset types.
 1.84 06-May-2014  njoly Reduce diffs between archs; make mknod device argument unsigned.
 1.83 04-May-2014  njoly Fix pread/pwrite syscalls which need a 64bit offset argument.
 1.82 08-Apr-2014  njoly Adjust read/write/readv/writev signature to match native versions.
 1.81 15-Feb-2014  njoly branches: 1.81.2;
Reduce diffs between archs, add mincore/madvise to m68k.
 1.80 24-Dec-2013  njoly Reduce diffs between arches, add fcntl64() to m68k.
 1.79 08-Dec-2013  njoly Sprinkle a few more linux_umode_t where appropriate.
Reduce diffs between archs.
 1.78 19-Nov-2013  chs add the *at() syscalls.
 1.77 07-Nov-2013  njoly Fix dup/dup2/dup3 argument types (u_int -> int).
 1.76 24-Sep-2013  njoly Add utimensat(2) for compat linux.
 1.75 08-Apr-2013  pooka branches: 1.75.4;
support utimes on non-alpha linux platforms
 1.74 19-Sep-2012  pooka emulate ppoll which is essentially our pollts
 1.73 18-Nov-2011  christos branches: 1.73.10;
add sigtimedwait
 1.72 09-Jul-2011  christos branches: 1.72.2;
the first argument of {g,s}etitimer() is int not u_int.
 1.71 30-May-2011  alnsn Add fadvise64 and fadvise64_64 syscalls to compat_linux and compat_linux32.
 1.70 15-Apr-2011  he Add dup3() and pipe2() for these archs as well.
 1.69 07-Jul-2010  chs branches: 1.69.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.68 24-Nov-2009  njoly branches: 1.68.2; 1.68.4;
Update personality(2) to match Linux definition where the argument is an
unsigned long.
 1.67 08-Jun-2009  njoly Update rt_queueinfo(2) definition, and kill a corresponding comment.
 1.66 17-Jan-2009  njoly branches: 1.66.2;
Convert linux/linux32 wait(4) to use a compat50 rusage structure.
 1.65 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.64 11-Jan-2009  tsutsui Update for compat_50 stuff. (compile test only)
 1.63 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.62 18-Jun-2008  tsutsui branches: 1.62.2; 1.62.4; 1.62.6;
Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
 1.61 23-Apr-2008  ad branches: 1.61.2; 1.61.4; 1.61.6;
-SYCALL_MPSAFE
 1.60 04-Apr-2008  njoly branches: 1.60.2;
Cleanup. Kill linux_sys_msync and use sys___msync13 instead.
No functional changes expected.
 1.59 15-Jan-2008  njoly branches: 1.59.6;
compat linux (and linux32) uid16 functions cleanup and fixes.

- Move uid16 functions to their own file linux_uid16.c, included by
needed archs (arm, i386 and m68k).
- Add new MI types linux_{u,g}id16_t.
- Add macros to handle linux_uid16_t and uid_t conversions.
- Add linux_sys_getres{uid,gid}16 syscalls, to fix an overflow with
bad sizes given to copyout when linux_sys_getres{uid,gid} are used.
- Update arm syscall table to use more uid16 functions.
 1.58 24-Dec-2007  njoly Kill unneeded linux_sys_getpgid and use native sys_getpgid instead.
 1.57 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.56 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.55 16-Nov-2007  njoly branches: 1.55.2; 1.55.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.54 04-Mar-2007  christos branches: 1.54.14; 1.54.16; 1.54.20; 1.54.22;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.53 09-Feb-2007  ad branches: 1.53.2;
Merge newlock2 to head.
 1.52 01-Sep-2006  matt branches: 1.52.2;
Don't conditionalize *sys_ptrace. The lack of sys_ptrace will be dealt
with differently.
 1.51 30-Aug-2006  matt Update to deal with options PTRACE
 1.50 13-Jun-2006  he We need the argument structure for the getpriority syscall defined, so
change NOARGS to STD.
 1.49 10-Jun-2006  christos linux getpriority is off-by-20 so use our own function.
From PR/33671: Nicolas Joly
 1.48 11-Dec-2005  christos branches: 1.48.4; 1.48.8; 1.48.14;
merge ktrace-lwp.
 1.47 18-Oct-2005  joerg sys_uselib is needed by COMPAT_LINUX for EXEC_AOUT. Since it doesn't get
build when EXEC_AOUT is not defined, the syscalls.master entry has to be
conditionalized. Alpha did so already, so let the other archs catch up
with it.

Go-on: christos
 1.46 23-May-2005  jmc branches: 1.46.2;
Add clock_* POSIX functions.
 1.45 16-May-2005  fvdl Add *xattr functions (they all return EOPNOTSUPP).
 1.44 01-Aug-2004  jdolecek sync the syscall lists with Linux kernel 2.6.7
 1.43 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.42 29-Jun-2003  thorpej branches: 1.42.2;
Adapt to linux mmap2 changes.
 1.41 23-Jun-2003  christos PR/21937: Todd Vierling: Proper support for mmap2
 1.40 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.39 12-May-2002  jdolecek branches: 1.39.4;
update for newer syscalls (from 2.5.15)
Linux m68k doesn't seem to have fcntl64 syscall - oversight?
 1.38 10-Apr-2002  christos add getdents64
 1.37 22-Mar-2002  christos add mprotect, nuke mmap2
 1.36 17-Feb-2002  christos fix rlimit confusion.
 1.35 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.34 30-May-2001  mrg branches: 1.34.2;
use _KERNEL_OPT.
 1.33 13-May-2001  manu Improved the accuracy of gettimeofday/settimeofday: Linux stores a srtuct
timezone in the kernel. We now keep track of it for emulated processes.
Tested for powerpc and i386. Untested on m68k, but it should be ok
Alpha has a particular implementation (osf1_sys_gettimeofday), and it has
therefore not been touched.
 1.32 30-Mar-2001  jdolecek use UNIMPL instead of NODEF for the dummy syscalls 218, 219
 1.31 30-Mar-2001  jdolecek Add new syscalls from Linux 2.4.3 to the lists. Not implemented ATM.
 1.30 30-Mar-2001  jdolecek Implement linux_sys_nosys() and use it instead of sys_nosys() for
unimplemented syscalls. Difference is that linux_sys_nosys() doesn't
post SIGSYS to the process. Linux doesn't do that and thus glibc (and
probably other Linux code) doesn't deal with SIGSYS, even through it
generally contains fallback code for ENOSYS case.

This also addresses port-i386/12503, though the issue was already discussed
earlier.
 1.29 27-Jan-2001  thorpej branches: 1.29.2;
getpid(2) is MP-safe.
 1.28 29-Dec-2000  fvdl Don't pass through link(2) directly, as we need to do altpath checks.
 1.27 27-Dec-2000  fvdl Add all uid and gid calls, and do the right thing for the older 16 bit
ones.
 1.26 26-Dec-2000  itohy Declare linux_sys_setgid16() (NOARGS -> STD).
Change syscall #182 from linux_sys_lchown() to linux_sys_lchown16().
 1.25 18-Dec-2000  fvdl Update for Linux calls with 32 bit uids/gids.
 1.24 14-Dec-2000  jdolecek add sysinfo()
 1.23 12-Dec-2000  jdolecek actually, we need to wrap sys_truncate() call so that the /emul/linux/...
path is tried first
fix ftruncate64 entry - first arg to ftruncate is int fd, not path
 1.22 12-Dec-2000  jdolecek add emulation of Linux truncate64(2), ftruncate64(2), *stat64(2)
 1.21 09-Dec-2000  jdolecek add more unimplemented syscalls to list
 1.20 09-Dec-2000  mycroft Add the %% separators.
 1.19 09-Dec-2000  mycroft Add the %% separators.
 1.18 02-Dec-2000  jdolecek add emulation of linux swapoff(2)
 1.17 01-Dec-2000  jdolecek replace compat_09_sys_setdomainname() with linux_sys_setdomainname(),
compat_12_sys_swapon() with linux_sys_swapon() - this is to drop dependency
on COMPAT_12/COMPAT_09
 1.16 01-Nov-2000  jdolecek support mlockall(), munlockall() - they are same as respective NetBSD syscalls
 1.15 31-Aug-2000  itohy Add linux_sys_sigaltstack().
 1.14 18-Mar-2000  erh branches: 1.14.4;
Use linux_sys_reboot instead of sys_reboot.
 1.13 03-Feb-2000  abs Add Linux fsuid system calls - from Witold J. Wnuk in PR kern/9335
 1.12 16-Dec-1999  tron Add ptrace(2).
 1.11 05-Dec-1999  tron Add proper stub code to make emulation of Linux's pread(2) and pwrite(2)
work. Fixes PR kern/8945 by Dave Sainty.
 1.10 04-Dec-1999  tron Consistently call signal number arguments "signum".
 1.9 04-Oct-1999  tron branches: 1.9.2; 1.9.8;
Add emulation for scheduler related syscalls. Although they are dummies
even under Linux the posix thread library for "glibc2" requires them.
 1.8 16-Aug-1999  tron Add stime() to syscalls table.
 1.7 14-May-1999  thorpej Emulate the Linux vfork(2) (which is like NetBSD's __vfork14(2)),
{get,set}resuid(2), and {get,set}resgid(2). Note a few more system
calls that we don't yet emulate.
 1.6 13-May-1999  thorpej Emulate the Linux clone(2) system call.
 1.5 30-Mar-1999  tron branches: 1.5.4;
Add poll() emulation.
 1.4 27-Mar-1999  tron Add emulation for Linux "getcwd" syscall.
 1.3 23-Mar-1999  thorpej Add support for emulating the Linux pread(2) and pwrite(2) system calls;
just call the native NetBSD versions.

PR #7202, Jaromir Dolecek <dolecek@ics.muni.cz>.
 1.2 10-Feb-1999  itohy const mania
 1.1 15-Dec-1998  itohy Initial support of Linux/m68k compatibility.
 1.5.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.9.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.9.2.7 21-Apr-2001  bouyer Sync with HEAD
 1.9.2.6 11-Feb-2001  bouyer Sync with HEAD.
 1.9.2.5 05-Jan-2001  bouyer Sync with HEAD
 1.9.2.4 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.9.2.3 08-Dec-2000  bouyer Sync with HEAD.
 1.9.2.2 22-Nov-2000  bouyer Sync with HEAD.
 1.9.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.14.4.2 01-May-2001  he Pull up revision 1.30 (requested by jdolecek):
Make it possible to use a different function for unimplemented
syscalls than sys_nosys(), so that the Linux emulation can avoid
posting SIGSYS and instead just return ENOSYS.
 1.14.4.1 30-Mar-2001  he Pull up revision 1.28 (requested by fvdl):
Add some required Linux emulation bits to support the Linux
version of VMware.
 1.29.2.7 20-Jun-2002  nathanw Catch up to -current.
 1.29.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.29.2.5 17-Apr-2002  nathanw Catch up to -current.
 1.29.2.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.29.2.3 28-Feb-2002  nathanw Catch up to -current.
 1.29.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.29.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.34.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.34.2.1 16-Mar-2002  jdolecek Catch up with -current.
 1.39.4.4 27-May-2004  tron Apply patch (requested by skrll in ticket #1701):
Correct incorrect definition of system call 194 (linux_sys_ftruncate64)
caused by the patch for ticket #1686.
 1.39.4.3 11-May-2004  tron Pull up revision 1.43 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.39.4.2 20-Nov-2003  jmc Followup from ticket #1427. Need to include mmap2.h here or it won't compile
 1.39.4.1 22-Oct-2003  jmc Regen files (requested by tv in ticket #1427)

Proper support for mmap2
 1.42.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.42.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.42.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.42.2.1 03-Aug-2004  skrll Sync with HEAD
 1.46.2.5 21-Jan-2008  yamt sync with head
 1.46.2.4 07-Dec-2007  yamt sync with head
 1.46.2.3 03-Sep-2007  yamt sync with head.
 1.46.2.2 26-Feb-2007  yamt sync with head.
 1.46.2.1 21-Jun-2006  yamt sync with head.
 1.48.14.1 19-Jun-2006  chap Sync with head.
 1.48.8.1 26-Jun-2006  yamt sync with head.
 1.48.4.1 09-Sep-2006  rpaulo sync with head
 1.52.2.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.53.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.54.22.3 18-Feb-2008  mjf Sync with HEAD.
 1.54.22.2 27-Dec-2007  mjf Sync with HEAD.
 1.54.22.1 19-Nov-2007  mjf Sync with HEAD.
 1.54.20.1 18-Nov-2007  bouyer Sync with HEAD
 1.54.16.2 23-Mar-2008  matt sync with HEAD
 1.54.16.1 09-Jan-2008  matt sync with HEAD
 1.54.14.1 21-Nov-2007  joerg Sync with HEAD.
 1.55.6.2 19-Jan-2008  bouyer Sync with HEAD
 1.55.6.1 02-Jan-2008  bouyer Sync with HEAD
 1.55.2.1 26-Dec-2007  ad Sync with head.
 1.59.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.59.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.59.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.60.2.1 18-May-2008  yamt sync with head.
 1.61.6.1 18-Jun-2008  simonb Sync with head.
 1.61.4.3 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.61.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.61.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.61.2.4 11-Aug-2010  yamt sync with head.
 1.61.2.3 11-Mar-2010  yamt sync with head
 1.61.2.2 20-Jun-2009  yamt sync with head
 1.61.2.1 04-May-2009  yamt sync with head.
 1.62.6.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.62.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.62.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.66.2.1 23-Jul-2009  jym Sync with HEAD.
 1.68.4.3 31-May-2011  rmind sync with head
 1.68.4.2 21-Apr-2011  rmind sync with head
 1.68.4.1 05-Mar-2011  rmind sync with head
 1.68.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.69.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.72.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.72.2.2 30-Oct-2012  yamt sync with head
 1.72.2.1 17-Apr-2012  yamt sync with head
 1.73.10.4 03-Dec-2017  jdolecek update from HEAD
 1.73.10.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.73.10.2 23-Jun-2013  tls resync from head
 1.73.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.75.4.1 18-May-2014  rmind sync with head
 1.81.2.1 10-Aug-2014  tls Rebase.
 1.88.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.89.4.3 20-Mar-2017  pgoyette Sync with HEAD
 1.89.4.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.89.4.1 26-Jul-2016  pgoyette Sync with HEAD
 1.89.2.2 05-Feb-2017  skrll Sync with HEAD
 1.89.2.1 05-Oct-2016  skrll Sync with HEAD
 1.91.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.93.14.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.95.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.95.2.1 15-Dec-2020  thorpej Add Linux eventfd, timerfd, and POSIX timer calls.
 1.105.2.1 02-Aug-2025  perseant Sync with HEAD

RSS XML Feed