about summary refs log tree commit diff
path: root/libio/libio.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-30 07:07:16 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-30 07:07:16 +0000
commitdd0ee2e1022843c6a296a9141b7cab7ea74eec28 (patch)
tree540fab065032d56a49c05c3787e50500e40bc87d /libio/libio.h
parentb7fc6d07afa8956c5a18d28db02a52d63a70acb8 (diff)
downloadglibc-dd0ee2e1022843c6a296a9141b7cab7ea74eec28.tar.gz
glibc-dd0ee2e1022843c6a296a9141b7cab7ea74eec28.tar.xz
glibc-dd0ee2e1022843c6a296a9141b7cab7ea74eec28.zip
Update.
2002-08-29  Ulrich Drepper  <drepper@redhat.com>

	* libio/fileops.c (_IO_new_file_fopen): Recognize new mode specifier
	'm' to enable mmap I/O.
	* libio/libio.h (_IO_FILE): Rename _blksize field to _flags2.  The
	former wasn't used (anymore?).
	(_IO_FLAGS2_MMAP): New define.
	* libio/genops.c (_IO_no_init): Initialize _flags2 field.
	* libio/iofopen.c (__fopen_maybe_mmap): Use mmap callbacks only if
	_IO_FLAGS2_MMAP bit is set.
	* libio/iofdopen.c (_IO_new_fdopen): Recognize 'm' mode specifier.
	Enable mmap-using mode only if 'm' was set.
Diffstat (limited to 'libio/libio.h')
-rw-r--r--libio/libio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libio/libio.h b/libio/libio.h
index c8231df3ab..3c6bef9b37 100644
--- a/libio/libio.h
+++ b/libio/libio.h
@@ -137,6 +137,8 @@
 #define _IO_BAD_SEEN 0x4000
 #define _IO_USER_LOCK 0x8000
 
+#define _IO_FLAGS2_MMAP 1
+
 /* These are "formatting flags" matching the iostream fmtflags enum values. */
 #define _IO_SKIPWS 01
 #define _IO_LEFT 02
@@ -282,7 +284,11 @@ struct _IO_FILE {
   struct _IO_FILE *_chain;
 
   int _fileno;
+#if 0
   int _blksize;
+#else
+  int _flags2;
+#endif
   _IO_off_t _old_offset; /* This used to be _offset but it's too small.  */
 
 #define __HAVE_COLUMN /* temporary */