]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/hack.ioctl.c
2 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
6 static char rcsid
[] = "$NetBSD: hack.ioctl.c,v 1.5 1995/04/28 23:01:45 mycroft Exp $";
9 /* This cannot be part of hack.tty.c (as it was earlier) since on some
10 systems (e.g. MUNIX) the include files <termio.h> and <sgtty.h>
11 define the same constants, and the C preprocessor complains. */
15 struct termios termios
;
18 (void) tcgetattr(fileno(stdin
), &termios
);
22 (void) tcsetattr(fileno(stdin
), TCSADRAIN
, &termios
);
25 #ifdef SUSPEND /* implies BSD */
29 if(signal(SIGTSTP
, SIG_IGN
) == SIG_DFL
) {
31 (void) signal(SIGTSTP
, SIG_DFL
);
32 (void) kill(0, SIGTSTP
);
37 pline("I don't think your shell has job control.");
40 pline("Sorry, it seems we have no SIGTSTP here. Try ! or S.");