poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / link.texi
blobbfdddd50b218ac4ee5b3ef2ce625146b26162ddc
1 @node link
2 @section @code{link}
3 @findex link
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/link.html}
7 LSB specification:@* @url{https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-link-1.html}
9 Gnulib module: link
11 Portability problems fixed by Gnulib:
12 @itemize
13 @item
14 This function is missing on some platforms:
15 mingw, MSVC 14.
16 @item
17 This function fails to reject trailing slashes on non-directories on
18 some platforms:
19 FreeBSD 7.2, Solaris 11.3, Cygwin 1.5.x.
20 @item
21 When the second argument is a dangling symlink, some platforms follow
22 that link and create the destination rather than failing:
23 IRIX 6.5.
24 @end itemize
26 Portability problems not fixed by Gnulib:
27 @itemize
28 @item
29 When the first argument is a symlink, some platforms create a
30 hard-link to what the symlink referenced, rather than to the symlink
31 itself.  Use @samp{linkat} to force a particular behavior.
32 @end itemize