No description
Find a file
Antoine Leca b67a7fca8c ash: don't rely on libc signal names
The bsd signal names are out-of-order compared to the minix ones.

I found out (the hard way) that the (MINIX-descending) ordered list of
signals in <sys/signal.h> does not match the (BSD-descending) ordered
list of signals in usr/src/lib/libc/nbsd_libc/gen/sig{name,list}.c

Beyond being unfortunate, it prevents the trap command of ash to handle
correctly a named signal; a funny test case is
        #!/bin/sh
        trap 'echo trapping signal BUS' BUS
        trap 'echo trapping signal 10 (USR1)' 10
        trap # show me what is currently trapped

As a quick workaround, I disabled the use of the libc-provided
sys_sig{name,list} arrays for ash, and reverted to the hand-made array
which is used by the less capable MINIX libc. It allowed me to use
pkgsrc.
2011-07-26 18:59:52 +02:00
benchmarks Fixed unixbench Run script 2010-10-25 08:32:14 +00:00
bin Add bin/ hierarchy 2011-07-01 18:43:15 +02:00
boot boot: Add multiboot support 2011-06-24 17:21:51 +02:00
commands ash: don't rely on libc signal names 2011-07-26 18:59:52 +02:00
common import elf-only -lcurses 2011-07-25 11:08:17 +02:00
docs Import NetBSD mkdep 2011-07-22 17:28:27 +02:00
drivers Use 'strip -s' for ELF image 2011-07-22 07:52:34 +02:00
etc add /etc/resolv.conf pointing to minix nonamed 2011-07-26 18:03:04 +02:00
include import elf-only -lcurses 2011-07-25 11:08:17 +02:00
kernel kernel: add prototype for inkernel_disaster 2011-07-22 15:19:40 +02:00
lib import elf-only -lcurses 2011-07-25 11:08:17 +02:00
man Remove advent and ttt 2011-07-26 11:37:18 +02:00
nbsd_include Add vfork() system call 2011-07-22 10:55:30 +02:00
servers vfs/rs: for ELF, sep_id should be 0 2011-07-26 15:21:07 +02:00
share sys.mk: Check that MKEMBED is defined 2011-07-26 11:26:26 +02:00
test test: define NETBSD_SOURCE for gcc/clang 2011-07-26 16:52:43 +02:00
tools Add sort to nbsd_ports list 2011-07-25 11:43:44 +02:00
usr.bin usr.bin/Makefile: cosmetic change 2011-07-25 11:50:46 +02:00
.gitignore .gitignore: add obj-elfbase-nbsd 2011-06-25 18:05:01 +02:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile Skip ACK libs building with GCC/clang 2011-07-24 18:47:07 +02:00