This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
libc/sysdeps/posix posix_fallocate.c
- From: roland at sourceware dot org
- To: glibc-cvs at sources dot redhat dot com
- Date: 18 Jul 2005 01:31:47 -0000
- Subject: libc/sysdeps/posix posix_fallocate.c
CVSROOT: /cvs/glibc
Module name: libc
Branch: glibc-2_3-branch
Changes by: roland@sources.redhat.com 2005-07-18 01:31:47
Modified files:
sysdeps/posix : posix_fallocate.c
Log message:
2005-04-29 Jakub Jelinek <jakub@redhat.com>
[BZ #1083]
* 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.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/posix/posix_fallocate.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.5&r2=1.5.4.1