Opened 18 years ago

Closed 18 years ago

#48 closed defect (fixed)

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 (1)

comment:1 Changed 18 years ago by bird

Resolution: fixed
Status: newclosed

Did a quick implenentation of this NULL feature.

Note: See TracTickets for help on using tickets.