#include <sys/ioctl.h>

sys/ioctl.h

2 macros · 1 struct · 1 function

structttysize

Pun for SunOS prior to 3.2. SunOS 3.2 and later support TIOCGWINSZ and TIOCSWINSZ (yes, even 3.2-3.5, the fact that it wasn't documented nonwithstanding).
size 8, align 2
unsigned shortts_lines
unsigned shortts_cols
unsigned shortts_xxx
unsigned shortts_yyy

macroTIOCGSIZE

#define TIOCGSIZE TIOCGWINSZ

macroTIOCSSIZE

#define TIOCSSIZE TIOCSWINSZ

functionioctl

int ioctl(int, unsigned long, ...)
man page · December 11, 1993
ioctl(2) — control device