* lib/at-func.c: Include filename.h instead of dosname.h.
* lib/unlinkat.c: Likewise.
* modules/areadlinkat (Depends-on): Add filename. Remove dosname.
* modules/areadlinkat-with-size (Depends-on): Likewise.
* modules/faccessat (Depends-on): Likewise.
* modules/fchmodat (Depends-on): Likewise.
* modules/fchownat (Depends-on): Likewise.
* modules/fstatat (Depends-on): Likewise.
* modules/mkdirat (Depends-on): Likewise.
* modules/mkfifoat (Depends-on): Likewise.
* modules/readlinkat (Depends-on): Likewise.
* modules/selinux-at (Depends-on): Likewise.
* modules/symlinkat (Depends-on): Likewise.
* modules/unlinkat (Depends-on): Likewise.
* modules/utimensat (Depends-on): Likewise.
* lib/at-func2.c: Include filename.h instead of dosname.h.
* modules/linkat (Depends-on): Add filename. Remove dosname.
* modules/renameatu (Depends-on): Likewise.
* lib/canonicalize.c: Include filename.h instead of dosname.h.
* lib/canonicalize-lgpl.c: Likewise.
* modules/canonicalize (Depends-on): Add filename.
* modules/canonicalize-lgpl (Depends-on): Likewise.
* lib/dirname.h: Include filename.h instead of dosname.h.
* modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
* lib/fchdir.c: Include filename.h instead of dosname.h.
* modules/fchdir (Depends-on): Add filename. Remove dosname.
* lib/openat.c: Include filename.h instead of dosname.h.
* modules/openat (Depends-on): Add filename. Remove dosname.
* lib/rmdir.c: Include filename.h instead of dosname.h.
* modules/rmdir (Depends-on): Add filename. Remove dosname.
* lib/savewd.c: Include filename.h instead of dosname.h.
* modules/savewd (Depends-on): Add filename. Remove dosname.
* lib/unlink.c: Include filename.h instead of dosname.h.
* modules/unlink (Depends-on): Add filename. Remove dosname.
* modules/relocatable-prog-wrapper (Depends-on): Add filename.
* lib/relocwrapper.c: Update comments.
* modules/lstat (Depends-on): Remove dosname.
+2020-03-28 Bruno Haible <bruno@clisp.org>
+
+ Use module 'filename' instead of module 'dosname'.
+
+ * lib/at-func.c: Include filename.h instead of dosname.h.
+ * lib/unlinkat.c: Likewise.
+ * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
+ * modules/areadlinkat-with-size (Depends-on): Likewise.
+ * modules/faccessat (Depends-on): Likewise.
+ * modules/fchmodat (Depends-on): Likewise.
+ * modules/fchownat (Depends-on): Likewise.
+ * modules/fstatat (Depends-on): Likewise.
+ * modules/mkdirat (Depends-on): Likewise.
+ * modules/mkfifoat (Depends-on): Likewise.
+ * modules/readlinkat (Depends-on): Likewise.
+ * modules/selinux-at (Depends-on): Likewise.
+ * modules/symlinkat (Depends-on): Likewise.
+ * modules/unlinkat (Depends-on): Likewise.
+ * modules/utimensat (Depends-on): Likewise.
+
+ * lib/at-func2.c: Include filename.h instead of dosname.h.
+ * modules/linkat (Depends-on): Add filename. Remove dosname.
+ * modules/renameatu (Depends-on): Likewise.
+
+ * lib/canonicalize.c: Include filename.h instead of dosname.h.
+ * lib/canonicalize-lgpl.c: Likewise.
+ * modules/canonicalize (Depends-on): Add filename.
+ * modules/canonicalize-lgpl (Depends-on): Likewise.
+
+ * lib/dirname.h: Include filename.h instead of dosname.h.
+ * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
+
+ * lib/fchdir.c: Include filename.h instead of dosname.h.
+ * modules/fchdir (Depends-on): Add filename. Remove dosname.
+
+ * lib/openat.c: Include filename.h instead of dosname.h.
+ * modules/openat (Depends-on): Add filename. Remove dosname.
+
+ * lib/rmdir.c: Include filename.h instead of dosname.h.
+ * modules/rmdir (Depends-on): Add filename. Remove dosname.
+
+ * lib/savewd.c: Include filename.h instead of dosname.h.
+ * modules/savewd (Depends-on): Add filename. Remove dosname.
+
+ * lib/unlink.c: Include filename.h instead of dosname.h.
+ * modules/unlink (Depends-on): Add filename. Remove dosname.
+
+ * modules/relocatable-prog-wrapper (Depends-on): Add filename.
+ * lib/relocwrapper.c: Update comments.
+
+ * modules/lstat (Depends-on): Remove dosname.
+
2020-03-28 Bruno Haible <bruno@clisp.org>
dosname: Redirect to 'filename'.
/* written by Jim Meyering */
-#include "dosname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
+#include "filename.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
#ifdef GNULIB_SUPPORT_ONLY_AT_FDCWD
# include <errno.h>
#include <string.h>
#include <unistd.h>
-#include "dosname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
+#include "filename.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
#include "filenamecat.h"
#include "openat.h"
#include "same-inode.h"
# define __realpath realpath
# include "pathmax.h"
# include "malloca.h"
-# include "dosname.h"
+# include "filename.h"
# if HAVE_GETCWD
# if IN_RELOCWRAPPER
/* When building the relocatable program wrapper, use the system's getcwd
#include "pathmax.h"
#include "xalloc.h"
#include "xgetcwd.h"
-#include "dosname.h"
+#include "filename.h"
#define MULTIPLE_BITS_SET(i) (((i) & ((i) - 1)) != 0)
# include <stdbool.h>
# include <stddef.h>
-# include "dosname.h"
+# include "filename.h"
# ifndef DIRECTORY_SEPARATOR
# define DIRECTORY_SEPARATOR '/'
#include <sys/stat.h>
#include "assure.h"
-#include "dosname.h"
+#include "filename.h"
#include "filenamecat.h"
#ifndef REPLACE_OPEN_DIRECTORY
#else /* !HAVE_OPENAT */
-# include "dosname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
+# include "filename.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
# include "openat-priv.h"
# include "save-cwd.h"
-> allocator
-> readlink
-> stat
- -> dosname
+ -> filename
-> pathmax
-> verify
-> canonicalize-lgpl
+ -> filename
-> malloca
-> lstat
-> readlink
#include <errno.h>
#include <string.h>
-#include "dosname.h"
+#include "filename.h"
#undef rmdir
#include <unistd.h>
#include "assure.h"
-#include "dosname.h"
#include "fcntl-safer.h"
+#include "filename.h"
#ifndef FALLTHROUGH
# if __GNUC__ < 7
#include <string.h>
#include <sys/stat.h>
-#include "dosname.h"
+#include "filename.h"
#undef unlink
#include <stdlib.h>
-#include "dosname.h"
+#include "filename.h"
#include "openat.h"
#if HAVE_UNLINKAT
careadlinkat
readlinkat
at-internal
-dosname
errno
extensions
fchdir
fcntl-h
+filename
openat-die
openat-h
save-cwd
stdint
readlinkat
at-internal
-dosname
errno
extensions
fchdir
fcntl-h
+filename
openat-die
openat-h
save-cwd
errno
extensions
file-set
+filename
hash-triple
lstat
memmove
nocrash
alloca-opt [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
errno [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
+filename [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
lstat [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
malloca [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
memmove [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1]
m4/dirname.m4
Depends-on:
-dosname
double-slash-root
+filename
malloc-posix
stdbool
unistd
extensions
at-internal [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
-dosname [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
errno [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
fchdir [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
fcntl-h [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
+filename [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
fstatat [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
openat-die [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
openat-h [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1]
close [test $HAVE_FCHDIR = 0]
dirent [test $HAVE_FCHDIR = 0]
dirfd [test $HAVE_FCHDIR = 0]
-dosname [test $HAVE_FCHDIR = 0]
dup2 [test $HAVE_FCHDIR = 0]
fcntl [test $HAVE_FCHDIR = 0]
fcntl-h [test $HAVE_FCHDIR = 0]
+filename [test $HAVE_FCHDIR = 0]
filenamecat-lgpl [test $HAVE_FCHDIR = 0]
fstat [test $HAVE_FCHDIR = 0]
getcwd-lgpl [test $HAVE_FCHDIR = 0]
sys_stat
extensions
at-internal [test $HAVE_FCHMODAT = 0]
-dosname [test $HAVE_FCHMODAT = 0]
errno [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
extern-inline [test $HAVE_FCHMODAT = 0]
fchdir [test $HAVE_FCHMODAT = 0]
fcntl-h [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
+filename [test $HAVE_FCHMODAT = 0]
fstatat [test $REPLACE_FCHMODAT = 1]
intprops [test $HAVE_FCHMODAT = 0 || test $REPLACE_FCHMODAT = 1]
lchmod [test $HAVE_FCHMODAT = 0]
unistd
extensions
at-internal [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
-dosname [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
errno [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
extern-inline [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
fchdir [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
fcntl-h [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
+filename [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
lchown [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
openat-die [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
openat-h [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1]
sys_stat
extensions
at-internal [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
-dosname [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
errno [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
extern-inline [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
fchdir [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
fcntl-h [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
+filename [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
lstat [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
openat-die [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
openat-h [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
link-follow [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
areadlink [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
at-internal [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
-dosname [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
+filename [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
fstat [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
getcwd-lgpl [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
openat-h [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1]
Depends-on:
sys_stat
largefile
-dosname [test $REPLACE_LSTAT = 1]
stat [test $REPLACE_LSTAT = 1]
stat-time [test $REPLACE_LSTAT = 1]
sys_stat
extensions
at-internal [test $HAVE_MKDIRAT = 0]
-dosname [test $HAVE_MKDIRAT = 0]
errno [test $HAVE_MKDIRAT = 0]
fchdir [test $HAVE_MKDIRAT = 0]
fcntl-h [test $HAVE_MKDIRAT = 0]
+filename [test $HAVE_MKDIRAT = 0]
mkdir [test $HAVE_MKDIRAT = 0]
openat-die [test $HAVE_MKDIRAT = 0]
openat-h [test $HAVE_MKDIRAT = 0]
sys_stat
extensions
at-internal [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
-dosname [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
errno [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
fchdir [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
fcntl-h [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
+filename [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
openat-die [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
openat-h [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
save-cwd [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0]
cloexec [test $REPLACE_OPENAT = 1]
fstat [test $REPLACE_OPENAT = 1]
at-internal [test $HAVE_OPENAT = 0]
-dosname [test $HAVE_OPENAT = 0]
errno [test $HAVE_OPENAT = 0]
fchdir [test $HAVE_OPENAT = 0]
+filename [test $HAVE_OPENAT = 0]
open [test $HAVE_OPENAT = 0]
openat-die [test $HAVE_OPENAT = 0]
save-cwd [test $HAVE_OPENAT = 0]
unistd
extensions
at-internal [test $HAVE_READLINKAT = 0]
-dosname [test $HAVE_READLINKAT = 0]
errno [test $HAVE_READLINKAT = 0]
fchdir [test $HAVE_READLINKAT = 0]
fcntl-h [test $HAVE_READLINKAT = 0]
+filename [test $HAVE_READLINKAT = 0]
openat-die [test $HAVE_READLINKAT = 0]
openat-h [test $HAVE_READLINKAT = 0]
save-cwd [test $HAVE_READLINKAT = 0]
alloca-opt
double-slash-root
errno
+filename
largefile
pathmax
ssize_t
statat [test $REPLACE_RENAMEAT = 1]
stdbool [test $REPLACE_RENAMEAT = 1]
at-internal [test $HAVE_RENAMEAT = 0]
-dosname [test $HAVE_RENAMEAT = 0]
+filename [test $HAVE_RENAMEAT = 0]
fstat [test $HAVE_RENAMEAT = 0]
getcwd-lgpl [test $HAVE_RENAMEAT = 0]
openat-die [test $HAVE_RENAMEAT = 0]
Depends-on:
unistd
-dosname [test $REPLACE_RMDIR = 1]
+filename [test $REPLACE_RMDIR = 1]
sys_stat [test $REPLACE_RMDIR = 1]
configure.ac:
Depends-on:
assure
chdir
-dosname
errno
extern-inline
fchdir
fcntl-safer
fcntl-h
+filename
raise
stdbool
stdlib
Depends-on:
selinux-h
at-internal
-dosname
errno
extensions
fchdir
fcntl-h
+filename
openat-die
openat-h
save-cwd
unistd
extensions
at-internal [test $HAVE_SYMLINKAT = 0]
-dosname [test $HAVE_SYMLINKAT = 0]
errno [test $HAVE_SYMLINKAT = 0]
fchdir [test $HAVE_SYMLINKAT = 0]
fcntl-h [test $HAVE_SYMLINKAT = 0]
+filename [test $HAVE_SYMLINKAT = 0]
openat-die [test $HAVE_SYMLINKAT = 0]
openat-h [test $HAVE_SYMLINKAT = 0]
save-cwd [test $HAVE_SYMLINKAT = 0]
Depends-on:
unistd
-dosname [test $REPLACE_UNLINK = 1]
+filename [test $REPLACE_UNLINK = 1]
lstat [test $REPLACE_UNLINK = 1]
malloc-posix [test $REPLACE_UNLINK = 1]
sys_stat [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1]
statat [test $REPLACE_UNLINKAT = 1]
at-internal [test $HAVE_UNLINKAT = 0]
-dosname [test $HAVE_UNLINKAT = 0]
errno [test $HAVE_UNLINKAT = 0]
fchdir [test $HAVE_UNLINKAT = 0]
+filename [test $HAVE_UNLINKAT = 0]
openat-die [test $HAVE_UNLINKAT = 0]
rmdir [test $HAVE_UNLINKAT = 0]
save-cwd [test $HAVE_UNLINKAT = 0]
sys_stat
extensions
at-internal [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
-dosname [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
errno [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
fchdir [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
fcntl-h [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
+filename [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
openat-die [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
openat-h [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
save-cwd [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]