diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-06-04 19:54:09 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-06-04 19:58:52 -0700 |
commit | 508eb99193de67a76bd3e02e85504cbc555f0a61 (patch) | |
tree | ac7ebbb7e318ae8b112a820c49fa5fc182456a35 /modules/copy-file-range | |
parent | b8e6ceb712d1c808553af50517b0267f096c8468 (diff) | |
download | gnulib-508eb99193de67a76bd3e02e85504cbc555f0a61.tar.gz |
copy-file-range: new module
* MODULES.html.sh: Add copy-file-range.
* lib/copy-file-range.c, m4/copy-file-range.m4:
* modules/copy-file-range: New files.
* lib/unistd.in.h (copy_file_range): Declare.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
* modules/unistd (unistd.h): Substitute them.
Diffstat (limited to 'modules/copy-file-range')
-rw-r--r-- | modules/copy-file-range | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/copy-file-range b/modules/copy-file-range new file mode 100644 index 0000000000..18742ef3b5 --- /dev/null +++ b/modules/copy-file-range @@ -0,0 +1,33 @@ +Description: +Copy parts of files + +Files: +lib/copy-file-range.c +m4/copy-file-range.m4 + +Depends-on: +c99 +inttypes-incomplete [test $HAVE_COPY_FILE_RANGE = 0] +largefile +libc-config [test $HAVE_COPY_FILE_RANGE = 0] +pread [test $HAVE_COPY_FILE_RANGE = 0] +pwrite [test $HAVE_COPY_FILE_RANGE = 0] +unistd + +configure.ac: +gl_FUNC_COPY_FILE_RANGE +if test $HAVE_COPY_FILE_RANGE = 0; then + AC_LIBOBJ([copy-file-range]) +fi +gl_UNISTD_MODULE_INDICATOR([copy-file-range]) + +Makefile.am: + +Include: +<unistd.h> + +License: +LGPLv2+ + +Maintainer: +all |