Subject: misc/4192: tcsetattr.3 is wrong about cfsetspeed()
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: netbsd-bugs
Date: 09/30/1997 18:22:28
>Number:         4192
>Category:       misc
>Synopsis:       tcsetattr.3 is wrong about cfsetspeed()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 30 09:35:55 1997
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Mario Kemper Maintenance Project
>Release:        970923
>Environment:
System: NetBSD lyssa 1.2G NetBSD 1.2G (LYSSA) #1: Wed Sep 24 15:26:58 MEST 1997 tron@lyssa:/usr/src/sys/arch/i386/compile/LYSSA i386

>Description:
tcsetattr(3) say that "tcsetattr" returns "void" but it returns "int".

>How-To-Repeat:
man 3 tcsetattr
grep tcsetattr /usr/include/termios.h

>Fix:
*** src/lib/libc/termios/tcsetattr.3.orig	Thu May 29 13:18:41 1997
--- src/lib/libc/termios/tcsetattr.3	Tue Sep 30 18:15:37 1997
***************
*** 56,62 ****
  .Fn cfgetospeed "const struct termios *t"
  .Ft int
  .Fn cfsetospeed "struct termios *t" "speed_t speed"
! .Ft void
  .Fn cfsetspeed "struct termios *t" "speed_t speed"
  .Ft void
  .Fn cfmakeraw "struct termios *t"
--- 56,62 ----
  .Fn cfgetospeed "const struct termios *t"
  .Ft int
  .Fn cfsetospeed "struct termios *t" "speed_t speed"
! .Ft int
  .Fn cfsetspeed "struct termios *t" "speed_t speed"
  .Ft void
  .Fn cfmakeraw "struct termios *t"

>Audit-Trail:
>Unformatted: