Project

General

Profile

Actions

Bug #4203

open

fopen(3c): POSIX violation in a documented way

Added by Marcel Telka over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
lib - userland libraries
Start date:
2013-10-12
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

The fopen(3c) man page says this:

RETURN VALUES
     Upon successful completion, fopen() returns a pointer to the
     object controlling the stream.  Otherwise, a null pointer is
     returned and errno is set to indicate the error.

     The fopen() function may fail and not set errno if there are
     no free stdio streams.

I do not know whether the last sentence is valid for the current fopen(3c) implementation, but it definitely violates both POSIX.1-2001 <http://pubs.opengroup.org/onlinepubs/009695399/functions/fopen.html> and POSIX.1-2008 <http://pubs.opengroup.org/onlinepubs/9699919799/functions/fopen.html&gt;.

No data to display

Actions

Also available in: Atom PDF