Print this page
cfsetspeed

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/cfsetispeed.3c
          +++ new/usr/src/man/man3c/cfsetispeed.3c
↓ open down ↓ 41 lines elided ↑ open up ↑
  42   42  .\"
  43   43  .\" Portions Copyright (c) 1992, X/Open Company Limited.  All Rights Reserved.
  44   44  .\" Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved
  45   45  .\" Copyright 2019, Joyent, Inc.
  46   46  .\"
  47   47  .Dd January 20, 2019
  48   48  .Dt CFSETISPEED 3C
  49   49  .Os
  50   50  .Sh NAME
  51   51  .Nm cfsetispeed ,
  52      -.Nm cfsetospeed
       52 +.Nm cfsetospeed ,
       53 +.Nm cfsetspeed
  53   54  .Nd set input and output baud rate
  54   55  .Sh SYNOPSIS
  55   56  .In termios.h
  56   57  .Ft int
  57   58  .Fo cfsetispeed
  58   59  .Fa "struct termios *termios_p"
  59   60  .Fa "speed_t speed"
  60   61  .Fc
  61   62  .Ft int
  62   63  .Fo cfsetospeed
  63   64  .Fa "struct termios *termios_p"
  64   65  .Fa "speed_t speed"
  65   66  .Fc
       67 +.Ft int
       68 +.Fo cfsetspeed
       69 +.Fa "struct termios *termios_p"
       70 +.Fa "speed_t speed"
       71 +.Fc
  66   72  .Sh DESCRIPTION
  67   73  The
  68   74  .Fn cfsetispeed
  69   75  function sets the input baud rate stored in the
  70   76  structure pointed to by
  71   77  .Fa termios_p
  72   78  to
  73   79  .Fa speed .
  74   80  .Pp
  75   81  The
  76   82  .Fn cfsetospeed
  77   83  function sets the output baud rate stored in the
  78   84  structure pointed to by
  79   85  .Fa termios_p
  80   86  to
  81   87  .Fa speed .
  82   88  .Pp
       89 +The
       90 +.Fn cfsetspeed
       91 +function sets both the input and output baud rate stored in the structure
       92 +pointed to by
       93 +.Fa termios_p
       94 +to
       95 +.Fa speed.
       96 +.Pp
  83   97  There is no effect on the baud rates set in the hardware until a subsequent
  84   98  successful call to
  85   99  .Xr tcsetattr 3C
  86  100  on the same
  87  101  .Vt termios
  88  102  structure.
  89  103  .Sh RETURN VALUES
  90  104  Upon successful completion,
  91  105  .Fn cfsetispeed
  92  106  and
↓ open down ↓ 37 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX