• Show log

    Commit

  • Hash : 0ac98783
    Author : Paul Eggert
    Date : 2022-01-14T17:27:51

    copy-file-range: work around Linux kernel bug
    
    This workaround is adapted from Coreutils.
    * lib/copy-file-range.c [__linux__ && HAVE_COPY_FILE_RANGE]:
    Include <sys/utsname.h>.
    (copy_file_range): Use a stub to replace the copy_file_range of
    Linux kernel versions 4.5 through 5.2.
    * lib/unistd.in.h (copy_file_range):
    * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
    * modules/copy-file-range (configure.ac):
    * modules/unistd (unistd.h):
    Support replacement of copy_file_range.
    * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
    Define HAVE_COPY_FILE_RANGE if the system has copy_file_range,
    and on Linux check whether the system’s is known to work.
    

  • README

  • This directory contains metainformation about the gnulib modules, one or two
    files per module. These files are used by gnulib-tool.
    
    For every module,
      - the file <module> is the metainformation about the library code of the
        module,
      - the file <module>-tests is the metainformation about the unit test of
        the module (optional but recommended).
    
    All the files in this directory are distributed under the following copyright:
    
      Copyright (C) 2002-2022 Free Software Foundation, Inc.
      Copying and distribution of this file, with or without modification,
      in any medium, are permitted without royalty provided the copyright
      notice and this notice are preserved.