Ticket #48 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

libc: freopen(NULL, "rb", stdio) panics (doesn't work as expected)

Reported by: bird Owned by: bird
Priority: highest Milestone: libc-0.6.1
Component: libc-frontend Version: 0.6
Severity: normal Keywords: libc freopen
Cc:

Description

If filename is a null pointer, the freopen() function shall attempt to change the mode of the stream to that specified by mode, as if the name of the file currently associated with the stream had been used. In this case, the file descriptor associated with the stream need not be closed if the call to freopen() succeeds. It is implementation-defined which changes of mode are permitted (if any), and under what circumstances.

Change History

comment:1 Changed 7 years ago by bird

  • Status changed from new to closed
  • Resolution set to fixed

Did a quick implenentation of this NULL feature.

Note: See TracTickets for help on using tickets.