mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-16 01:22:18 +03:00
* doc/posix-functions/symlinkat.texi (symlinkat): Mention AIX porting problem. * lib/symlinkat.c: Always include errno.h. (rpl_symlinkat) [HAVE_SYMLINKAT]: New function. * lib/unistd.in.h (symlinkat): Add replacement machinery. * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT. * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT. (configure.ac): Also compile replacement if REPLACE_SYMLINKAT. * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
33 lines
948 B
Plaintext
33 lines
948 B
Plaintext
@node symlinkat
|
|
@section @code{symlinkat}
|
|
@findex symlinkat
|
|
|
|
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/symlinkat.html}
|
|
|
|
Gnulib module: symlinkat
|
|
|
|
Portability problems fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
On some systems, @code{symlinkat(value, fd, "name/")} mistakenly creates a
|
|
symlink:
|
|
AIX 7.1.
|
|
@item
|
|
This function is missing on some platforms:
|
|
glibc 2.3.6, Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8,
|
|
AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x, mingw, MSVC 9, Interix 3.5, BeOS.
|
|
But the replacement function is not safe to be used in libraries and is not multithread-safe.
|
|
@item
|
|
Some platforms declare this function in @code{stdio.h} instead of
|
|
@code{unistd.h}:
|
|
Cygwin 1.7.1.
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
This function always fails with @samp{ENOSYS} on platforms that don't
|
|
support symlinks:
|
|
mingw, MSVC 9.
|
|
@end itemize
|