summaryrefslogtreecommitdiff
path: root/MODULES.html.sh
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-07-30 10:53:32 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-07-30 11:08:43 -0700
commitb6ac7d133c6a478b40f5767b0c9d8713775dbf6f (patch)
tree2a33204cec3a0180f274bb687ae4b6eae6924f94 /MODULES.html.sh
parentd274292d1b143f20ea21e3781fc614f1fd438a00 (diff)
downloadgnulib-b6ac7d133c6a478b40f5767b0c9d8713775dbf6f.tar.gz
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.
Diffstat (limited to 'MODULES.html.sh')
-rwxr-xr-xMODULES.html.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/MODULES.html.sh b/MODULES.html.sh
index 102223d179..a64b9997e0 100755
--- a/MODULES.html.sh
+++ b/MODULES.html.sh
@@ -2637,6 +2637,7 @@ func_all_modules ()
func_module areadlinkat
func_module areadlinkat-with-size
func_module backupfile
+ func_module backup-rename
func_module canonicalize
func_module canonicalize-lgpl
func_module chdir-safer