[PATCH v2 2/5] termios: manual: remove duplicate cfgetospeed() definition

Collin Funk collin.funk1@gmail.com
Sun Jun 29 17:55:58 GMT 2025


"H. Peter Anvin" <hpa@zytor.com> writes:

> The function cfsetospeed() is defined twice in the manual. Remove the
> one that seems out of place.
>
> Signed-off-by: "H. Peter Anvin" (Intel) <hpa@zytor.com>
> ---
>  manual/terminal.texi | 10 ----------
>  1 file changed, 10 deletions(-)
>
> diff --git a/manual/terminal.texi b/manual/terminal.texi
> index 8a9259f69989..ddab2581a368 100644
> --- a/manual/terminal.texi
> +++ b/manual/terminal.texi
> @@ -1047,16 +1047,6 @@ The @code{speed_t} type is an unsigned integer data type used to
>  represent line speeds.
>  @end deftp
>  
> -@deftypefun speed_t cfgetospeed (const struct termios *@var{termios-p})
> -@standards{POSIX.1, termios.h}
> -@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
> -@c Direct access to a single termios field, except on Linux, where
> -@c multiple accesses may take place.  No worries either way, callers
> -@c must ensure mutual exclusion on such non-opaque types.
> -This function returns the output line speed stored in the structure
> -@code{*@var{termios-p}}.
> -@end deftypefun
> -
>  @strong{Portability note:} In @theglibc{}, the functions above
>  accept speeds measured in bits per second as input, and return speed
>  values measured in bits per second.  Other libraries require speeds to

Yep, looks like the text for both is the same. The one you kept is
placed better, in my opinion. Thanks!

Reviewed-by: Collin Funk <collin.funk1@gmail.com>

Collin


More information about the Libc-alpha mailing list