RTEMS Logo

RTEMS 4.7.99.2 On-Line Library


Device- and Class- Specific Functions Manager tcgetattr - Gets terminal attributes

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

6.4.5: tcgetattr - Gets terminal attributes

CALLING SEQUENCE:

#include <termios.h>
#include <unistd.h>

int tcgetattr(
  int             fildes,
  struct termios *p
);

STATUS CODES:

EBADF
Invalid file descriptor
ENOOTY
Terminal control function attempted for a file that is not a terminal.

DESCRIPTION:

The tcgetattr() gets the parameters associated with the terminal referred to by fildes and stores them into the termios() structure pointed to by termios_p.

NOTES:

NONE


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2004 OAR Corporation