diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-07-08 11:59:45 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-07-08 11:59:45 +0000 |
commit | 110215a9a76594e808903af957f3273e3bc11a87 (patch) | |
tree | 36ffca48f1168e282af19e00d3909597a5573dff /libio/fileops.c | |
parent | 94e365c61202e2472c8aea42c7c95ce40f5b843c (diff) | |
download | glibc-110215a9a76594e808903af957f3273e3bc11a87.tar.gz glibc-110215a9a76594e808903af957f3273e3bc11a87.tar.xz glibc-110215a9a76594e808903af957f3273e3bc11a87.zip |
Update.
1999-07-08 Andreas Schwab <schwab@suse.de> * libio/iofopncook.c (fopencookie): Set _fileno to -2. * libio/libioP.h (_IO_file_is_open): Only check for -1, not all negative numbers. * libio/fileops.c (_IO_new_file_close_it): Set _fileno to -1, not EOF. * libio/oldfileops.c (_IO_old_file_close_it): Likewise. 1999-07-08 Andreas Schwab <schwab@suse.de> * stdio-common/vfprintf.c (buffered_vfprintf): Initialize _mode. 1999-07-08 Andreas Schwab <schwab@suse.de> * libio/fileno.c: Return -1 instead of EOF and set errno if the stream is not a real file stream. 1999-07-08 Andreas Schwab <schwab@suse.de> * manual/charset.texi: Fix typos.
Diffstat (limited to 'libio/fileops.c')
-rw-r--r-- | libio/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/fileops.c b/libio/fileops.c index 8d480ad08b..8ced77b4c3 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -151,7 +151,7 @@ _IO_new_file_close_it (fp) _IO_un_link (fp); fp->_flags = _IO_MAGIC|CLOSED_FILEBUF_FLAGS; - fp->_fileno = EOF; + fp->_fileno = -1; fp->_offset = _IO_pos_BAD; return close_status ? close_status : write_status; |