mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
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.
34 lines
512 B
Plaintext
34 lines
512 B
Plaintext
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
|