summaryrefslogtreecommitdiff
path: root/dviware/dvgtk/unixio.h
blob: 8d379765f69f7e6bce850e27d39ab6780e8808fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* unixio.h - Unix terminal and signal handling
   $Id: unixio.h,v 0.2 1997/03/28 03:17:40 tjchol01 Exp $
   Authors: Andrew Trevorrow, Ian Dall, Geoffrey Tobin, Tomasz J. Cholewo
 */

#ifndef UNIXIO_H
#define UNIXIO_H

#include "dvgt.h"

typedef struct
  {
    unsigned int intr, tstop:1;
  }
sig_flags_t;
typedef struct
  {
    unsigned int cbreak, raw, echo:1;
  }
cmode_flags_t;

extern sig_flags_t sig_flags;
extern cmode_flags_t cmode_flags;

/* Alex Dickinson                                                         */
/* Definitions for some unix ioctl calls. These external procedures       */
/* refer to the C functions contained in unixio.c.                        */

extern void save_init_tty ();
extern void restore_init_tty ();
extern void save_temp_tty ();
extern void restore_temp_tty ();
extern void singlecharon ();
extern void singlecharoff ();
extern void echoon ();
extern void echooff ();
extern void rawouton ();
extern void rawoutoff ();
extern int buffercount ();
extern void suspend ();

#endif /* UNIXIO_H */

/* end unixio.h */