Print this page
10271 Convert cf{get,set}ispeed.3C and cf{get,set}speed.3C to mandoc
   1 CFGETISPEED(3C)          Standard C Library Functions          CFGETISPEED(3C)
   2 
   3 
   4 
   5 NAME
   6        cfgetispeed, cfgetospeed - get input and output baud rate
   7 
   8 SYNOPSIS
   9        #include <termios.h>
  10 
  11        speed_t cfgetispeed(const struct termios *termios_p);

  12 


  13 
  14        speed_t cfgetospeed(const struct termios *termios_p);
  15 
  16 
  17 DESCRIPTION
  18        The cfgetispeed() function extracts the input baud rate from the
  19        termios structure to which the termios_p argument points.
  20 


  21 
  22        The cfgetospeed() function extracts the output baud rate from the
  23        termios structure to which the termios_p argument points.
  24 
  25 
  26        These functions returns exactly the value in the termios data
  27        structure, without interpretation.
  28 
  29 RETURN VALUES
  30        Upon successful completion, cfgetispeed() returns a value of type
  31        speed_t representing the input baud rate.
  32 


  33 
  34        Upon successful completion, cfgetospeed() returns a value of type
  35        speed_t representing the output baud rate.
  36 
  37 ERRORS
  38        No errors are defined.
  39 
  40 ATTRIBUTES
  41        See attributes(5) for descriptions of the following attributes:
  42 


  43 

  44 
  45 
  46        +--------------------+--------------------------------+
  47        |  ATTRIBUTE TYPE    |        ATTRIBUTE VALUE         |
  48        +--------------------+--------------------------------+
  49        |Interface Stability | Standard                       |
  50        +--------------------+--------------------------------+
  51        |MT-Level            | MT-Safe, and Async-Signal-Safe |
  52        +--------------------+--------------------------------+
  53 
  54 SEE ALSO
  55        cfgetospeed(3C), tcgetattr(3C), attributes(5), standards(5), termio(7I)
  56 
  57 
  58 
  59                                  July 24, 2002                 CFGETISPEED(3C)
   1 CFGETISPEED(3C)          Standard C Library Functions          CFGETISPEED(3C)
   2 


   3 NAME
   4      cfgetispeed, cfgetospeed - get input and output baud rate
   5 
   6 SYNOPSIS
   7      #include <termios.h>
   8 
   9      speed_t
  10      cfgetispeed(const struct termios *termios_p);
  11 
  12      speed_t
  13      cfgetospeed(const struct termios *termios_p);
  14 



  15 DESCRIPTION
  16      The cfgetispeed() function extracts the input baud rate from the termios
  17      structure to which the termios_p argument points.
  18 
  19      The cfgetospeed() function extracts the output baud rate from the termios
  20      structure to which the termios_p argument points.
  21 
  22      These functions return exactly the value in the termios data structure,
  23      without interpretation.
  24 




  25 RETURN VALUES
  26      Upon successful completion, cfgetispeed() returns a value of type speed_t
  27      representing the input baud rate.
  28 
  29      Upon successful completion, cfgetospeed() returns a value of type speed_t
  30      representing the output baud rate.
  31 



  32 ERRORS
  33      No errors are defined.
  34 
  35 INTERFACE STABILITY
  36      Standard
  37 
  38 MT-LEVEL
  39      MT-Safe
  40 
  41      Async-Signal-Safe
  42 









  43 SEE ALSO
  44      cfsetispeed(3C), tcgetattr(3C), attributes(5), standards(5), termio(7I)
  45 
  46 illumos                        January 20, 2019                        illumos