This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/1083] New: fix posix_fallocate semantics using ftruncate
- From: "roland at gnu dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Jul 2005 01:26:23 -0000
- Subject: [Bug libc/1083] New: fix posix_fallocate semantics using ftruncate
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
This trunk patch should go into the 2.3 branch:
2005-06-14 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/posix_fallocate64.c: Use __libc_pread64 instead of
__pread64.
2005-04-29 Jakub Jelinek <jakub@redhat.com>
* sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
call ftruncate if offset is bigger than current size. Make sure
the file is offset + len bytes long if that is more than current size.
Don't overwrite previous content of the file.
* sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
Likewise.
--
Summary: fix posix_fallocate semantics using ftruncate
Product: glibc
Version: 2.3.5
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: roland at gnu dot org
ReportedBy: roland at gnu dot org
CC: glibc-bugs at sources dot redhat dot com
OtherBugsDependingO 852
nThis:
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1083
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.