From f17342a5a38f3df01a67543bf5adde6b3169a76d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 16 May 2014 10:23:19 +0200 Subject: [PATCH] mkdir.2: Glibc falls back to mkdir() on kernels that don't support mkdirat() Signed-off-by: Michael Kerrisk --- man2/mkdir.2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/man2/mkdir.2 b/man2/mkdir.2 index 71f794fd8..9bdb1e21e 100644 --- a/man2/mkdir.2 +++ b/man2/mkdir.2 @@ -220,6 +220,19 @@ See also There are many infelicities in the protocol underlying NFS. Some of these affect .BR mkdir (). +.SS Glibc notes +On older kernels where +.BR mkdirat () +is unavailable, the glibc wrapper function falls back to the use of +.BR mkdir (). +When +.I pathname +is a relative pathname, +glibc constructs a pathname based on the symbolic link in +.IR /proc/self/fd +that corresponds to the +.IR dirfd +argument. .SH SEE ALSO .BR mkdir (1), .BR chmod (2),