Home | History | Annotate | Download | only in netbsd32
History log of /src/sys/compat/netbsd32/netbsd32_ipc.c
RevisionDateAuthorComments
 1.23  23-May-2025  hannken Fix typos in SEM_PRINTF(): usemid->semid, usops->sops, use NETBSD32PTR64().

Kernels ALL/i386 and ALL/amd64 build again.
 1.22  10-May-2025  riastradh netbsd32_ipc.c: KNF
 1.21  09-May-2025  martin Change semop(2) compat code to use the common code (instead of the syscall
code directly).
Implement semtimedop(2) for compat_netbsd32.
Fixes PR 59352.
 1.20  19-Jan-2021  simonb branches: 1.20.24;
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  03-Dec-2015  pgoyette branches: 1.18.16; 1.18.18;
Split out the SYSV IPC stuff into its own compat_netbsd32_sysvipc
module. Adjust dependencies as needed.
 1.17  12-Dec-2009  njoly branches: 1.17.22; 1.17.40;
Add missing semicolons after NETBSD32TOx_UAP macro calls.
 1.16  11-Jan-2009  christos merge christos-time_t
 1.15  29-May-2008  mrg branches: 1.15.6; 1.15.12;
remove clause #3 from my license where there are no other
copyright holders involved.
 1.14  20-Dec-2007  dsl branches: 1.14.6; 1.14.8; 1.14.10; 1.14.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.13  08-Dec-2007  dsl branches: 1.13.4;
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
 1.12  03-Jun-2007  dsl branches: 1.12.6; 1.12.8; 1.12.16;
Split netbsd32___semctl14() so that it is callable from
compat_10_netbsd32_sys_semsys() (where the one parameter is already in
kernel space).
Note that the code in compat_10_netbsd32_sys_semsys() has always been wrong,
since it called compat_14_sys___semctl() - which would read 64bit values!
 1.11  18-Mar-2007  dsl Change all the NETBSD32PTR64(SCARG(uap, xxx))) to SCARG_P32(uap, xxx).
 1.10  09-Feb-2007  ad branches: 1.10.2; 1.10.6; 1.10.8; 1.10.10;
Merge newlock2 to head.
 1.9  23-Jul-2006  ad branches: 1.9.4;
Use the LWP cached credentials where sane.
 1.8  06-Mar-2006  cube Implement the SysV IPC family of syscalls.
 1.7  11-Dec-2005  christos branches: 1.7.4; 1.7.6; 1.7.8;
merge ktrace-lwp.
 1.6  19-Aug-2005  christos Fix lossage I created with the 64 bit ino_t change.
 1.5  18-Jan-2003  thorpej branches: 1.5.2; 1.5.18;
Merge the nathanw_sa branch.
 1.4  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.3  13-Nov-2001  lukem add RCSIDs (including regeneration of files as appropriate)
 1.2  30-May-2001  mrg branches: 1.2.2;
use _KERNEL_OPT.
 1.1  08-Feb-2001  mrg branches: 1.1.2; 1.1.4;
split up netbsd32_netbsd.c into 9 new files, leaving only those syscalls that
have no special interpretations besides simple syscall args conversion.
 1.1.4.5  11-Nov-2002  nathanw Catch up to -current
 1.1.4.4  23-Aug-2002  petrov lwpification.
 1.1.4.3  29-May-2002  nathanw #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)
 1.1.4.2  14-Nov-2001  nathanw Catch up to -current.
 1.1.4.1  21-Jun-2001  nathanw Catch up to -current.
 1.1.2.2  11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1  08-Feb-2001  bouyer file netbsd32_ipc.c was added on branch thorpej_scsipi on 2001-02-11 19:14:14 +0000
 1.2.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.18.5  21-Jan-2008  yamt sync with head
 1.5.18.4  03-Sep-2007  yamt sync with head.
 1.5.18.3  26-Feb-2007  yamt sync with head.
 1.5.18.2  30-Dec-2006  yamt sync with head.
 1.5.18.1  21-Jun-2006  yamt sync with head.
 1.5.2.1  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.8.2  11-Aug-2006  yamt sync with head
 1.7.8.1  13-Mar-2006  yamt sync with head.
 1.7.6.1  22-Apr-2006  simonb Sync with head.
 1.7.4.1  09-Sep-2006  rpaulo sync with head
 1.9.4.1  30-Jan-2007  ad Remove support for SA. Ok core@.
 1.10.10.1  29-Mar-2007  reinoud Pullup to -current
 1.10.8.1  11-Jul-2007  mjf Sync with head.
 1.10.6.2  09-Jun-2007  ad Sync with head.
 1.10.6.1  10-Apr-2007  ad Sync with head.
 1.10.2.1  24-Mar-2007  yamt sync with head.
 1.12.16.1  26-Dec-2007  ad Sync with head.
 1.12.8.1  09-Jan-2008  matt sync with HEAD
 1.12.6.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.13.4.1  02-Jan-2008  bouyer Sync with HEAD
 1.14.12.3  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.14.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.14.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.14.10.2  11-Mar-2010  yamt sync with head
 1.14.10.1  04-May-2009  yamt sync with head.
 1.14.8.1  04-Jun-2008  yamt sync with head
 1.14.6.2  17-Jan-2009  mjf Sync with HEAD.
 1.14.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.15.12.2  04-Jan-2009  christos add new syscalls.
 1.15.12.1  29-May-2008  christos file netbsd32_ipc.c was added on branch christos-time_t on 2009-01-04 01:56:02 +0000
 1.15.6.1  19-Jan-2009  skrll Sync with HEAD.
 1.17.40.1  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.17.22.1  03-Dec-2017  jdolecek update from HEAD
 1.18.18.1  10-Jun-2019  christos Sync with HEAD
 1.18.16.6  13-Sep-2018  pgoyette More clean-up of module dependencies
 1.18.16.5  12-Sep-2018  pgoyette Use correct module name for dependency
 1.18.16.4  12-Sep-2018  pgoyette Split compat_netbsd32_sysvipc into version-specific modules
 1.18.16.3  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.16.2  13-Mar-2018  pgoyette Use correct module name for dependency
 1.18.16.1  10-Mar-2018  pgoyette Update module dependency - it now requires compat_sysvipc
 1.19.12.1  03-Apr-2021  thorpej Sync with HEAD.
 1.20.24.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed