]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
symlink.2: Glibc falls back to symlink() on kernels that lack symlinkat()
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 16 May 2014 09:30:41 +0000 (11:30 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 18 Aug 2014 22:01:48 +0000 (17:01 -0500)
man2/symlink.2

index 8bd067fb446e174cb3406d50f06776e06664bb6c..00cc09e586c3da66a04169496094d313da5a43fb 100644 (file)
@@ -244,6 +244,19 @@ Deleting the name referred to by a symbolic link will actually delete the
 file (unless it also has other hard links).
 If this behavior is not desired, use
 .BR link (2).
+.SS Glibc notes
+On older kernels where
+.BR symlinkat ()
+is unavailable, the glibc wrapper function falls back to the use of
+.BR symlink (2).
+When
+.I linkpath
+is a relative pathname,
+glibc constructs a pathname based on the symbolic link in
+.IR /proc/self/fd
+that corresponds to the
+.IR newdirfd
+argument.
 .SH SEE ALSO
 .BR ln (1),
 .BR lchown (2),