Print this page
cfsetspeed

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/cfsetispeed.3c.man.txt
          +++ new/usr/src/man/man3c/cfsetispeed.3c.man.txt
   1    1  CFSETISPEED(3C)          Standard C Library Functions          CFSETISPEED(3C)
   2    2  
   3    3  NAME
   4      -     cfsetispeed, cfsetospeed - set input and output baud rate
        4 +     cfsetispeed, cfsetospeed, cfsetspeed - set input and output baud rate
   5    5  
   6    6  SYNOPSIS
   7    7       #include <termios.h>
   8    8  
   9    9       int
  10   10       cfsetispeed(struct termios *termios_p, speed_t speed);
  11   11  
  12   12       int
  13   13       cfsetospeed(struct termios *termios_p, speed_t speed);
  14   14  
       15 +     int
       16 +     cfsetspeed(struct termios *termios_p, speed_t speed);
       17 +
  15   18  DESCRIPTION
  16   19       The cfsetispeed() function sets the input baud rate stored in the
  17   20       structure pointed to by termios_p to speed.
  18   21  
  19   22       The cfsetospeed() function sets the output baud rate stored in the
  20   23       structure pointed to by termios_p to speed.
  21   24  
       25 +     The cfsetspeed() function sets both the input and output baud rate stored
       26 +     in the structure pointed to by termios_p to speed.
       27 +
  22   28       There is no effect on the baud rates set in the hardware until a
  23   29       subsequent successful call to tcsetattr(3C) on the same termios
  24   30       structure.
  25   31  
  26   32  RETURN VALUES
  27   33       Upon successful completion, cfsetispeed() and cfsetospeed() return 0.
  28   34       Otherwise -1 is returned, and errno may be set to indicate the error.
  29   35  
  30   36  ERRORS
  31   37       The cfsetispeed() and cfsetospeed() functions may fail if:
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX