MirBSD Korn Shell for Jehanne
Go to file
tg 2f15a11c55 Clean up the signal mess, saves 172 Bytes:
* 'sigseen' in Build.sh goes away
* Signal name existence is checked in this order:
  have our own¹ -> sys_signame[] -> _sys_signame[] -> build our own²
* Signal description existence is checked in this order:
  sys_siglist[] -> _sys_siglist[] -> strsignal() -> NULL³
¹ Predefined list of items, for operating systems where we
  cannot build² them, i.e. Plan 9 and Minix 3 (e.g. no $CPP -dD)
² The usual cpp(1) stuff
³ Changed later, see below
* Make $CPP test dependent on $NEED_MKSH_SIGNAME (others can
  be added here, this is not absolute)
* Make signal name list generation² dependent on $NEED_MKSH_SIGNAME
* Fix check if the generation worked
* Guarantee that sigtraps[*].name and sigtraps[*].mess are valid
  C strings; this makes the code shorter *and* removes a few pos-
  sible nil pointer dereferences
* Embed autoconf'd usages of sys_sig* / strsignal / mksh_sigpairs
  into inittraps()
* Check for each signal 0<=i<=NSIG that
  name is not NULL or "" -> replace with ("%d", i)
  mess is not NULL or "" -> replace with ("Signal %d", i)
  name does not start (case-insensitive) with "SIG" -> name += 3
* In gettrap(), fix check if signal name starts, case-sensitive
  or case-insensitive, depending on need, with "SIG" (bug from millert@)

Other changes:
* Build.sh: ac_test[n]() are documented
* Build.sh: ac_test[n]() can have negative prereqs as well now
* Build.sh: use <<-'EOF' consistently
* bump patchlevel to today
2007-01-12 00:25:40 +00:00
Build.sh Clean up the signal mess, saves 172 Bytes: 2007-01-12 00:25:40 +00:00
Makefile Clean up the signal mess, saves 172 Bytes: 2007-01-12 00:25:40 +00:00
alloc.c * only have one $MirOS RCS ID per file to shrink source size 2005-11-22 18:40:44 +00:00
check.pl * check.t: add two mkshrc-tests (turn on, turn off) 2006-05-08 11:59:41 +00:00
check.t Clean up the signal mess, saves 172 Bytes: 2007-01-12 00:25:40 +00:00
copyright * main.c: when doing the conversion from strcasecmp (wrongly used) 2007-01-03 22:43:48 +00:00
dot.mkshrc * mention additions go at the bottom (e.g. 'source' scripts), in case 2007-01-04 23:40:50 +00:00
edit.c remove the "set -o sh" option (dummy anyway), 2006-11-19 20:43:14 +00:00
eval.c expand ~foo to getpwnam("foo")->dir only #if !defined(MKSH_SMALL) 2007-01-11 00:32:31 +00:00
exec.c remove all but these __CRAZY=Yes build warnings: 2006-11-12 14:58:16 +00:00
expr.c hand-sorted ctypes/chtypes upgrade; use table-driven where they make 2006-11-10 07:52:04 +00:00
funcs.c Clean up the signal mess, saves 172 Bytes: 2007-01-12 00:25:40 +00:00
histrap.c Clean up the signal mess, saves 172 Bytes: 2007-01-12 00:25:40 +00:00
jobs.c more warnings, cought on interix 2006-11-12 13:20:15 +00:00
lex.c hand-sorted ctypes/chtypes upgrade; use table-driven where they make 2006-11-10 07:52:04 +00:00
main.c expand ~foo to getpwnam("foo")->dir only #if !defined(MKSH_SMALL) 2007-01-11 00:32:31 +00:00
misc.c remove the "set -o sh" option (dummy anyway), 2006-11-19 20:43:14 +00:00
mksh.1 use RLIMIT_AS, after much RTFM 2007-01-06 18:48:27 +00:00
setmode.c since so many internal things hardcode 'C' locale anyway, 2006-11-10 06:53:27 +00:00
sh.h Clean up the signal mess, saves 172 Bytes: 2007-01-12 00:25:40 +00:00
shf.c hand-sorted ctypes/chtypes upgrade; use table-driven where they make 2006-11-10 07:52:04 +00:00
signames.c Clean up the signal mess, saves 172 Bytes: 2007-01-12 00:25:40 +00:00
strcasestr.c unbelievably, cygwin doesn't have strcasestr(3) 2006-11-12 13:15:27 +00:00
strlfun.c sync 2007-01-09 17:34:21 +00:00
syn.c style(9) 2006-08-01 13:43:28 +00:00
tree.c remove all but these __CRAZY=Yes build warnings: 2006-11-12 14:58:16 +00:00
var.c make mksh compatible to the AT&T ksh spec which says, according to 2006-11-19 16:43:43 +00:00