summaryrefslogtreecommitdiff
path: root/modules/backupfile
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-10-23 19:10:21 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-10-23 19:11:12 -0700
commit1b01fe40918401a965651499b0ba37ff53be86a9 (patch)
tree7bff60c2b8856e06669fbe0580cf2ce506a45ca4 /modules/backupfile
parent0f0ee4a910a71e7d53d6e05b2bc8bc45afff96ac (diff)
downloadgnulib-1b01fe40918401a965651499b0ba37ff53be86a9.tar.gz
backupfile: new dir_fd args
New module opendirat with code taken from fts. Use this module to let backupfile use a directory file descriptor. * NEWS: Document the incompatible change. * lib/backup-find.c (find_backup_file_name): * lib/backup-rename.c (backup_file_rename): New arg DIR_FD. * lib/backupfile.c: Include stdint.h, for SIZE_MAX. (SIZE_MAX): Remove. Include opendirat.h rather than dirent--.h. (check_extension): New args DIR_FD and BASE_MAX. All callers changed. (numbered_backup): New args DIR_FD and PNEW_FD. All callers changed. (backupfile_internal): New arg DIR_FD. All callers changed. * lib/fts.c: Include opendirat.h. (opendirat): Move to opendirat.c. * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files. * modules/backupfile (Depends-on): Remove dirfd, opendir. Add opendirat. * modules/fts (Depends-on): Remove fdopendir, openat-safer. Add opendirat.
Diffstat (limited to 'modules/backupfile')
-rw-r--r--modules/backupfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/backupfile b/modules/backupfile
index e9933fbc0a..4ada3f5617 100644
--- a/modules/backupfile
+++ b/modules/backupfile
@@ -13,14 +13,14 @@ argmatch
closedir
d-ino
dirent-safer
-dirfd
dirname-lgpl
fcntl
memcmp
-opendir
+opendirat
renameatu
readdir
stdbool
+stdint
configure.ac:
gl_BACKUPFILE