Set the size of a character device
#include <termios.h>
int tcsetsize( int fildes,
int rows,
int cols );
- fildes
- A file descriptor that's associated with the device whose size you want to
set.
- rows, cols
- The number of rows and columns that you want to use.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The tcsetsize() function sets the size of the character device
associated with fildes
to the given number of rows and columns.
- 0
- Success.
- -1
- An error occurred
(errno is set).
- EACCES
- The fildes argument isn't associated with a controlling
terminal.
- EBADF
- The fildes argument isn't a valid file descriptor.
- EINVAL
- The rows or cols argument is invalid.
- ENOTTY
- The file associated with fildes isn't a terminal.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
tcgetsize()