Subject: Include EINVAL in mkdir(2) man page

From: Raghavendra Prabhu <[email-masked]>
Date: Mon, 4 May 2015 20:01:31 +0530

Hi,

It is possible for mkdir(2) to return EINVAL in certain circumstances.
However, the man page mkdir(2) doesn't mention that.

I am hitting it on overlayfs. Other instances reported:

http://stackoverflow.com/questions/10015377/mkdir-pathname-with-symbol
http://lists.opensuse.org/opensuse-bugs/2009-05/msg01771.html

So, it needs to be documented in man page for mkdir(2).

------
Raghavendra