Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/ttycom.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct winsize { | struct winsize { | ||||
unsigned short ws_row; /* rows, in characters */ | unsigned short ws_row; /* rows, in characters */ | ||||
unsigned short ws_col; /* columns, in characters */ | unsigned short ws_col; /* columns, in characters */ | ||||
unsigned short ws_xpixel; /* horizontal size, pixels */ | unsigned short ws_xpixel; /* horizontal size, pixels */ | ||||
unsigned short ws_ypixel; /* vertical size, pixels */ | unsigned short ws_ypixel; /* vertical size, pixels */ | ||||
}; | }; | ||||
/* | |||||
* Fractional baudrate. Used by TIOCSFBAUD and TIOCGFBAUD | |||||
*/ | |||||
struct baud_fraction { | |||||
int bf_numerator; | |||||
int bf_denominator; | |||||
}; | |||||
/* 0-2 compat */ | /* 0-2 compat */ | ||||
/* 3-7 unused */ | /* 3-7 unused */ | ||||
/* 8-10 compat */ | /* 8-10 compat */ | ||||
/* 11-12 unused */ | /* 11-12 unused */ | ||||
#define TIOCEXCL _IO('t', 13) /* set exclusive use of tty */ | #define TIOCEXCL _IO('t', 13) /* set exclusive use of tty */ | ||||
#define TIOCNXCL _IO('t', 14) /* reset exclusive use of tty */ | #define TIOCNXCL _IO('t', 14) /* reset exclusive use of tty */ | ||||
#define TIOCGPTN _IOR('t', 15, int) /* Get pts number. */ | #define TIOCGPTN _IOR('t', 15, int) /* Get pts number. */ | ||||
#define TIOCFLUSH _IOW('t', 16, int) /* flush buffers */ | #define TIOCFLUSH _IOW('t', 16, int) /* flush buffers */ | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | #define TIOCOUTQ _IOR('t', 115, int) /* output queue size */ | ||||
/* 116-117 compat */ | /* 116-117 compat */ | ||||
#define TIOCSPGRP _IOW('t', 118, int) /* set pgrp of tty */ | #define TIOCSPGRP _IOW('t', 118, int) /* set pgrp of tty */ | ||||
#define TIOCGPGRP _IOR('t', 119, int) /* get pgrp of tty */ | #define TIOCGPGRP _IOR('t', 119, int) /* get pgrp of tty */ | ||||
#define TIOCCDTR _IO('t', 120) /* clear data terminal ready */ | #define TIOCCDTR _IO('t', 120) /* clear data terminal ready */ | ||||
#define TIOCSDTR _IO('t', 121) /* set data terminal ready */ | #define TIOCSDTR _IO('t', 121) /* set data terminal ready */ | ||||
#define TIOCCBRK _IO('t', 122) /* clear break bit */ | #define TIOCCBRK _IO('t', 122) /* clear break bit */ | ||||
#define TIOCSBRK _IO('t', 123) /* set break bit */ | #define TIOCSBRK _IO('t', 123) /* set break bit */ | ||||
/* 124-127 compat */ | /* 124-127 compat */ | ||||
#define TIOCSFBAUD _IOW('t', 128, struct baud_fraction) /* Set fractional baudrate */ | |||||
#define TIOCGFBAUD _IOR('t', 129, struct baud_fraction) /* Get fractional baudrate */ | |||||
#define TTYDISC 0 /* termios tty line discipline */ | #define TTYDISC 0 /* termios tty line discipline */ | ||||
#define SLIPDISC 4 /* serial IP discipline */ | #define SLIPDISC 4 /* serial IP discipline */ | ||||
#define PPPDISC 5 /* PPP discipline */ | #define PPPDISC 5 /* PPP discipline */ | ||||
#define NETGRAPHDISC 6 /* Netgraph tty node discipline */ | #define NETGRAPHDISC 6 /* Netgraph tty node discipline */ | ||||
#define H4DISC 7 /* Netgraph Bluetooth H4 discipline */ | #define H4DISC 7 /* Netgraph Bluetooth H4 discipline */ | ||||
#endif /* !_SYS_TTYCOM_H_ */ | #endif /* !_SYS_TTYCOM_H_ */ |