summaryrefslogtreecommitdiff
path: root/games/hack/hack.ioctl.c
diff options
context:
space:
mode:
authorsvn2git <svn2git@FreeBSD.org>1994-07-01 08:00:00 +0000
committersvn2git <svn2git@FreeBSD.org>1994-07-01 08:00:00 +0000
commit5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 (patch)
treee779b5a6edddbb949b7990751b12d6f25304ba86 /games/hack/hack.ioctl.c
parenta16f65c7d117419bd266c28a1901ef129a337569 (diff)
Diffstat (limited to 'games/hack/hack.ioctl.c')
-rw-r--r--games/hack/hack.ioctl.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/games/hack/hack.ioctl.c b/games/hack/hack.ioctl.c
deleted file mode 100644
index 6669ceaba363..000000000000
--- a/games/hack/hack.ioctl.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
-/* hack.ioctl.c - version 1.0.2 */
-
-/* This cannot be part of hack.tty.c (as it was earlier) since on some
- systems (e.g. MUNIX) the include files <termio.h> and <sgtty.h>
- define the same constants, and the C preprocessor complains. */
-#include <stdio.h>
-#include "config.h"
-#ifdef BSD
-#include <sgtty.h>
-struct ltchars ltchars, ltchars0;
-#else
-#include <termio.h> /* also includes part of <sgtty.h> */
-struct termio termio;
-#endif BSD
-
-getioctls() {
-#ifdef BSD
- (void) ioctl(fileno(stdin), (int) TIOCGLTC, (char *) &ltchars);
- (void) ioctl(fileno(stdin), (int) TIOCSLTC, (char *) &ltchars0);
-#else
- (void) ioctl(fileno(stdin), (int) TCGETA, &termio);
-#endif BSD
-}
-
-setioctls() {
-#ifdef BSD
- (void) ioctl(fileno(stdin), (int) TIOCSLTC, (char *) &ltchars);
-#else
- (void) ioctl(fileno(stdin), (int) TCSETA, &termio);
-#endif BSD
-}
-
-#ifdef SUSPEND /* implies BSD */
-dosuspend() {
-#include <signal.h>
-#ifdef SIGTSTP
- if(signal(SIGTSTP, SIG_IGN) == SIG_DFL) {
- settty((char *) 0);
- (void) signal(SIGTSTP, SIG_DFL);
- (void) kill(0, SIGTSTP);
- gettty();
- setftty();
- docrt();
- } else {
- pline("I don't think your shell has job control.");
- }
-#else SIGTSTP
- pline("Sorry, it seems we have no SIGTSTP here. Try ! or S.");
-#endif SIGTSTP
- return(0);
-}
-#endif SUSPEND