(posix_fallocate): If len == 0,
authordrepper <drepper>
Tue, 3 May 2005 15:07:47 +0000 (15:07 +0000)
committerdrepper <drepper>
Tue, 3 May 2005 15:07:47 +0000 (15:07 +0000)
commit797a422d3c5215fdce0d44675550616aef210bc3
tree4249d13ad3cb39edd028462039aa2b8053785eaf
parent1399a5dd8ed9a5e3383f92cc4e4fa3a817497edc
(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_fallocate.c
sysdeps/posix/posix_fallocate64.c