about summary refs log tree commit diff
path: root/libio/libioP.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-08 11:59:45 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-08 11:59:45 +0000
commit110215a9a76594e808903af957f3273e3bc11a87 (patch)
tree36ffca48f1168e282af19e00d3909597a5573dff /libio/libioP.h
parent94e365c61202e2472c8aea42c7c95ce40f5b843c (diff)
downloadglibc-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/libioP.h')
-rw-r--r--libio/libioP.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/libioP.h b/libio/libioP.h
index 775f44588c..64256a9199 100644
--- a/libio/libioP.h
+++ b/libio/libioP.h
@@ -98,7 +98,7 @@ extern "C" {
 #endif
 
 /* The 'finish' function does any final cleaning up of an _IO_FILE object.
-   It does not delete (free) it, but does everything else to finalize it/
+   It does not delete (free) it, but does everything else to finalize it.
    It matches the streambuf::~streambuf virtual destructor.  */
 typedef void (*_IO_finish_t) __PMT ((_IO_FILE *, int)); /* finalize */
 #define _IO_FINISH(FP) JUMP1 (__finish, FP, 0)
@@ -422,7 +422,7 @@ extern int _IO_file_stat __P ((_IO_FILE *, void *));
 extern int _IO_file_close __P ((_IO_FILE *));
 extern int _IO_file_underflow __P ((_IO_FILE *));
 extern int _IO_file_overflow __P ((_IO_FILE *, int));
-#define _IO_file_is_open(__fp) ((__fp)->_fileno >= 0)
+#define _IO_file_is_open(__fp) ((__fp)->_fileno != -1)
 extern void _IO_file_init __P ((_IO_FILE *));
 extern _IO_FILE* _IO_file_attach __P ((_IO_FILE *, int));
 extern _IO_FILE* _IO_file_open __P ((_IO_FILE *, const char *, int, int,