newlib-cygwin/winsup/cygwin/include
Corinna Vinschen 65831f88d6 Cygwin: fallocate(2): handle FALLOC_FL_PUNCH_HOLE and FALLOC_FL_ZERO_RANGE
Split fhandler_disk_file::fallocate into multiple methods, each
implementing a different aspect of fallocate(2), thus adding
FALLOC_FL_PUNCH_HOLE and FALLOC_FL_ZERO_RANGE handling.

For more correctly implementing posix_fallocate(3) semantics, make
sure to re-allocate holes in the given range if the file is sparse.

While at it, change the way checking when to make a file sparse.
The rule is now, make file sparse if the hole created by the action
spans at least one sparse block, taking the allocation granularity
of sparse files into account.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-11-28 10:55:38 +01:00
..
acl
arpa
asm Cygwin: remove miscellaneous 32-bit code 2022-05-29 17:54:32 -04:00
attr
bits Cygwin: __WORDSIZE: Drop 32 bit considerations 2022-08-03 17:48:20 +02:00
cygwin Cygwin: introduce fallocate(2) 2023-11-28 10:52:05 +01:00
machine Cygwin: remove some 32-bit-only function definitions 2022-05-29 17:45:52 -04:00
net
netinet Cygwin: Implement GSO/GRO support 2022-05-13 11:11:38 +02:00
ssp
sys Cygwin: Fix __cpuset_zero_s prototype 2023-09-09 23:28:55 +02:00
a.out.h Cygwin: remove miscellaneous 32-bit code 2022-05-29 17:54:32 -04:00
aio.h Cygwin: fix build failure due to redefinition of __restrict in sys/cdefs.h 2023-08-07 16:04:32 +02:00
byteswap.h
dlfcn.h
endian.h
err.h
error.h
fcntl.h Cygwin: fallocate(2): handle FALLOC_FL_PUNCH_HOLE and FALLOC_FL_ZERO_RANGE 2023-11-28 10:55:38 +01:00
features.h
fnmatch.h
fts.h
getopt.h change _COMPILING_NEWLIB to _LIBC 2021-11-15 19:32:23 -05:00
glob.h
icmp.h
ifaddrs.h
io.h
lastlog.h
limits.h Cygwin: define CHARCLASS_NAME_MAX 2023-03-01 21:22:56 +01:00
mntent.h
monetary.h
mqueue.h
netdb.h
nl_types.h
paths.h
poll.h
process.h Cygwin: fix formatting: collapse whitespace-only lines 2020-03-11 13:45:58 +01:00
pthread.h Cygwin: implement pthread_rwlock_clockrdlock/pthread_rwlock_clockwrlock 2021-07-29 17:31:31 +02:00
pty.h
regex.h Cygwin: replace regex with latest verbatim FreeBSD version 2023-03-16 11:12:08 +01:00
resolv.h Cygwin: fix formatting: drop spaces leading tabs 2020-03-11 13:45:58 +01:00
search.h
semaphore.h Cygwin: implement sem_clockwait 2021-07-29 17:13:47 +02:00
sysexits.h
syslog.h
termio.h
tzfile.h
uchar.h Cygwin: Add ISO C2X functions c8rtomb, mbrtoc8 2023-08-02 16:56:24 +02:00
ucontext.h
utmpx.h
wait.h