#ifndef _SYS_TTOLD_H
#define	_SYS_TTOLD_H

/* ВНИМАНИЕ: нерабочий файл. только для компиляции старых программ. */

/* ioctls set to zero, so that they return errors */
#define TIOCGETP    0
#define TIOCSETP    0

struct  sgttyb {
    char    sg_ispeed;      /* input speed */
    char    sg_ospeed;      /* output speed */
    char    sg_erase;       /* erase character */
    char    sg_kill;        /* kill character */
    int     sg_flags;       /* mode flags */
};

#define O_CBREAK    0x00000002  /* half-cooked mode */
#define O_LCASE     0x00000004  /* simulate lower case */
#define O_ECHO      0x00000008  /* echo input */
#define O_CRMOD     0x00000010  /* map \r to \r\n on output */
#define O_RAW       0x00000020  /* no i/o processing */
#define O_XTABS     0x00000c00  /* expand tabs on output */

#define CBREAK      O_CBREAK
#define LCASE       O_LCASE
#define ECHO        O_ECHO
#define CRMOD       O_CRMOD
#define RAW         O_RAW
#define XTABS       O_XTABS

#endif	/* _SYS_TTOLD_H */

