Name Syntax | freopen, freopen64 #include <stdio.h> FILE *freopen(const char *filename, const char *mode, FILE *stream); | |
Description | stream. Failure to flush or close the file successfully is ignored. The error and end-of-file indicators for the stream are cleared.
The original stream is closed regardless of whether the subsequent open succeeds. For automatic conversion, the There is no difference in functionality between BS2000 Restriction If stream references a POSIX file and filename refers to a BS2000 file, the BS2000 file can be opened with | |
Return val. | Value of stream |
|
if successful. | ||
| Null pointer | if an error occurs; |
Errors |
|
|
|
| Search permission is denied on a component of the path, |
|
| A signal was caught during the |
|
| The named file is a directory and mode requires write access. |
|
| Too many symbolic links were found when resolving the |
|
|
|
|
|
|
The length of the path argument exceeds | ||
|
| The maximum allowable number of files is currently open in the system. |
|
| The specified file does not exist or filename points to an empty string. |
|
| The file does not exist, and the directory or file system in which a new file was to be created cannot be expanded. |
|
| A component of the pathname is not a directory. |
|
| The specified file is a character-oriented or block-oriented device file and the device assigned to this file does not exist. |
|
| The specified file is a regular file, but its size cannot be represented correctly in an object of type |
|
| The named file resides on a read-only file system and mode requires write access. |
|
| The file is a pure procedure file (shared text file) that is currently executing and write protection is required for |
Notes |
The program environment determines whether BS2000 | |
See also |
|