termios.h File Reference

#include <ansi.h>

Include dependency graph for termios.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  termios

Defines

#define NCCS   20
#define BRKINT   0x0001
#define ICRNL   0x0002
#define IGNBRK   0x0004
#define IGNCR   0x0008
#define IGNPAR   0x0010
#define INLCR   0x0020
#define INPCK   0x0040
#define ISTRIP   0x0080
#define IXOFF   0x0100
#define IXON   0x0200
#define PARMRK   0x0400
#define OPOST   0x0001
#define CLOCAL   0x0001
#define CREAD   0x0002
#define CSIZE   0x000C
#define CS5   0x0000
#define CS6   0x0004
#define CS7   0x0008
#define CS8   0x000C
#define CSTOPB   0x0010
#define HUPCL   0x0020
#define PARENB   0x0040
#define PARODD   0x0080
#define ECHO   0x0001
#define ECHOE   0x0002
#define ECHOK   0x0004
#define ECHONL   0x0008
#define ICANON   0x0010
#define IEXTEN   0x0020
#define ISIG   0x0040
#define NOFLSH   0x0080
#define TOSTOP   0x0100
#define VEOF   0
#define VEOL   1
#define VERASE   2
#define VINTR   3
#define VKILL   4
#define VMIN   5
#define VQUIT   6
#define VTIME   7
#define VSUSP   8
#define VSTART   9
#define VSTOP   10
#define _POSIX_VDISABLE   (cc_t)0xFF
#define B0   0x0000
#define B50   0x1000
#define B75   0x2000
#define B110   0x3000
#define B134   0x4000
#define B150   0x5000
#define B200   0x6000
#define B300   0x7000
#define B600   0x8000
#define B1200   0x9000
#define B1800   0xA000
#define B2400   0xB000
#define B4800   0xC000
#define B9600   0xD000
#define B19200   0xE000
#define B38400   0xF000
#define TCSANOW   1
#define TCSADRAIN   2
#define TCSAFLUSH   3
#define TCIFLUSH   1
#define TCOFLUSH   2
#define TCIOFLUSH   3
#define TCOOFF   1
#define TCOON   2
#define TCIOFF   3
#define TCION   4
#define cfgetispeed(termios_p)   ((termios_p)->c_ispeed)
#define cfgetospeed(termios_p)   ((termios_p)->c_ospeed)
#define cfsetispeed(termios_p, speed)   ((termios_p)->c_ispeed = (speed), 0)
#define cfsetospeed(termios_p, speed)   ((termios_p)->c_ospeed = (speed), 0)

Typedefs

typedef unsigned short tcflag_t
typedef unsigned char cc_t
typedef unsigned int speed_t

Functions

 _PROTOTYPE (int tcsendbreak,(int _fildes, int _duration))
 _PROTOTYPE (int tcdrain,(int _filedes))
 _PROTOTYPE (int tcflush,(int _filedes, int _queue_selector))
 _PROTOTYPE (int tcflow,(int _filedes, int _action))
 _PROTOTYPE (speed_t cfgetispeed,(const struct termios *_termios_p))
 _PROTOTYPE (int cfsetispeed,(struct termios *_termios_p, speed_t _speed))
 _PROTOTYPE (int tcgetattr,(int _filedes, struct termios *_termios_p))
 _PROTOTYPE (int tcsetattr,(int _filedes, int _opt_actions, const struct termios *_termios_p))


Define Documentation

#define _POSIX_VDISABLE   (cc_t)0xFF
 

Definition at line 77 of file termios.h.

Referenced by do_print_char(), fpathconf(), and set_control().

#define B0   0x0000
 

Definition at line 86 of file termios.h.

#define B110   0x3000
 

Definition at line 89 of file termios.h.

#define B1200   0x9000
 

Definition at line 95 of file termios.h.

#define B134   0x4000
 

Definition at line 90 of file termios.h.

#define B150   0x5000
 

Definition at line 91 of file termios.h.

#define B1800   0xA000
 

Definition at line 96 of file termios.h.

#define B19200   0xE000
 

Definition at line 100 of file termios.h.

#define B200   0x6000
 

Definition at line 92 of file termios.h.

#define B2400   0xB000
 

Definition at line 97 of file termios.h.

#define B300   0x7000
 

Definition at line 93 of file termios.h.

#define B38400   0xF000
 

Definition at line 101 of file termios.h.

#define B4800   0xC000
 

Definition at line 98 of file termios.h.

#define B50   0x1000
 

Definition at line 87 of file termios.h.

#define B600   0x8000
 

Definition at line 94 of file termios.h.

#define B75   0x2000
 

Definition at line 88 of file termios.h.

#define B9600   0xD000
 

Definition at line 99 of file termios.h.

#define BRKINT   0x0001
 

Definition at line 25 of file termios.h.

Referenced by mode(), option(), report(), and ts_init().

#define cfgetispeed termios_p   )     ((termios_p)->c_ispeed)
 

Definition at line 136 of file termios.h.

Referenced by report().

#define cfgetospeed termios_p   )     ((termios_p)->c_ospeed)
 

Definition at line 137 of file termios.h.

Referenced by inittty(), main(), mode(), report(), and resume_curses().

#define cfsetispeed termios_p,
speed   )     ((termios_p)->c_ispeed = (speed), 0)
 

Definition at line 138 of file termios.h.

Referenced by option(), set_uart(), and setup_term().

#define cfsetospeed termios_p,
speed   )     ((termios_p)->c_ospeed = (speed), 0)
 

Definition at line 139 of file termios.h.

Referenced by option(), set_uart(), and setup_term().

#define CLOCAL   0x0001
 

Definition at line 41 of file termios.h.

Referenced by option(), and report().

#define CREAD   0x0002
 

Definition at line 42 of file termios.h.

Referenced by option(), and report().

#define CS5   0x0000
 

Definition at line 44 of file termios.h.

Referenced by option(), and report().

#define CS6   0x0004
 

Definition at line 45 of file termios.h.

Referenced by option(), and report().

#define CS7   0x0008
 

Definition at line 46 of file termios.h.

Referenced by option(), and report().

#define CS8   0x000C
 

Definition at line 47 of file termios.h.

Referenced by mode(), option(), and report().

#define CSIZE   0x000C
 

Definition at line 43 of file termios.h.

Referenced by option(), report(), and set_uart().

#define CSTOPB   0x0010
 

Definition at line 48 of file termios.h.

Referenced by mode(), option(), and report().

#define ECHO   0x0001
 

Definition at line 54 of file termios.h.

#define ECHOE   0x0002
 

Definition at line 55 of file termios.h.

Referenced by back_over(), inittty(), option(), and report().

#define ECHOK   0x0004
 

Definition at line 56 of file termios.h.

Referenced by inittty(), option(), and report().

#define ECHONL   0x0008
 

Definition at line 57 of file termios.h.

Referenced by doit(), getpass(), inittty(), mode(), option(), raw_mode(), report(), set_raw(), ts_init(), tty_echo(), ttysetflags(), and will_option().

#define HUPCL   0x0020
 

Definition at line 49 of file termios.h.

Referenced by option(), and report().

#define ICANON   0x0010
 

Definition at line 58 of file termios.h.

Referenced by do_read(), doit(), gettmode(), in_transfer(), inittty(), main(), mode(), option(), raw_mode(), report(), select_try(), set_raw(), Set_Term(), setattr(), settty(), ts_init(), tty_echo(), tty_raw(), ttysetflags(), and will_option().

#define ICRNL   0x0002
 

Definition at line 26 of file termios.h.

Referenced by doit(), getpass(), gettmode(), option(), report(), set_raw(), Set_Term(), ts_init(), tty_raw(), ttysetflags(), and will_option().

#define IEXTEN   0x0020
 

Definition at line 59 of file termios.h.

Referenced by doit(), in_process(), mode(), option(), report(), set_raw(), ts_init(), ttysetflags(), and will_option().

#define IGNBRK   0x0004
 

Definition at line 27 of file termios.h.

Referenced by mode(), option(), report(), resume_curses(), and ts_init().

#define IGNCR   0x0008
 

Definition at line 28 of file termios.h.

Referenced by doit(), option(), report(), set_raw(), and will_option().

#define IGNPAR   0x0010
 

Definition at line 29 of file termios.h.

Referenced by option(), and report().

#define INLCR   0x0020
 

Definition at line 30 of file termios.h.

Referenced by doit(), option(), report(), set_raw(), ts_init(), and will_option().

#define INPCK   0x0040
 

Definition at line 31 of file termios.h.

Referenced by option(), and report().

#define ISIG   0x0040
 

Definition at line 60 of file termios.h.

Referenced by doit(), gettmode(), mode(), option(), report(), resume_curses(), set_raw(), ts_init(), tty_raw(), ttysetflags(), and will_option().

#define ISTRIP   0x0080
 

Definition at line 32 of file termios.h.

Referenced by doit(), in_process(), option(), report(), and resume_curses().

#define IXOFF   0x0100
 

Definition at line 33 of file termios.h.

Referenced by doit(), mode(), option(), raw_mode(), report(), resume_curses(), set_raw(), ts_init(), and will_option().

#define IXON   0x0200
 

Definition at line 34 of file termios.h.

Referenced by doit(), inittty(), mode(), option(), raw_mode(), report(), resume_curses(), set_raw(), setattr(), ts_init(), ttysetflags(), and will_option().

#define NCCS   20
 

Definition at line 10 of file termios.h.

Referenced by report(), set_control(), set_min_tim(), and set_saved_settings().

#define NOFLSH   0x0080
 

Definition at line 61 of file termios.h.

Referenced by option(), report(), and sigchar().

#define OPOST   0x0001
 

Definition at line 38 of file termios.h.

Referenced by doit(), getpass(), inittty(), option(), out_char(), out_process(), report(), resume_curses(), set_raw(), Set_Term(), ts_init(), ttysetflags(), and will_option().

#define PARENB   0x0040
 

Definition at line 50 of file termios.h.

Referenced by mode(), option(), report(), and set_uart().

#define PARMRK   0x0400
 

Definition at line 35 of file termios.h.

Referenced by doit(), option(), and report().

#define PARODD   0x0080
 

Definition at line 51 of file termios.h.

Referenced by option(), report(), and set_uart().

#define TCIFLUSH   1
 

Definition at line 109 of file termios.h.

Referenced by do_ioctl().

#define TCIOFF   3
 

Definition at line 116 of file termios.h.

Referenced by do_ioctl().

#define TCIOFLUSH   3
 

Definition at line 111 of file termios.h.

Referenced by do_ioctl().

#define TCION   4
 

Definition at line 117 of file termios.h.

Referenced by do_ioctl().

#define TCOFLUSH   2
 

Definition at line 110 of file termios.h.

Referenced by do_ioctl().

#define TCOOFF   1
 

Definition at line 114 of file termios.h.

Referenced by do_ioctl().

#define TCOON   2
 

Definition at line 115 of file termios.h.

Referenced by do_ioctl(), and mode().

#define TCSADRAIN   2
 

Definition at line 105 of file termios.h.

Referenced by resume_curses(), suspend_curses(), and tcsetattr().

#define TCSAFLUSH   3
 

Definition at line 106 of file termios.h.

Referenced by mode(), and tcsetattr().

#define TCSANOW   1
 

Definition at line 104 of file termios.h.

Referenced by DOpass(), getpass(), inittty(), intr(), main(), mode(), quit(), raw_mode(), Reset_Term(), resettty(), restore_ttyflags(), Set_Term(), settty(), setup_term(), tcsetattr(), terminate(), ts_enter(), ts_exit(), ts_init(), tty_raw(), ttysetflags(), will_option(), and writetty().

#define TOSTOP   0x0100
 

Definition at line 62 of file termios.h.

Referenced by option(), and report().

#define VEOF   0
 

Definition at line 65 of file termios.h.

Referenced by option(), and report().

#define VEOL   1
 

Definition at line 66 of file termios.h.

Referenced by option(), and report().

#define VERASE   2
 

Definition at line 67 of file termios.h.

Referenced by DoTalk(), inittty(), option(), report(), and resume_curses().

#define VINTR   3
 

Definition at line 68 of file termios.h.

Referenced by inittty(), mode(), option(), raw_mode(), report(), resume_curses(), and Set_Term().

#define VKILL   4
 

Definition at line 69 of file termios.h.

Referenced by DoTalk(), inittty(), option(), and report().

#define VMIN   5
 

Definition at line 70 of file termios.h.

Referenced by do_read(), inittty(), mode(), option(), report(), resume_curses(), set_raw(), setattr(), and ts_init().

#define VQUIT   6
 

Definition at line 71 of file termios.h.

Referenced by inittty(), mode(), option(), raw_mode(), and report().

#define VSTART   9
 

Definition at line 74 of file termios.h.

Referenced by do_ioctl(), option(), and report().

#define VSTOP   10
 

Definition at line 75 of file termios.h.

Referenced by do_ioctl(), option(), and report().

#define VSUSP   8
 

Definition at line 73 of file termios.h.

Referenced by option(), raw_mode(), report(), and resume_curses().

#define VTIME   7
 

Definition at line 72 of file termios.h.

Referenced by do_read(), inittty(), mode(), option(), report(), resume_curses(), set_raw(), setattr(), settimer(), and ts_init().


Typedef Documentation

typedef unsigned char cc_t
 

Definition at line 7 of file termios.h.

typedef unsigned int speed_t
 

Definition at line 8 of file termios.h.

typedef unsigned short tcflag_t
 

Definition at line 6 of file termios.h.


Function Documentation

_PROTOTYPE int  tcsetattr,
(int _filedes, int _opt_actions, const struct termios *_termios_p) 
 

_PROTOTYPE int  tcgetattr,
(int _filedes, struct termios *_termios_p) 
 

_PROTOTYPE int  cfsetispeed,
(struct termios *_termios_p, speed_t _speed) 
 

_PROTOTYPE speed_t  cfgetispeed,
(const struct termios *_termios_p) 
 

_PROTOTYPE int  tcflow,
(int _filedes, int _action) 
 

_PROTOTYPE int  tcflush,
(int _filedes, int _queue_selector) 
 

_PROTOTYPE int  tcdrain,
(int _filedes) 
 

_PROTOTYPE int  tcsendbreak,
(int _fildes, int _duration) 
 


Generated on Fri Apr 14 23:13:47 2006 for minix by  doxygen 1.4.6