symlinkat ¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/symlinkat.html
Portability problems fixed by Gnulib:
stdio.h instead of
unistd.h:
Cygwin 1.7.1.
symlinkat(value, fd, "name/") mistakenly creates a
symlink:
macOS 14, AIX 7.1.
Portability problems not fixed by Gnulib:
ENOSYS on platforms that don’t
support symlinks:
mingw, MSVC 14.
ENOENT as GNU/Linux does:
FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.8, Solaris 11.4.
On Solaris, the empty symbolic link "" resolves like "." does;
on the BSDs, resolution fails with ENOENT.