Jim Meyering wrote: > Users expect tools like chmod -R, du and find to work even when run from > an unreadable directory. Once you impose that requirement, you have > admitted that save_cwd and restore_cwd are required. With them you must > admit the possibility of restore_cwd failure. And openat's interface > does not allow for that, since it must not change the working directory. > Since I require that coreutils applications use the *at-function > interfaces, I'm stuck with the possibility, however remote, that a > normally library-quality *at-function may exit.
OK. Then let's document the current situation. I'm applying this: 2008-12-15 Bruno Haible <br...@clisp.org> * doc/posix-functions/openat.texi: Mention the 'openat' module. * doc/posix-functions/fchmodat.texi: Likewise. * doc/posix-functions/fchownat.texi: Likewise. * doc/posix-functions/fdopendir.texi: Likewise. * doc/posix-functions/fstatat.texi: Likewise. * doc/posix-functions/mkdirat.texi: Likewise. * doc/posix-functions/unlinkat.texi: Likewise. --- doc/posix-functions/fchmodat.texi.orig 2008-12-15 12:29:26.000000000 +0100 +++ doc/posix-functions/fchmodat.texi 2008-12-15 12:26:44.000000000 +0100 @@ -4,15 +4,16 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/fchmodat.html} -Gnulib module: --- +Gnulib module: openat Portability problems fixed by Gnulib: @itemize +...@item +This function is missing on some platforms: +glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin, mingw, Interix 3.5, BeOS. +But the replacement function is not safe to be used in libraries and is not multithread-safe. @end itemize Portability problems not fixed by Gnulib: @itemize -...@item -This function is missing on some platforms: -glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin, mingw, Interix 3.5, BeOS. @end itemize --- doc/posix-functions/fchownat.texi.orig 2008-12-15 12:29:26.000000000 +0100 +++ doc/posix-functions/fchownat.texi 2008-12-15 12:26:44.000000000 +0100 @@ -4,15 +4,16 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/fchownat.html} -Gnulib module: --- +Gnulib module: openat Portability problems fixed by Gnulib: @itemize +...@item +This function is missing on some platforms: +glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw, Interix 3.5, BeOS. +But the replacement function is not safe to be used in libraries and is not multithread-safe. @end itemize Portability problems not fixed by Gnulib: @itemize -...@item -This function is missing on some platforms: -glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw, Interix 3.5, BeOS. @end itemize --- doc/posix-functions/fdopendir.texi.orig 2008-12-15 12:29:26.000000000 +0100 +++ doc/posix-functions/fdopendir.texi 2008-12-15 12:26:44.000000000 +0100 @@ -4,15 +4,16 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/fdopendir.html} -Gnulib module: --- +Gnulib module: openat Portability problems fixed by Gnulib: @itemize +...@item +This function is missing on some platforms: +glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw, Interix 3.5, BeOS. +But the replacement function is not safe to be used in libraries and is not multithread-safe. @end itemize Portability problems not fixed by Gnulib: @itemize -...@item -This function is missing on some platforms: -glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw, Interix 3.5, BeOS. @end itemize --- doc/posix-functions/fstatat.texi.orig 2008-12-15 12:29:26.000000000 +0100 +++ doc/posix-functions/fstatat.texi 2008-12-15 12:26:44.000000000 +0100 @@ -4,15 +4,16 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/fstatat.html} -Gnulib module: --- +Gnulib module: openat Portability problems fixed by Gnulib: @itemize +...@item +This function is missing on some platforms: +glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw, Interix 3.5, BeOS. +But the replacement function is not safe to be used in libraries and is not multithread-safe. @end itemize Portability problems not fixed by Gnulib: @itemize -...@item -This function is missing on some platforms: -glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw, Interix 3.5, BeOS. @end itemize --- doc/posix-functions/mkdirat.texi.orig 2008-12-15 12:29:26.000000000 +0100 +++ doc/posix-functions/mkdirat.texi 2008-12-15 12:26:44.000000000 +0100 @@ -4,15 +4,16 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mkdirat.html} -Gnulib module: --- +Gnulib module: openat Portability problems fixed by Gnulib: @itemize +...@item +This function is missing on some platforms: +glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin, mingw, Interix 3.5, BeOS. +But the replacement function is not safe to be used in libraries and is not multithread-safe. @end itemize Portability problems not fixed by Gnulib: @itemize -...@item -This function is missing on some platforms: -glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin, mingw, Interix 3.5, BeOS. @end itemize --- doc/posix-functions/openat.texi.orig 2008-12-15 12:29:26.000000000 +0100 +++ doc/posix-functions/openat.texi 2008-12-15 12:26:44.000000000 +0100 @@ -4,15 +4,16 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/openat.html} -Gnulib module: --- +Gnulib module: openat Portability problems fixed by Gnulib: @itemize +...@item +This function is missing on some platforms: +glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw, Interix 3.5, BeOS. +But the replacement function is not safe to be used in libraries and is not multithread-safe. @end itemize Portability problems not fixed by Gnulib: @itemize -...@item -This function is missing on some platforms: -glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw, Interix 3.5, BeOS. @end itemize --- doc/posix-functions/unlinkat.texi.orig 2008-12-15 12:29:26.000000000 +0100 +++ doc/posix-functions/unlinkat.texi 2008-12-15 12:26:44.000000000 +0100 @@ -4,15 +4,16 @@ POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/unlinkat.html} -Gnulib module: --- +Gnulib module: openat Portability problems fixed by Gnulib: @itemize +...@item +This function is missing on some platforms: +glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw, Interix 3.5, BeOS. +But the replacement function is not safe to be used in libraries and is not multithread-safe. @end itemize Portability problems not fixed by Gnulib: @itemize -...@item -This function is missing on some platforms: -glibc 2.3.6, MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Cygwin, mingw, Interix 3.5, BeOS. @end itemize