The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

tcgetattr (3)
  • >> tcgetattr (3) ( Solaris man: Библиотечные вызовы )
  • tcgetattr (3) ( FreeBSD man: Библиотечные вызовы )
  • tcgetattr (3) ( Русские man: Библиотечные вызовы )
  • tcgetattr (3) ( Linux man: Библиотечные вызовы )
  • tcgetattr (3) ( POSIX man: Библиотечные вызовы )
  •  

    NAME

    tcgetattr - get the parameters associated with the terminal
     
    

    SYNOPSIS

    #include <termios.h>
    
    int tcgetattr(int fildes, struct termios *termios_p);
    

     

    DESCRIPTION

    The tcgetattr() function gets the parameters associated with the terminal referred to by fildes and stores them in the termios structure (see termio(7I)) referenced by termios_p. The fildes argument is an open file descriptor associated with a terminal.

    The termios_p argument is a pointer to a termios structure.

    The tcgetattr() operation is allowed from any process.

    If the terminal device supports different input and output baud rates, the baud rates stored in the termios structure returned by tcgetattr() reflect the actual baud rates, even if they are equal. If differing baud rates are not supported, the rate returned as the output baud rate is the actual baud rate. If the terminal device does not support split baud rates, the input baud rate stored in the termios structure will be 0.  

    RETURN VALUES

    Upon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error.  

    ERRORS

    The tcgetattr() function will fail if:

    EBADF

    The fildes argument is not a valid file descriptor.

    ENOTTY

    The file associated with fildes is not a terminal.

     

    ATTRIBUTES

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPEATTRIBUTE VALUE

    Interface StabilityStandard

    MT-Level

     

    SEE ALSO

    tcsetattr(3C), attributes(5), standards(5), termio(7I)


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    ATTRIBUTES
    SEE ALSO


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру