Home | History | Annotate | Download | only in include
History log of /src/sys/arch/powerpc/include/signal.h
RevisionDateAuthorComments
 1.26  29-Oct-2021  thorpej Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.
 1.25  27-Oct-2021  christos There is no sigcontext in ppc64
 1.24  27-Oct-2021  thorpej Make sigcontext13 visible only to _KERNEL. Make sigcontext visible only
to _LIBC and _KERNEL.
 1.23  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.22  06-Jul-2020  rin Style and cosmetic changes. No binary changes intended.
 1.21  29-Nov-2017  christos need sigtypes.h for sigset_t, since <sys/siginfo.h> includes this directly.
 1.20  19-Nov-2008  cegger branches: 1.20.26;
remove duplicate prototype which now conflicts with the prototype in <sys/signalvar.h>
 1.19  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.18  11-Dec-2005  christos branches: 1.18.74; 1.18.78; 1.18.84; 1.18.86;
merge ktrace-lwp.
 1.17  26-Mar-2004  drochner nothing cares about __HAVE_SIGINFO anymore, so nuke it
 1.16  27-Sep-2003  matt Define SIGTRAMP_VALID properly.
 1.15  26-Sep-2003  matt Add a machine-dependent SIGTRAMP_VALID macro which is used to test whether
a trampoline version is valid or not.
 1.14  25-Sep-2003  matt Deal with the constification of ksiginfo_t and sigset_t in signalling.
 1.13  25-Sep-2003  matt Add siginfo support for PowerPC.
 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  02-Mar-2003  matt Restore MQ to trapframe from mcontext since it's in both.
 1.10  03-Feb-2003  matt Don't use trapframe in sigcontext. Instead define a new structure
utrapframe that fixed in size (and the same size as the trapframe
in NetBSD 1.5). This preserves binary compatibility for those programs
that dealt looked at sigcontexts.
 1.9  20-Jan-2003  matt Add _REG_foo to ppc mcontext and use them instead of constants.
 1.8  19-Jan-2003  matt Make this reflect reality.
 1.7  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.6  03-Nov-2002  matt Change _MACHINE_foo_H_ to _POWERPC_foo_H_
 1.5  04-Jul-2002  thorpej Eliminate two unused sigframe members.
 1.4  14-Sep-1998  thorpej branches: 1.4.26; 1.4.30; 1.4.38;
sigset13_t -> int.
 1.3  13-Sep-1998  thorpej Make signal delivery work again.
 1.2  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.1  30-Sep-1996  ws PowerPC port
 1.4.38.1  16-Jul-2002  gehenna catch up with -current.
 1.4.30.3  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.4.30.2  11-Nov-2002  nathanw Catch up to -current
 1.4.30.1  01-Aug-2002  nathanw Catch up to -current.
 1.4.26.1  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 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.18.86.1  19-Jan-2009  skrll Sync with HEAD.
 1.18.84.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.18.78.1  04-May-2009  yamt sync with head.
 1.18.74.1  17-Jan-2009  mjf Sync with HEAD.
 1.20.26.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed