dm_tty_set_timeout Function

public function dm_tty_set_timeout(tty, timeout) result(rc)

Uses

    • unix
  • proc~~dm_tty_set_timeout~~UsesGraph proc~dm_tty_set_timeout dm_tty_set_timeout unix unix proc~dm_tty_set_timeout->unix

Sets timeout of given TTY. A timeout of 0 results in blocking read without timeout. The minimum timeout is 0 seconds, the maximum is 25 seconds.

The function returns the following error codes:

  • E_INVALID if TTY is not connected.
  • E_SYSTEM if system calls failed.

Arguments

Type IntentOptional Attributes Name
type(tty_type), intent(inout) :: tty

TTY type.

integer, intent(in) :: timeout

Timeout in seconds.

Return Value integer


Calls

proc~~dm_tty_set_timeout~~CallsGraph proc~dm_tty_set_timeout dm_tty_set_timeout c_cc c_cc proc~dm_tty_set_timeout->c_cc c_tcgetattr c_tcgetattr proc~dm_tty_set_timeout->c_tcgetattr c_tcsetattr c_tcsetattr proc~dm_tty_set_timeout->c_tcsetattr