Bug 189355 - cfmakeraw - is it int or void?
Summary: cfmakeraw - is it int or void?
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: man-pages
Version: rawhide
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Ivana Varekova
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-19 14:20 UTC by Nigel Horne
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: man-pages-2.29-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-04-19 14:44:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nigel Horne 2006-04-19 14:20:51 UTC
Description of problem:

cfmakeraw() returns int according to man 3 cfmakeraw, but is void according to
/usr/include/termios.h

Version-Release number of selected component (if applicable):
glibc-devel-2.3.6-3

How reproducible:
Every time

Steps to Reproduce:
1. man cfmakeraw
2. fgrep cfmakeraw /usr/include/termios.h
3.
  
Actual results:
Different return values
Expected results:
Same return values

Additional info:

Comment 1 Jakub Jelinek 2006-04-19 14:30:26 UTC
It is void and info libc documents it that way:
 -- Function: void cfmakeraw (struct termios *TERMIOS-P)
     This function provides an easy way to set up `*TERMIOS-P' for what
     has traditionally been called "raw mode" in BSD.  This uses
     noncanonical input, and turns off most processing to give an
     unmodified channel to the terminal.

     It does exactly this:
            TERMIOS-P->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP
                                          |INLCR|IGNCR|ICRNL|IXON);
            TERMIOS-P->c_oflag &= ~OPOST;
            TERMIOS-P->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
            TERMIOS-P->c_cflag &= ~(CSIZE|PARENB);
            TERMIOS-P->c_cflag |= CS8;
Just the man page is buggy.

Comment 2 Ivana Varekova 2006-04-19 14:44:31 UTC
This bug is fixed in the last version of man-pages (man-pages-2.29-1).

Comment 3 Nigel Horne 2006-04-19 14:49:15 UTC
Untrue: the latest version is man-pages-1.67-8. Yum upgrade shows no newer version.

Comment 4 Ivana Varekova 2006-04-20 10:40:11 UTC
man-pages-2.29-1 is in devel branch. 


Note You need to log in before you can comment on or make changes to this bug.