mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
(_IO_new_file_fopen): Recognize new mode specifier 'm' to enable mmap I/O.
This commit is contained in:
parent
cc13edc8d4
commit
b7fc6d07af
@ -290,7 +290,7 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
|
|||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
last_recognized = mode;
|
last_recognized = mode;
|
||||||
#endif
|
#endif
|
||||||
for (i = 1; i < 4; ++i)
|
for (i = 1; i < 5; ++i)
|
||||||
{
|
{
|
||||||
switch (*++mode)
|
switch (*++mode)
|
||||||
{
|
{
|
||||||
@ -313,6 +313,10 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
|
|||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
last_recognized = mode;
|
last_recognized = mode;
|
||||||
#endif
|
#endif
|
||||||
|
continue;
|
||||||
|
case 'm':
|
||||||
|
fp->_flags2 |= _IO_FLAGS2_MMAP;
|
||||||
|
continue;
|
||||||
default:
|
default:
|
||||||
/* Ignore. */
|
/* Ignore. */
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user