[PATCH] Fix fdopen with mmap stdio

Ulrich Drepper drepper@redhat.com
Mon Feb 25 21:22:00 GMT 2002


Jakub Jelinek <jakub@redhat.com> writes:

> 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* libio/iofopen.c (__fopen_maybe_mmap): Set the initial
> 	position to fp->_offset if it is set.
> 	* stdio-common/Makefile (tests): Add tst-fdopen.
> 	* stdio-common/tst-fdopen.c: New test.

This one looks fine, too.  I've just modified it a bit to help the
compiler optimizging.  Thanks,

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



More information about the Libc-hacker mailing list