aff66c5455
than a review, this was a nice puzzle. This is supposed to be binary and source compatible with older applications that access the old FreeBSD-style three arguments to a signal handler. Except those applications that access hidden signal handler arguments bejond the documented third one. If you have applications that do, please let me know so that we take the opportunity to provide the functionality they need in a documented manner. Also except application that use 'struct sigframe' directly. You need to recompile gdb and doscmd. `make world` is recommended. Example program that demonstrates how SA_SIGINFO and old-style FreeBSD handlers (with their three args) may be used in the same process is at http://www3.cons.org/tmp/fbsd-siginfo.c Programs that use the old FreeBSD-style three arguments are easy to change to SA_SIGINFO (although they don't need to, since the old style will still work): Old args to signal handler: void handler_sn(int sig, int code, struct sigcontext *scp) New args: void handler_si(int sig, siginfo_t *si, void *third) where: old:code == new:second->si_code old:scp == &(new:si->si_scp) /* Passed by value! */ The latter is also pointed to by new:third, but accessing via si->si_scp is preferred because it is type-save. FreeBSD implementation notes: - This is just the framework to make the interface POSIX compatible. For now, no additional functionality is provided. This is supposed to happen now, starting with floating point values. - We don't use 'sigcontext_t.si_value' for now (POSIX meant it for realtime-related values). - Documentation will be updated when new functionality is added and the exact arguments passed are determined. The comments in sys/signal.h are meant to be useful. Reviewed by: BDE |
||
---|---|---|
.. | ||
pc | ||
_limits.h | ||
ansi.h | ||
apic.h | ||
apicreg.h | ||
apm_bios.h | ||
apm_segments.h | ||
asc_ioctl.h | ||
asm.h | ||
asmacros.h | ||
asnames.h | ||
atomic.h | ||
bootinfo.h | ||
bus_at386.h | ||
bus_dma.h | ||
bus_memio.h | ||
bus_pc98.h | ||
bus_pio.h | ||
bus.h | ||
cdk.h | ||
clock.h | ||
comstats.h | ||
cons.h | ||
console.h | ||
cpu.h | ||
cpufunc.h | ||
cputypes.h | ||
cronyx.h | ||
db_machdep.h | ||
dvcfg.h | ||
elf.h | ||
endian.h | ||
exec.h | ||
float.h | ||
floatingpoint.h | ||
frame.h | ||
globaldata.h | ||
globals.h | ||
gsc.h | ||
i4b_cause.h | ||
i4b_debug.h | ||
i4b_ioctl.h | ||
i4b_tel_ioctl.h | ||
i4b_trace.h | ||
ieeefp.h | ||
if_wavelan_ieee.h | ||
if_wl_wavelan.h | ||
iic.h | ||
in_cksum.h | ||
ioctl_bt848.h | ||
ioctl_ctx.h | ||
ioctl_fd.h | ||
ioctl_meteor.h | ||
ipl.h | ||
joystick.h | ||
limits.h | ||
lock.h | ||
lpt.h | ||
md_var.h | ||
mouse.h | ||
mpapic.h | ||
mptable.h | ||
mtpr.h | ||
npx.h | ||
param.h | ||
pcaudioio.h | ||
pcb_ext.h | ||
pcb.h | ||
pci_cfgreg.h | ||
pcpu.h | ||
pcvt_ioctl.h | ||
perfmon.h | ||
pmap.h | ||
proc.h | ||
profile.h | ||
psl.h | ||
ptrace.h | ||
random.h | ||
reg.h | ||
reloc.h | ||
resource.h | ||
segments.h | ||
setjmp.h | ||
si.h | ||
signal.h | ||
smb.h | ||
smp.h | ||
smptests.h | ||
soundcard.h | ||
speaker.h | ||
specialreg.h | ||
spigot.h | ||
stdarg.h | ||
sysarch.h | ||
trap.h | ||
tss.h | ||
types.h | ||
ultrasound.h | ||
varargs.h | ||
vm86.h | ||
vmparam.h | ||
wtio.h |