Lines Matching full:file

20 <<freopen64>>---open a large file using an existing file descriptor
29 FILE *freopen64(const char *<[file]>, const char *<[mode]>,
30 FILE *<[fp]>);
31 FILE *_freopen64_r(struct _reent *<[ptr]>, const char *<[file]>,
32 const char *<[mode]>, FILE *<[fp]>);
35 Use this variant of <<fopen64>> if you wish to specify a particular file
37 the file.
39 If <[fp]> was associated with another file or stream, <<freopen64>>
40 closes that other file or stream (but ignores any errors while closing
43 <[file]> and <[mode]> are used just as in <<fopen>>.
45 If <[file]> is <<NULL>>, the underlying stream is modified rather than
46 closed. The file cannot be given a more permissive access mode (for
47 example, a <[mode]> of "w" will fail on a read-only file descriptor),
53 file cannot be opened as specified, the result is <<NULL>>.
73 * Re-direct an existing, open (probably) file to some other file.
78 FILE *
80 const char *file, in freopen64() argument
82 register FILE *fp) in freopen64()
114 * which file descriptor (if any) was associated with it. in freopen64()
117 * This is unnecessary if it was not a Unix file. in freopen64()
128 * If file is NULL, the file should not be closed. in freopen64()
130 if (fp->_close != NULL && file != NULL) in freopen64()
135 * Now get a new descriptor to refer to the new file, or reuse the in freopen64()
136 * existing file descriptor if file is NULL. in freopen64()
139 if (file != NULL) in freopen64()
141 f = open64 ((char *) file, oflags, 0666); in freopen64()
149 * Reuse the file descriptor, but only if the new access mode is in freopen64()