Branch
Hash :
948ba801
Author :
Date :
2025-08-01T16:01:13
copy-file-range: work around glibc bug 33245 Problem reported by Leah Neukirchen <https://bugs.gnu.org/79139>. * lib/copy-file-range.c: Include sys-limits.h. (copy_file_range) [glibc 2.42 and earlier]: Copy at most SYS_BUFSIZE_MAX bytes. * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE): Replace on glibc platforms, as well as on Linux platforms. * modules/copy-file-range (Files): Add lib/sys-limits.h.
Description:
Copy parts of files
Files:
lib/copy-file-range.c
lib/sys-limits.h
m4/copy-file-range.m4
Depends-on:
bool
largefile
unistd-h
configure.ac:
gl_FUNC_COPY_FILE_RANGE
gl_CONDITIONAL([GL_COND_OBJ_COPY_FILE_RANGE],
[test $HAVE_COPY_FILE_RANGE = 0 ||
test $REPLACE_COPY_FILE_RANGE = 1])
gl_UNISTD_MODULE_INDICATOR([copy-file-range])
Makefile.am:
if GL_COND_OBJ_COPY_FILE_RANGE
lib_SOURCES += copy-file-range.c
endif
Include:
<unistd.h>
License:
LGPLv2+
Maintainer:
all