[Previous]
[Contents]
[Next]

dev_size()

set or query the rows and columns of a device

Synopsis:

#include <sys/dev.h>
int dev_size (int fd, 
              int set_rows, int set_columns,
              int *rows, int *cols );

Description:

This function gets or sets the "size" of a terminal device. To get the current size, pass -1 for set_rows and/or set_columns; to change the size, set these arguments to the new values. The previous values are returned in the memory pointed to by rows and cols if these pointers aren't NULL.

Returns:

0
Success
-1
An error occurred. errno is set to indicate the error.

Errors:

ENOSYS
This function isn't implemented.

Classification:

QNX

Safety:
Interrupt handler No
Signal handler Yes, but modifies errno
Thread Yes

[Previous]
[Contents]
[Next]