minix/commands/ash
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
..
bltin ash: make test/expr support 'file1 -ot file2' 2010-07-03 22:18:11 +00:00
funcs New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
alias.c We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
alias.h Removed unused variables, added const where possible. 2010-04-07 11:25:51 +00:00
arith.y Convert boot/ and commands/ over to bsdmake 2010-05-12 16:28:54 +00:00
arith_lex.h New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
arith_lex.l Convert boot/ and commands/ over to bsdmake 2010-05-12 16:28:54 +00:00
builtins New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
builtins.def New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
cd.c Removed unused variables, added const where possible. 2010-04-07 11:25:51 +00:00
cd.h New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
complete.c New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
complete.h New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
errmsg.c New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
errmsg.h New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
error.c Code cleanup: remove unused #include, variables and code, 2010-04-15 18:49:36 +00:00
error.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
eval.c We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
eval.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
exec.c We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
exec.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
expand.c We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
expand.h Convert boot/ and commands/ over to bsdmake 2010-05-12 16:28:54 +00:00
histedit.c New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
init.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
input.c Build NetBSD libc library in world in ELF mode. 2011-06-24 11:46:30 +02:00
input.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
jobs.c We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
jobs.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
machdep.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
mail.c Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
mail.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
main.c Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
main.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
Makefile Move minix/paths.h to paths.h 2010-11-06 20:40:15 +00:00
memalloc.c Removed unused variables, added const where possible. 2010-04-07 11:25:51 +00:00
memalloc.h Removed unused variables, added const where possible. 2010-04-07 11:25:51 +00:00
miscbltin.c We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
mkbuiltins New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
mkinit.c We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
mknodes.c Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
mksignames.c Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
mksyntax.c We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
mktokens New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
myhistedit.h New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
mystring.c Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
mystring.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
nodes.c.pat New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
nodetypes New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
options.c Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
options.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
output.c Build NetBSD libc library in world in ELF mode. 2011-06-24 11:46:30 +02:00
output.h Build NetBSD libc library in world in ELF mode. 2011-06-24 11:46:30 +02:00
parser.c We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
parser.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
redir.c Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
redir.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
setmode.c commands: fix clang errors 2011-06-09 08:27:49 +02:00
shell.h Build NetBSD libc library in world in ELF mode. 2011-06-24 11:46:30 +02:00
show.c Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
show.h New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
TOUR New version of ash. From FreeBSD 5.4 via Minix-vmd. 2006-05-23 12:59:34 +00:00
trap.c ash: don't rely on libc signal names 2011-07-26 18:59:52 +02:00
trap.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
var.c We have sys/cdefs.h now, so remove hacks. 2010-06-17 15:14:57 +00:00
var.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00