Home | History | Annotate | Download | only in include
History log of /src/sys/arch/m68k/include/signal.h
RevisionDateAuthorComments
 1.28  29-Oct-2021  thorpej Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.
 1.27  27-Oct-2021  thorpej Make sigcontext13 visible only to _KERNEL.
 1.26  26-Oct-2021  christos Merge all MD __sigaction14_sigtramp.c copies into one:
- sparc and sparc64 were not using version 0 sigcontext when there were
no arguments in the signal version. This was probably a bug.
- vax is using +1 the version numbers of the other archs.
- Only hppa was defining __LIBC12_SOURCE__ so it was getting a working
sigcontext before. all the other ports that supported sigcontext had
the compat code disabled.
[pointed out by thorpej, thanks!]
If we want to remove sigcontext support from userland at least now there
is less work to do so.
 1.25  27-Jan-2009  martin Centralize fpu exception to siginfo code encoding for all m68k archs,
fixes a failure in the lib/libc/ieeefp/except regression test.
 1.24  19-Nov-2008  ad Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
 1.23  01-Apr-2006  oster branches: 1.23.62; 1.23.66; 1.23.72; 1.23.74; 1.23.76;
We don't need (or want!) to include cpuframe.h or have sigstate
visible to userland on m68k. Fixes numerous pkgsrc build issues where
"struct frame" as defined in cpuframe.h pollutes the local namespace.

Compile-tested full builds for hp300, mac68k, amiga, sun3, and next68k.

OK'ed by matt@.
 1.22  11-Dec-2005  christos branches: 1.22.4; 1.22.6; 1.22.8; 1.22.10; 1.22.12;
merge ktrace-lwp.
 1.21  07-Sep-2005  drochner namespace sanity: don't expose compatibility sigcontext stuff
unnecessarily
 1.20  29-Jul-2004  is branches: 1.20.10; 1.20.12; 1.20.14;
Revert last change. It breaks the build due to interactions with
frame.h.
 1.19  28-Jul-2004  is For a while, we exported symbols in the user namespace (which should only
be interesting for the kernel), thus breaking (e.g.) vim. (PR 26048)
 1.18  10-May-2004  drochner SIGTRAMP_VALID() should not pollute the user namespace
 1.17  26-Mar-2004  drochner nothing cares about __HAVE_SIGINFO anymore, so nuke it
 1.16  25-Nov-2003  christos bye, bye _MCONTEXT_TO_SIGCONTEXT and vice versa.
 1.15  18-Oct-2003  briggs Define SIGTRAMP_VALID(v).
 1.14  22-Sep-2003  cl SA_SIGINFO support for m68k
 1.13  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.12  28-Apr-2003  bjh21 branches: 1.12.2;
Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
!defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them. In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
 1.11  17-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.10  04-Jul-2002  thorpej During signal delivery, arrange to have the signal handler invoked
directly, using the trampoline only for the return path. Saves a
"jsr" in the trampoline.

Reviewed, tested and OK'd by Steve Woodford.
 1.9  23-Jun-2002  thorpej Swap the order of the sigcontext and hardware state in the sigframe.
 1.8  30-Sep-1998  thorpej branches: 1.8.26; 1.8.30; 1.8.38;
Pull in <m68k/frame.h> if __M68K_SIGNAL_PRIVATE, for sigstate.
 1.7  30-Sep-1998  thorpej Put the sigstate and sigframe definitions in signal.h, protected by
__M68K_SIGNAL_PRIVATE.
 1.6  15-Sep-1998  thorpej Define the new sigcontext structure.
 1.5  25-May-1998  kleink If any of _ANSI_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE are defined, don't
provide any identifiers other than sig_atomic_t.
 1.4  10-Jan-1995  jtc Only define sig_atomic_t when _ANSI_SOURCE is defined.
 1.3  26-Oct-1994  cgd new RCS ID format.
 1.2  10-Apr-1994  chopps protect against multiple inclusion
 1.1  13-Oct-1993  cgd md signal context.
 1.8.38.1  16-Jul-2002  gehenna catch up with -current.
 1.8.30.2  16-Jan-2003  thorpej * Include <sys/sigtypes.h> rather than <sys/signal.h> in <sys/ucontext.h>.
* Define _UCONTEXT_TO_SIGCONTEXT() and _SIGCONTEXT_TO_UCONTEXT()
macros for converting a ucontext -> sigcontext and back again.
These macros in turn use machine-dependent macros _MCONTEXT_TO_SIGCONTEXT()
and _SIGCONTEXT_TO_MCONTEXT() provided by <machine/signal.h>.

The conversion process is not 100% accurate, but should be close enough.

Also note that the mcontext conversion may not be enough for all platforms
(m68k is a good example of this). These macros should be used only if
you really know what you're doing.
 1.8.30.1  01-Aug-2002  nathanw Catch up to -current.
 1.8.26.1  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.12.2.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.12.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.12.2.1  03-Aug-2004  skrll Sync with HEAD
 1.20.14.1  06-Apr-2006  tron Pull up following revision(s) (requested by oster in ticket #1243):
sys/arch/m68k/include/signal.h: revision 1.23
We don't need (or want!) to include cpuframe.h or have sigstate
visible to userland on m68k. Fixes numerous pkgsrc build issues where
"struct frame" as defined in cpuframe.h pollutes the local namespace.
Compile-tested full builds for hp300, mac68k, amiga, sun3, and next68k.
OK'ed by matt@.
 1.20.12.1  21-Jun-2006  yamt sync with head.
 1.20.10.1  06-Apr-2006  tron Pull up following revision(s) (requested by oster in ticket #1243):
sys/arch/m68k/include/signal.h: revision 1.23
We don't need (or want!) to include cpuframe.h or have sigstate
visible to userland on m68k. Fixes numerous pkgsrc build issues where
"struct frame" as defined in cpuframe.h pollutes the local namespace.
Compile-tested full builds for hp300, mac68k, amiga, sun3, and next68k.
OK'ed by matt@.
 1.22.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.22.10.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.22.8.1  11-Apr-2006  yamt sync with head
 1.22.6.1  22-Apr-2006  simonb Sync with head.
 1.22.4.1  09-Sep-2006  rpaulo sync with head
 1.23.76.1  02-Feb-2009  snj Pull up following revision(s) (requested by martin in ticket #332):
sys/arch/amiga/amiga/trap.c: revision 1.122
sys/arch/atari/atari/trap.c: revision 1.99
sys/arch/cesfic/cesfic/trap.c: revision 1.43
sys/arch/hp300/hp300/trap.c: revision 1.140
sys/arch/luna68k/luna68k/trap.c: revision 1.55
sys/arch/m68k/include/signal.h: revision 1.25
sys/arch/m68k/m68k/sig_machdep.c: revision 1.41
sys/arch/mac68k/mac68k/trap.c: revision 1.136 via patch
sys/arch/mvme68k/mvme68k/trap.c: revision 1.98
sys/arch/news68k/news68k/trap.c: revision 1.60
sys/arch/next68k/next68k/trap.c: revision 1.75
sys/arch/sun2/sun2/trap.c: revision 1.37
sys/arch/sun3/sun3/trap.c: revision 1.136
sys/arch/x68k/x68k/trap.c: revision 1.97
Centralize fpu exception to siginfo code encoding for all m68k archs,
fixes a failure in the lib/libc/ieeefp/except regression test.
 1.23.74.2  03-Mar-2009  skrll Sync with HEAD.
 1.23.74.1  19-Jan-2009  skrll Sync with HEAD.
 1.23.72.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.23.66.1  04-May-2009  yamt sync with head.
 1.23.62.1  17-Jan-2009  mjf Sync with HEAD.

RSS XML Feed