Skip to main content

Module constants

Module constants 

Source

Constantsยง

FIONBIO
Not recommended, should use POSIX O_NONBLOCK instead.
FIONREAD
Get the number of bytes in the input buffer.
SIOCATMARK
POSIX sockatmark() from sys/socket.h is intended to replace this.
TCFLSH
Equivalent to tcflush(fd, arg).
TCGETS
Equivalent to tcgetattr(fd, argp). Get the current serial port settings.
TCSBRK
Equivalent to tcsendbreak(fd, arg).
TCSETS
Equivalent to tcsetattr(fd, TCSANOW, argp). Set the current serial port settings.
TCSETSF
Equivalent to tcsetattr(fd, TCSAFLUSH, argp). Allow the output buffer to drain, discard pending input, and set the current serial port settings.
TCSETSW
Equivalent to tcsetattr(fd, TCSADRAIN, argp). Allow the output buffer to drain, and set the current serial port settings.
TCXONC
Equivalent to tcflow(fd, arg).
TIOCGPGRP
When successful, equivalent to *argp = tcgetpgrp(fd). Get the process group ID of the foreground process group on this terminal.
TIOCGPTLCK
Place the current lock state of the pseudoterminal slave device in the location pointed to by lock.
TIOCGPTN
Obtain device unit number, which can be used to generate the filename of the pseudo-terminal slave device.
TIOCGSID
When successful, equivalent to *argp = tcgetsid(fd). Get the session ID of the given terminal.
TIOCGWINSZ
Get window size.
TIOCSCTTY
Make the given terminal the controlling terminal of the calling process.
TIOCSPGRP
Equivalent to tcsetpgrp(fd, *argp).
TIOCSPTLCK
Set (if *lock is nonzero) or remove (if *lock is zero) the lock on the pseudoterminal slave device.
TIOCSWINSZ
Set window size.