doc/posix-functions/rename.texi


Log

Author Commit Date CI Message
Bruno Haible d00ddf69 2017-10-12T23:18:12 doc: Update for Solaris 11.3. * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3, mention Solaris 11.3. * m4/log2.m4: Fix comments. * m4/log2f.m4: Likewise. * m4/printf.m4: Update comments. * m4/rename.m4: Likewise. * m4/strncat.m4: Likewise.
Bruno Haible 2464dbce 2017-10-12T17:40:54 all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
Paul Eggert 6980ecee 2017-08-16T08:34:41 rename: port better to NetBSD * doc/posix-functions/rename.texi (rename): NetBSD 7 does not have the link-count bug. * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be broken merely because rename ("a", "b") removes "a" when the two names are hard links to the same file.
Bruno Haible 60151d8e 2017-08-16T10:13:42 rename, renameat: Update doc regarding NetBSD. * doc/posix-functions/rename.texi: Clarify that when using -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone. * doc/posix-functions/renameat.texi: Be more precise about NetBSD version.
Paul Eggert 9a6c7d3f 2017-08-15T15:53:50 rename: document+test NetBSD rename Test failure reported by Bruno Haible in: http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00104.html This is an area where NetBSD is better-behaved than POSIX, so allow the NetBSD behavior in tests. * doc/posix-functions/rename.texi: * doc/posix-functions/renameat.texi: Document NetBSD behavior. * tests/test-rename.h (test_rename): Allow NetBSD behavior.
Bruno Haible 8fb59b8f 2017-07-06T01:10:39 doc: Update for MSVC 14. * doc/posix-headers/*.texi: Add info about MSVC 14. * doc/posix-functions/*.texi: Likewise. * doc/pastposix-functions/*.texi: Likewise. * doc/glibc-headers/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise.
Bruno Haible fca3cc12 2012-01-08T19:57:28 doc: Update for Solaris 11 2011-11. * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate. * m4/printf.m4: Update comments.
Bruno Haible 4e39aa42 2011-09-11T21:56:17 doc: Update regarding MSVC 9. * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely tested". * doc/posix-functions/*.texi: Update with info about MSVC 9. * doc/posix-headers/*.texi: Likewise. * doc/pastposix-functions/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise. * doc/glibc-headers/*.texi: Likewise.
Bruno Haible e8eabe5a 2010-12-04T11:38:40 Update for Solaris 11 2010-11. * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11 Express, released in November 2010.
Bruno Haible 13cf7ad6 2010-11-14T00:55:37 rename, renameat: Document Linux bug with NFS. <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>. * doc/posix-functions/rename.texi: Mention the NFS bug on Linux. * doc/posix-functions/renameat.texi: Likewise. Suggested by Eric Blake.
Karl Berry 80fc442c 2010-08-13T11:50:58 avoid some overlong lines from posix urls, etc.
Bruno Haible b9a20858 2010-07-30T21:11:09 rename: Update regarding AIX.
Eric Blake d462fe17 2009-11-08T18:11:50 rename: detect FreeBSD bug rename("link-to-file/","new") mistakenly succeeded. * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with slash on symlink. * modules/renameat-tests (Depends-on): Add filenamecat. * tests/test-rename.h (test_rename): Allow one more errno. * tests/test-renameat.c (main): Likewise. * doc/posix-functions/rename.texi (rename): Document the bug. Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake 2763d20e 2009-10-02T12:05:02 rename, fchdir: don't ignore chdir failure Although we just checked that chdir(cwd) worked, there is a race where it could disappear while we are temporarily away. If that happens, forcefully give up rather than proceeding in the wrong directory. * lib/fchdir.c (get_name): Abort on unexpected chdir failure. * lib/rename.c (rpl_rename) [W32]: Likewise. (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing an empty destination directory if source cannot be renamed, although there is still possibility for failure. * doc/posix-functions/rename.texi (rename): Document the race. Reported by Jim Meyering. Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake 028ee2f5 2009-09-26T17:22:15 rename-tests: new test, exposes several platform bugs This test passes on GNU/Linux, OpenBSD, and Cygwin 1.7. Elsewhere, this test fails because of at least these bugs: Solaris 10, cygwin 1.5.x, and mingw all mistakenly succeed on rename("file","other/"). Solaris 9 and the gnulib replacement for SunOS 4.1 mistakenly succeed on rename("file/","other"). Cygwin 1.5.x and mingw mistakenly succeed on rename("dir","d/."). Cygwin 1.5.x and NetBSD 1.6 (even with the gnulib replacement) mistakenly reduce the link count on rename("hard1","hard2"). * modules/rename-tests: New file. * tests/test-rename.h: Likewise. * tests/test-rename.c: Likewise. * doc/posix-functions/rename.texi (rename): Improve documentation, including bugs that will eventually be fixed in gnulib. Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake c5c46dcc 2009-09-07T11:27:05 rename: modernize replacement * modules/rename (Depends-on): Add stdio. (configure.ac): Declare witness. * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let stdio take care of replacement. * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults. * modules/stdio (Makefile.am): Substitute them. * lib/stdio.in.h (rename): Declare replacement. * lib/rename.c (includes): Allow cross-compilation to non-windows machines. * doc/posix-functions/rename.texi (rename): Improve documentation. Signed-off-by: Eric Blake <ebb9@byu.net>
Ben Pfaff 533b2774 2009-04-07T20:41:15 Make rename replace existing destinations on Windows.
Bruno Haible 09ef7461 2008-12-14T14:38:13 Refer to new POSIX:2008 standard.
Bruno Haible 2b6c08c7 2008-01-20T00:09:59 Rename two directories: headers -> posix-headers, functions -> posix-functions.