This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/22615] New: manual: ambiguous wording about errno value in case of success


https://sourceware.org/bugzilla/show_bug.cgi?id=22615

            Bug ID: 22615
           Summary: manual: ambiguous wording about errno value in case of
                    success
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: manual
          Assignee: unassigned at sourceware dot org
          Reporter: aurelien at aurel32 dot net
                CC: mtk.manpages at gmail dot com
  Target Milestone: ---

The glibc manual, section "Checking for Errors" says:

"These functions do not change errno when they succeed; thus, the value of
errno after a successful call is not necessarily zero, and you should not use
errno to determine whether a call failed."

While this is true that functions do not set errno to 0 when they succeed, they
might set it to another value.

See bug #22611 and
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=87152351 for
more details.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]