HardenedBSD/bin
Martin Cracauer 7a8e920bb9 Do not exit on SIGINT in non-interactive shells, fixes PR 1206,
i.e. this makes emacs usable from system(3). Programs called from
shellscripts are now required to exit with proper signal status. That
means, they have to kill themself. Exiting with faked numerical exit
code is not sufficient.

Exit with proper signal status if script exits on signal.

Make the wait builtin interruptable, both with and without traps set.

Use volatile sig_atomic_t where (and only where) appropriate.

(Almost) fix printing of newlines on SIGINT.

Make traps setable from trap handlers. This is needed for shellscripts
that catch SIGINT for cleanup work but intend to exit on it, hance
have to kill themself from a trap handler. I.e. mkdep.

While I'm at it, make it -Wall clean. -Wall is not enabled in
Makefile, since vararg warnx() macro calls in usr.bin/printf/printf.c
are not -Wall-able.
PR:		1206
Obtained from:	Basic SIGINT fix from Bruce Evans
1998-08-24 10:20:37 +00:00
..
cat
chflags
chio Fix a bunch of spelling errors. 1998-06-04 21:06:07 +00:00
chmod Improve description of absolute modes. 1998-05-19 06:24:50 +00:00
cp Don't attempt to change owner/mode/flags that don't need to changed. 1998-06-10 06:29:23 +00:00
csh Document the printf built-in. 1998-07-27 21:31:19 +00:00
date
dd
df
domainname
echo
ed Silence some warnings when building on the alpha. 1998-08-07 09:39:11 +00:00
expr
hostname
kill
ln
ls Add missing "else", without whom the prev. commit is a null change. 1998-08-02 22:47:11 +00:00
mkdir
mv Fixed printf format errors. 1998-06-28 21:00:04 +00:00
pax Make sure we pass the length - 1 to readlink, since it adds its own 1998-06-09 03:38:43 +00:00
ps Pick up kernel variables/constants using sysctl rather than through /dev/mem 1998-06-30 21:34:14 +00:00
pwd
rcp Fix LIBDIR (for aout/ELF). 1998-08-06 21:41:13 +00:00
rm
rmail Use sendmail-8.9.1 rmail (with our changes). 1998-08-04 15:19:16 +00:00
rmdir
sh Do not exit on SIGINT in non-interactive shells, fixes PR 1206, 1998-08-24 10:20:37 +00:00
sleep Correct use of .Nm. Add rcsid. 1998-05-18 06:51:59 +00:00
stty Fixed printf format errors. 1998-06-28 18:08:54 +00:00
sync Correct use of .Nm. Add section number to .Xr references. Add rcsid. 1998-05-18 06:50:17 +00:00
test Correct use of .Nm. Add rcsid. 1998-05-18 06:51:59 +00:00
Makefile Now that alpha uses FreeBSD syscalls, all these work. 1998-08-15 12:27:23 +00:00
Makefile.inc