• Show log

    Commit

  • Hash : b6ac7d13
    Author : Paul Eggert
    Date : 2017-07-30T10:53:32

    backup-rename: new module
    
    It is like backupfile, except it avoids some race conditions,
    and it does not output to stderr or exit.
    * MODULES.html.sh: Add backup-rename.
    * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
    * modules/backup-rename: New files.
    * lib/backupfile.c: Turn this into an internals file, which
    contains code common to backupfile and backup_rename.  Do not
    include argmatch.h or xalloc.h: include xalloc-oversized.h.
    Include renameat2.h and fcntl.h.
    (BACKUP_NOMEM): New constant.
    (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
    on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
    (backupfile_internal): Rename from find_backup_file_name.
    Support new arg RENAME.
    (backup_args, backup_types, get_version, xget_version):
    Move to lib/backup-find.c.
    * lib/backupfile.h (backup_file_rename): New decl.
    * modules/backupfile (Files): Add lib/backup-internal.h,
    lib/backup-find.c.
    (Depends-on): Add dirfd, fcntl, renameat2.
    (lib_SOURCES): Add backup-find.c.
    

  • 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-2017 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.