Deleted Added
full compact
tty_subs.c (36049) tty_subs.c (46684)
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

--- 26 unchanged lines hidden (view full) ---

35 * SUCH DAMAGE.
36 */
37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)tty_subs.c 8.2 (Berkeley) 4/18/94";
41#endif
42static const char rcsid[] =
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

--- 26 unchanged lines hidden (view full) ---

35 * SUCH DAMAGE.
36 */
37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)tty_subs.c 8.2 (Berkeley) 4/18/94";
41#endif
42static const char rcsid[] =
43 "$Id$";
43 "$Id: tty_subs.c,v 1.9 1998/05/15 06:27:48 charnier Exp $";
44#endif /* not lint */
45
46#include <sys/types.h>
47#include <sys/stat.h>
48#include <fcntl.h>
49#include <stdio.h>
50#include <unistd.h>
51#include <stdlib.h>

--- 11 unchanged lines hidden (view full) ---

63 */
64
65#define DEVTTY "/dev/tty" /* device for interactive i/o */
66static FILE *ttyoutf = NULL; /* output pointing at control tty */
67static FILE *ttyinf = NULL; /* input pointing at control tty */
68
69/*
70 * tty_init()
44#endif /* not lint */
45
46#include <sys/types.h>
47#include <sys/stat.h>
48#include <fcntl.h>
49#include <stdio.h>
50#include <unistd.h>
51#include <stdlib.h>

--- 11 unchanged lines hidden (view full) ---

63 */
64
65#define DEVTTY "/dev/tty" /* device for interactive i/o */
66static FILE *ttyoutf = NULL; /* output pointing at control tty */
67static FILE *ttyinf = NULL; /* input pointing at control tty */
68
69/*
70 * tty_init()
71 * try to open the controlling termina (if any) for this process. if the
71 * try to open the controlling terminal (if any) for this process. if the
72 * open fails, future ops that require user input will get an EOF
73 */
74
75#if __STDC__
76int
77tty_init(void)
78#else
79int

--- 166 unchanged lines hidden ---
72 * open fails, future ops that require user input will get an EOF
73 */
74
75#if __STDC__
76int
77tty_init(void)
78#else
79int

--- 166 unchanged lines hidden ---