?? ioctl.h
字號:
#ifndef _IOCTLH
#define _IOCTLH
/*
EJB
This header file is by no means compliant
to any standard. All I have done
is thrown most of the termio.h 4.3 BSD stuff
in here plus other ioctl.h things.
*/
#define ECHOCTL 0001000
#define ECHOPRT 0002000
#define ECHOKE 0004000
#define DEFECHO 0010000
#define FLUSHO 0020000
#define LOBLK 0040000
#define PAREXT 004000000
#define PENDIN 0040000
#define RCV1EN 0010000
#define TIOC ('T'<<8)
#define TCGETA (TIOC|1)
#define TCSETA (TIOC|2)
#define TCSETAW (TIOC|3)
#define TCSETAF (TIOC|4)
#define TCSBRK (TIOC|5)
#define TCXONC (TIOC|6)
#define TCFLSH (TIOC|7)
#define XCASE 0000004
#define XCLUDE 000100000 /* *V7* exclusive use coming fron XENIX */
#define XMT1EN 0020000
/* c_iflag */
#define DOSMODE 0100000 /* for 386 compatibility */
#define IMAXBEL 0020000
#define IUCLC 0001000
/* ?? */
#define CBAUD 0000017
#define CIBAUD 03600000
#define CREAD 0000200
#define CRTSCTS 020000000000
#define DEFECHO 0010000
pid_t tcgetsid(); /*???*/
/* c_oflag */
#define OLCUC 0000002
#define ONLCR 0000004
#define OCRNL 0000010
#define ONOCR 0000020
#define ONLRET 0000040
#define OFILL 0000100
#define OFDEL 0000200
#define NLDLY 0000400
#define NL0 0
#define NL1 0000400
#define CRDLY 0003000
#define CR0 0
#define CR1 0001000
#define CR2 0002000
#define CR3 0003000
#define TABDLY 0014000
#define TAB0 0
#define TAB1 0004000
#define TAB2 0010000
#define TAB3 0014000
#define XTABS 0014000
#define BSDLY 0020000
#define BS0 0
#define BS1 0020000
#define VTDLY 0040000
#define VT0 0
#define VT1 0040000
#define FFDLY 0100000
#define FF0 0
#define FF1 0100000
/* termios ioctls */
#define TCGETS (TIOC|13)
#define TCSETS (TIOC|14)
#define TCSETSW (TIOC|15)
#define TCSETSF (TIOC|16)
/* TIOC ioctls for BSD, ptys, job control and modem control */
#define TIOCGETD (tIOC|0)
#define TIOCSETD (tIOC|1)
#define TIOCHPCL (tIOC|2)
#define TIOCGETP (tIOC|8)
#define TIOCSETP (tIOC|9)
#define TIOCSETN (tIOC|10)
#define TIOCEXCL (tIOC|13)
#define TIOCNXCL (tIOC|14)
#define TIOCSETC (tIOC|17)
#define TIOCGETC (tIOC|18)
/* POSIX job control ioctls */
#define TIOCGPGRP _IOR('t', 119, int) /* get pgrp of tty */
#define TIOCSPGRP _IOW('t', 118, int) /* set pgrp of tty */
#define TIOCGSID (tIOC|22) /* get session id on ctty*/
#define TIOCSSID (tIOC|24) /* set session id on ctty*/
/* Miscellanous */
#define TIOCSTI (TIOC|114) /* simulate terminal input */
/* Modem control */
#define TIOCMSET (tIOC|26) /* set all modem bits */
#define TIOCMBIS (tIOC|27) /* bis modem bits */
#define TIOCMBIC (tIOC|28) /* bic modem bits */
#define TIOCMGET (tIOC|29) /* get all modem bits */
#define TIOCM_LE 0001 /* line enable */
#define TIOCM_DTR 0002 /* data terminal ready */
#define TIOCM_RTS 0004 /* request to send */
#define TIOCM_ST 0010 /* secondary transmit */
#define TIOCM_SR 0020 /* secondary receive */
#define TIOCM_CTS 0040 /* clear to send */
#define TIOCM_CAR 0100 /* carrier detect */
#define TIOCM_CD TIOCM_CAR
#define TIOCM_RNG 0200 /* ring */
#define TIOCM_RI TIOCM_RNG
#define TIOCM_DSR 0400 /* data set ready */
struct winsize {
unsigned short ws_row; /* rows, in characters*/
unsigned short ws_col; /* columns, in character */
unsigned short ws_xpixel; /* horizontal size, pixels */
unsigned short ws_ypixel; /* vertical size, pixels */
};
#define VSWTCH 7
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -