#include <sys/ttycom.h>

sys/ttycom.h

includes: sys/ioccom.h
73 macros · 1 struct

structwinsize

Window/terminal size structure. This information is stored by the kernel in order to provide a consistent interface, but is not used by the kernel.
size 8, align 2
unsigned shortws_rowrows, in characters
unsigned shortws_colcolumns, in characters
unsigned shortws_xpixelhorizontal size, pixels
unsigned shortws_ypixelvertical size, pixels

macroTIOCMODG

#define TIOCMODG _IOR('t', 3, int)
get modem control state

macroTIOCMODS

#define TIOCMODS _IOW('t', 4, int)
set modem control state

macroTIOCM_LE

#define TIOCM_LE 0001
line enable

macroTIOCM_DTR

#define TIOCM_DTR 0002
data terminal ready

macroTIOCM_RTS

#define TIOCM_RTS 0004
request to send

macroTIOCM_ST

#define TIOCM_ST 0010
secondary transmit

macroTIOCM_SR

#define TIOCM_SR 0020
secondary receive

macroTIOCM_CTS

#define TIOCM_CTS 0040
clear to send

macroTIOCM_CAR

#define TIOCM_CAR 0100
carrier detect

macroTIOCM_CD

#define TIOCM_CD TIOCM_CAR

macroTIOCM_RNG

#define TIOCM_RNG 0200
ring

macroTIOCM_RI

#define TIOCM_RI TIOCM_RNG

macroTIOCM_DSR

#define TIOCM_DSR 0400
data set ready

macroTIOCEXCL

8-10 compat
#define TIOCEXCL _IO('t', 13)
set exclusive use of tty

macroTIOCNXCL

#define TIOCNXCL _IO('t', 14)
reset exclusive use of tty

macroTIOCFLUSH

15 unused
#define TIOCFLUSH _IOW('t', 16, int)
flush buffers

macroTIOCGETA

17-18 compat
#define TIOCGETA _IOR('t', 19, struct termios)
get termios struct

macroTIOCSETA

#define TIOCSETA _IOW('t', 20, struct termios)
set termios struct

macroTIOCSETAW

#define TIOCSETAW _IOW('t', 21, struct termios)
drain output, set

macroTIOCSETAF

#define TIOCSETAF _IOW('t', 22, struct termios)
drn out, fls in, set

macroTIOCGETD

#define TIOCGETD _IOR('t', 26, int)
get line discipline

macroTIOCSETD

#define TIOCSETD _IOW('t', 27, int)
set line discipline

macroTIOCIXON

#define TIOCIXON _IO('t', 129)
internal input VSTART

macroTIOCIXOFF

#define TIOCIXOFF _IO('t', 128)
internal input VSTOP

macroTIOCSBRK

127-124 compat
#define TIOCSBRK _IO('t', 123)
set break bit

macroTIOCCBRK

#define TIOCCBRK _IO('t', 122)
clear break bit

macroTIOCSDTR

#define TIOCSDTR _IO('t', 121)
set data terminal ready

macroTIOCCDTR

#define TIOCCDTR _IO('t', 120)
clear data terminal ready

macroTIOCGPGRP

#define TIOCGPGRP _IOR('t', 119, int)
get pgrp of tty

macroTIOCSPGRP

#define TIOCSPGRP _IOW('t', 118, int)
set pgrp of tty

macroTIOCOUTQ

117-116 compat
#define TIOCOUTQ _IOR('t', 115, int)
output queue size

macroTIOCSTI

#define TIOCSTI _IOW('t', 114, char)
simulate terminal input

macroTIOCNOTTY

#define TIOCNOTTY _IO('t', 113)
void tty association

macroTIOCPKT

#define TIOCPKT _IOW('t', 112, int)
pty: set/clear packet mode

macroTIOCPKT_DATA

#define TIOCPKT_DATA 0x00
data packet

macroTIOCPKT_FLUSHREAD

#define TIOCPKT_FLUSHREAD 0x01
flush packet

macroTIOCPKT_FLUSHWRITE

#define TIOCPKT_FLUSHWRITE 0x02
flush packet

macroTIOCPKT_STOP

#define TIOCPKT_STOP 0x04
stop output

macroTIOCPKT_START

#define TIOCPKT_START 0x08
start output

macroTIOCPKT_NOSTOP

#define TIOCPKT_NOSTOP 0x10
no more ^S, ^Q

macroTIOCPKT_DOSTOP

#define TIOCPKT_DOSTOP 0x20
now do ^S ^Q

macroTIOCPKT_IOCTL

#define TIOCPKT_IOCTL 0x40
state change of pty driver

macroTIOCSTOP

#define TIOCSTOP _IO('t', 111)
stop output, like ^S

macroTIOCSTART

#define TIOCSTART _IO('t', 110)
start output, like ^Q

macroTIOCMSET

#define TIOCMSET _IOW('t', 109, int)
set all modem bits

macroTIOCMBIS

#define TIOCMBIS _IOW('t', 108, int)
bis modem bits

macroTIOCMBIC

#define TIOCMBIC _IOW('t', 107, int)
bic modem bits

macroTIOCMGET

#define TIOCMGET _IOR('t', 106, int)
get all modem bits

macroTIOCGWINSZ

105 unused
#define TIOCGWINSZ _IOR('t', 104, struct winsize)
get window size

macroTIOCSWINSZ

#define TIOCSWINSZ _IOW('t', 103, struct winsize)
set window size

macroTIOCUCNTL

#define TIOCUCNTL _IOW('t', 102, int)
pty: set/clr usr cntl mode

macroTIOCSTAT

#define TIOCSTAT _IO('t', 101)
simulate ^T status message

macroUIOCCMD

#define UIOCCMD(n) _IO('u', n)
usr cntl op "n"

macroTIOCSCONS

#define TIOCSCONS _IO('t', 99)
4.2 compatibility

macroTIOCCONS

#define TIOCCONS _IOW('t', 98, int)
become virtual console

macroTIOCSCTTY

#define TIOCSCTTY _IO('t', 97)
become controlling tty

macroTIOCEXT

#define TIOCEXT _IOW('t', 96, int)
pty: external processing

macroTIOCSIG

#define TIOCSIG _IO('t', 95)
pty: generate signal

macroTIOCDRAIN

#define TIOCDRAIN _IO('t', 94)
wait till output drained

macroTIOCMSDTRWAIT

#define TIOCMSDTRWAIT _IOW('t', 91, int)
modem: set wait on close

macroTIOCMGDTRWAIT

#define TIOCMGDTRWAIT _IOR('t', 90, int)
modem: get wait on close

macroTIOCTIMESTAMP

#define TIOCTIMESTAMP _IOR('t', 89, struct timeval)
enable/get timestamp of last input event

macroTIOCDCDTIMESTAMP

#define TIOCDCDTIMESTAMP _IOR('t', 88, struct timeval)
enable/get timestamp of last DCd rise

macroTIOCSDRAINWAIT

#define TIOCSDRAINWAIT _IOW('t', 87, int)
set ttywait timeout

macroTIOCGDRAINWAIT

#define TIOCGDRAINWAIT _IOR('t', 86, int)
get ttywait timeout

macroTIOCDSIMICROCODE

#define TIOCDSIMICROCODE _IO('t', 85)
download microcode to DSI Softmodem

macroTIOCPTYGRANT

#define TIOCPTYGRANT _IO('t', 84)
grantpt(3)

macroTIOCPTYGNAME

#define TIOCPTYGNAME _IOC(IOC_OUT, 't', 83, 128)
ptsname(3)

macroTIOCPTYUNLK

#define TIOCPTYUNLK _IO('t', 82)
unlockpt(3)

macroTTYDISC

#define TTYDISC 0
termios tty line discipline

macroTABLDISC

#define TABLDISC 3
tablet discipline

macroSLIPDISC

#define SLIPDISC 4
serial IP discipline

macroPPPDISC

#define PPPDISC 5
PPP discipline