home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
pdksh-4.9-src.tgz
/
tar.out
/
contrib
/
pdksh
/
sh
/
tty.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
900b
|
41 lines
/*
tty.h -- centralized definitions for a variety of terminal interfaces
created by DPK, Oct. 1986
last edit: 30-Jul-1987 D A Gwyn
*/
#ifdef _POSIX_TERM
# include <termios.h>
#else
# if _BSD_SYSV /* BRL UNIX System V emulation */
# include <termio.h> /* includes <sys/_ioctl.h> */
# ifndef NTTYDISC
# define TIOCGETD _IOR( 't', 0, int )
# define TIOCSETD _IOW( 't', 1, int )
# define NTTYDISC 2
# endif
# ifndef TIOCSTI
# define TIOCSTI _IOW( 't', 114, char )
# endif
# ifndef TIOCSPGRP
# define TIOCSPGRP _IOW( 't', 118, int )
# endif
# else /* !_BSD_SYSV */
# if _BSD
# ifdef _MINIX
# include <sgtty.h>
# define TIOCSETN TIOCSETP
# else
# include <sys/ioctl.h>
# ifdef __amigaos__
# include <sys/ioctl_compat.h>
# endif
# endif
# else
# include <termio.h>
# endif
# endif /* _BSD_SYSV */
#endif /* _POSIX_TERM */