NetBSD/bin/sh
christos e1849b79b1 PR/6213: Urban Boquist: /bin/sh does not handle a trapped signal correctly
The problem was that system calls got restarted after a signal,
	 instead of returning EINTR. Thus the read builtin, had no way to
	 know that a signal occured that could change the course of execution.
	 Since the code has sprinkled checks for EINTR all over the place,
	 it is supposed to work properly with non restartable syscalls.
	 The fix is to use siginterrupt(signo, 1), before setting a signal
	 handler, to make sure that system calls don't get restarted.
1999-01-18 16:18:04 +00:00
..
bltin Fix compiler warnings. 1997-07-04 21:01:48 +00:00
funcs
Makefile The recent cross-compile changes broke the build of x_sh. Properly use 1998-10-08 00:29:38 +00:00
TOUR
alias.c Fix dangling else warning. 1998-05-20 00:27:56 +00:00
alias.h
arith.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
arith.y Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
arith_lex.l Portability fixes for a non flex based lexical analyzer. 1998-05-18 22:50:20 +00:00
builtins.def NO_HISTORY->SMALL 1997-03-14 01:42:18 +00:00
cd.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
cd.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
error.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
error.h Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
eval.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
eval.h
exec.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
exec.h Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
expand.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
expand.h PR/4851: Benjamin Lorenz: In the "for <var> in <args>" construct <args> 1998-01-31 12:45:06 +00:00
histedit.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
init.h
input.c Simplify interface for general use. 1998-05-20 01:36:14 +00:00
input.h
jobs.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
jobs.h pid should be pid_t and status should be int! Avoid alignment problems... 1997-10-15 13:23:10 +00:00
machdep.h
mail.c Include our local includes after the system's ones. 1998-01-31 12:36:16 +00:00
mail.h
main.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
main.h
memalloc.c Include our local includes after the system's ones. 1998-01-31 12:36:16 +00:00
memalloc.h
miscbltin.c include <stdlib.h> to get the prototype for free() 1998-09-26 19:28:12 +00:00
miscbltin.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
mkbuiltins Pr/5221: Jason Thorpe: Simplify sh Makefile, so that builts from other 1998-03-29 09:27:40 +00:00
mkinit.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mknodes.c Delint. 1998-07-28 05:31:22 +00:00
mksyntax.c Patch to make sh cross-compile right. mksyntax reports unsigned char for 1998-09-12 18:55:07 +00:00
mktokens
myhistedit.h Track $TERM and call the appropriate editline(3) routine to update the 1997-04-11 22:45:38 +00:00
mystring.c Fix compiler warnings. 1997-07-04 21:01:48 +00:00
mystring.h
nodes.c.pat Pointer arithmetic on void * is illegal but gcc does not care. 1997-04-11 23:03:08 +00:00
nodetypes
options.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
options.h
output.c - Add gcc attributes to printf like functions 1998-01-31 12:37:55 +00:00
output.h - Add gcc attributes to printf like functions 1998-01-31 12:37:55 +00:00
parser.c Fixed memory leak on old style command substitution 1998-09-26 20:56:33 +00:00
parser.h
redir.c Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
redir.h
sh.1 Massive fixup: 1999-01-11 19:34:53 +00:00
shell.h
show.c Remove local declaration of getenv(); 1997-12-01 14:40:16 +00:00
show.h add forward declaration of union node; 1997-04-11 22:58:40 +00:00
trap.c PR/6213: Urban Boquist: /bin/sh does not handle a trapped signal correctly 1999-01-18 16:18:04 +00:00
trap.h Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
var.c fix default PATH to be <paths.h> _PATH_DEFPATH 1998-04-07 21:15:33 +00:00
var.h Track $TERM and call the appropriate editline(3) routine to update the 1997-04-11 22:45:38 +00:00