Home | History | Annotate | Download | only in netbsd32
History log of /src/sys/compat/netbsd32/netbsd32_compat_09.c
RevisionDateAuthorComments
 1.20  19-Jan-2021  simonb KNF consistency: No parentheses are needed around the return value.
 1.19  27-Jan-2019  pgoyette branches: 1.19.12;
Merge the [pgoyette-compat] branch
 1.18  29-May-2008  mrg branches: 1.18.12; 1.18.86; 1.18.88;
remove clause #3 from my license where there are no other
copyright holders involved.
 1.17  20-Dec-2007  dsl branches: 1.17.6; 1.17.8; 1.17.10; 1.17.12;
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.16  08-Dec-2007  dsl branches: 1.16.4;
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
 1.15  18-Mar-2007  dsl branches: 1.15.8; 1.15.10; 1.15.18;
Change all the NETBSD32PTR64(SCARG(uap, xxx))) to SCARG_P32(uap, xxx).
 1.14  09-Feb-2007  ad branches: 1.14.2; 1.14.6; 1.14.8; 1.14.10;
Merge newlock2 to head.
 1.13  11-Dec-2005  christos branches: 1.13.20;
merge ktrace-lwp.
 1.12  04-Dec-2003  atatat branches: 1.12.16;
Dynamic sysctl.

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

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

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

PS - I'm sorry, but there's a distinct lack of documentation at the
moment. I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
 1.11  29-Jun-2003  fvdl branches: 1.11.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.10  29-Jun-2003  martin struct proc * -> struct lwp *
 1.9  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.8  23-Oct-2002  scw In preparation for COMPAT_NETBSD32 on SH-5:

- The MD netbsd32_machdep.h header now defines the 32-bit pointer type
instead of using u_int32_t everywhere,
- The MD netbsd32_machdep.h header now defines a macro (at least on
current implementations) which converts a 32-bit pointer to its 64-bit
equivalent,
- Change the MI code to utilise the above two items in all the right places,
- Implement netbsd32___sigaction_sigtramp().

Tested on Sparc64 by Matt Green.
 1.7  13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.6  30-Nov-2000  jdolecek branches: 1.6.2; 1.6.4;
fix typo - it should be compat_09_netbsd32_uname, not compat_09_netbsd32_ouname
 1.5  28-Jun-2000  mrg remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.4  11-Oct-1999  eeh branches: 1.4.2;
Add netbsd32_compat_14.c

Rename everything from compat_netbsd32 -> netbsd32 so we don't have silly
names like compat_14_compat_netbsd32_sys_shmctl().
 1.3  25-Mar-1999  mrg branches: 1.3.8;
SPARC32->NETBSD32
 1.2  25-Mar-1999  mrg move sparc32 to netbsd32; split out MD part (signal handling) (mostly via repository copy, rename and perl -pi :-)
 1.1  26-Aug-1998  mrg add a 32-bit compatibility module for the sparc64 port, so it can run NetBSD/sparc binaries with a LP64 kernel.
 1.3.8.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.2.2  08-Dec-2000  bouyer Sync with HEAD.
 1.4.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.6.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.4  11-Nov-2002  nathanw Catch up to -current
 1.6.2.3  23-Aug-2002  petrov lwpification.
 1.6.2.2  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.6.2.1  14-Nov-2001  nathanw Catch up to -current.
 1.11.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.11.2.1  03-Aug-2004  skrll Sync with HEAD
 1.12.16.3  21-Jan-2008  yamt sync with head
 1.12.16.2  03-Sep-2007  yamt sync with head.
 1.12.16.1  26-Feb-2007  yamt sync with head.
 1.13.20.1  30-Jan-2007  ad Remove support for SA. Ok core@.
 1.14.10.1  29-Mar-2007  reinoud Pullup to -current
 1.14.8.1  11-Jul-2007  mjf Sync with head.
 1.14.6.1  10-Apr-2007  ad Sync with head.
 1.14.2.1  24-Mar-2007  yamt sync with head.
 1.15.18.1  26-Dec-2007  ad Sync with head.
 1.15.10.1  09-Jan-2008  matt sync with HEAD
 1.15.8.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.16.4.1  02-Jan-2008  bouyer Sync with HEAD
 1.17.12.3  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.17.12.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.17.12.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.17.10.1  04-May-2009  yamt sync with head.
 1.17.8.1  04-Jun-2008  yamt sync with head
 1.17.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.18.88.1  10-Jun-2019  christos Sync with HEAD
 1.18.86.6  03-Oct-2018  pgoyette Normalize the required lists. Each compat_netbsd32_xx needs the
non-32bit module of the same version _and_ the 32-bit module for
the next higher version.
 1.18.86.5  11-Sep-2018  pgoyette Put the ``extern struct emul'' into the netbsd32_netbsd.h header
so it doesn't have to be separately declared in each source file.

Thanks mrg@
 1.18.86.4  11-Sep-2018  pgoyette Also need to declare the emul_netbsd32 !
 1.18.86.3  11-Sep-2018  pgoyette Install the syscalls into the netbsd32 table, not the default/native table.
 1.18.86.2  11-Sep-2018  pgoyette Use netbsd32 syscall names in the establish/disestablish tables
 1.18.86.1  10-Sep-2018  pgoyette Initial cut at a compat_netbsd32_09 and compat_netbsd32_12 modules.
 1.18.12.2  29-May-2008  mrg remove clause #3 from my license where there are no other
copyright holders involved.
 1.18.12.1  29-May-2008  mrg file netbsd32_compat_09.c was added on branch christos-time_t on 2008-05-29 14:51:27 +0000
 1.19.12.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed