* sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
commitcd6fa64a21feb8802d53edd5d1aa49b58398f74c
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 May 2005 09:39:16 +0000 (3 09:39 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 3 May 2005 09:39:16 +0000 (3 09:39 +0000)
treec1a8da22ca33bb5d8259570ed10de7630553794f
parenteec65e81e75bc0af8212e59a281b52d920607fc8
* 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.
ChangeLog
sysdeps/posix/posix_fallocate.c
sysdeps/posix/posix_fallocate64.c