next up previous contents index
Next: 5.7.2 setattr: Set the Up: 5.7 oskit_ttystream: Interface to Previous: 5.7 oskit_ttystream: Interface to

5.7.1 getattr: Get the stream's current TTY attributes

 

SYNOPSIS

#include <oskit/io/ttystream.h>

OSKIT_COMDECL getattr(oskit_ttystream_t *tty, [out] struct oskit_termios *attr);

DESCRIPTION

This method retrieves the current line settings of this stream and returns them in the specified oskit_termios structure. This method corresponds to the POSIX tcgetattr function; see the POSIX standard for details.

PARAMETERS

tty
The TTY stream object to query.
attr
The structure to be filled with the current line settings.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group