mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 22:50:07 +00:00
(fopencookie): Set _fileno to -2.
This commit is contained in:
parent
b8d8a25b24
commit
2c11fe3a7c
@ -171,5 +171,10 @@ fopencookie (cookie, mode, io_functions)
|
||||
_IO_mask_flags (&new_f->cfile.__file, read_write,
|
||||
_IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING);
|
||||
|
||||
/* We use a negative number different from -1 for _fileno to mark that
|
||||
this special stream is not associated with a real file, but still has
|
||||
to be treated as such. */
|
||||
new_f->cfile.__file._fileno = -2;
|
||||
|
||||
return &new_f->cfile.__file;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user