view doc/posix-functions/symlink.texi @ 12056:e0c5d88f8c3b

symlink: new module, for Solaris 9 bug symlink("a","link/") mistakenly succeeds. * modules/symlink: New file. * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise. * lib/symlink.c: Likewise. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults. * modules/unistd (Makefile.am): Substitute them. * lib/unistd.in.h (symlink): Declare replacement. * MODULES.html.sh (File system functions): Mention it. * doc/posix-functions/symlink.texi (symlink): Likewise. * modules/symlink-tests: New test. * tests/test-symlink.c: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Sat, 19 Sep 2009 21:20:42 -0600
parents c83dc7e8df57
children 2518d73aaac7
line wrap: on
line source

@node symlink
@section @code{symlink}
@findex symlink

POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/symlink.html}

Gnulib module: symlink

Portability problems fixed by Gnulib:
@itemize
@item
On some systems, @code{symlink(value,"name/")} mistakenly creates a
symlink:
Solaris 9
@item
This function is missing on some platforms; however, the replacement
always fails with @code{EPERM}:
mingw.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
Some file systems do not support symbolic links.
@end itemize