[Previous] [Contents] [Index] [Next]

tcgetsize()

Get the size of a character device

Synopsis:

#include <termios.h>

int tcgetsize( int filedes,
               int* prows,
               int* pcols );

Library:

libc

Description:

The tcgetsize() function gets the size of the character device associated with filedes and stores the number of rows and columns in prows and pcols if they're not NULL.

Returns:

0
Success.
-1
An error occurred (errno is set).

Errors:

EACCES
The filedes argument isn't associated with a controlling terminal.
EBADF
The filedes argument isn't a valid file descriptor.
ENOTTY
The file associated with filedes isn't a terminal.

Classification:

QNX 6

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

[Previous] [Contents] [Index] [Next]