projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc13edc
)
(_IO_new_file_fopen): Recognize new mode specifier 'm' to enable mmap I/O.
author
Ulrich Drepper
<drepper@redhat.com>
Fri, 30 Aug 2002 07:04:16 +0000
(07:04 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Fri, 30 Aug 2002 07:04:16 +0000
(07:04 +0000)
libio/fileops.c
patch
|
blob
|
history
diff --git
a/libio/fileops.c
b/libio/fileops.c
index
e9e9193
..
c1892f3
100644
(file)
--- a/
libio/fileops.c
+++ b/
libio/fileops.c
@@
-290,7
+290,7
@@
_IO_new_file_fopen (fp, filename, mode, is32not64)
#ifdef _LIBC
last_recognized = mode;
#endif
- for (i = 1; i <
4
; ++i)
+ for (i = 1; i <
5
; ++i)
{
switch (*++mode)
{
@@
-313,6
+313,10
@@
_IO_new_file_fopen (fp, filename, mode, is32not64)
#ifdef _LIBC
last_recognized = mode;
#endif
+ continue;
+ case 'm':
+ fp->_flags2 |= _IO_FLAGS2_MMAP;
+ continue;
default:
/* Ignore. */
continue;