* libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF
authorRoland McGrath <roland@gnu.org>
Thu, 15 Aug 2002 23:57:00 +0000 (23:57 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 15 Aug 2002 23:57:00 +0000 (23:57 +0000)
commitfc77d66abf6ed97a50e30b619b1647759d43f593
tree4eacd4d04abb104c54fe9ef2d05a65da6bafa315
parent8f83366e132bd7e273ea97c571e2d44c20a8ccbf
* libio/fileops.c (_IO_file_seekoff_mmap): Leave read pointers at EOF

if seek would go past it.
(mmap_remap_check): If file position is at or past EOF after check,
leave read pointers at EOF and don't seek.

* libio/tst-mmap-offend.c: New file.
* libio/Makefile (tests): Add it.
ChangeLog
libio/Makefile
libio/fileops.c
libio/tst-mmap-offend.c [new file with mode: 0644]