TIOCGSIZE, TIOCGWINSZ
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Get the size of a character device
Synopsis:
#include <sys/ioctl.h>
#define TIOCGSIZE       TIOCGWINSZ
#define TIOCGWINSZ      _IOR('t', 104, struct winsize)
Arguments to ioctl():
| Argument | Value | 
|---|---|
| fd | A file descriptor that you obtained by opening the device | 
| request | TIOCGWINSZ | 
| Additional argument | A pointer to a struct winsize | 
Description:
This command gets the size of a character device (also known as the window size). It's also implemented as the DCMD_CHR_GETSIZE devctl() command.
Note: 
This command is for internal use, and you shouldn't use it directly.
Instead use the
tcgetsize()
cover function.
Input:
None.
Output:
The winsize structure is defined in <sys/ioctl.h> as follows:
struct winsize {
        unsigned short  ws_row;
        unsigned short  ws_col; 
        unsigned short  ws_xpixel;
        unsigned short  ws_ypixel; 
};
See also:
DCMD_CHR_GETSIZE, TIOCSSIZE, TIOCSWINSZ
ioctl() in the QNX OS C Library Reference
Page updated: 
