On 23/10/29 08:49PM, Markus Wichmann wrote:
> Am Sun, Oct 29, 2023 at 06:00:18PM +0100 schrieb Страхиња Радић:
> > mkdir returning EISDIR is definitely not a part of POSIX.[1]
> >
> > [1]: 
> > https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html#tag_16_325_05
> 
> That's where you're wrong. Any function can fail for any reason unless
> POSIX specifically states "this function shall not fail with...". Only
> if the error conditions listed in the definition of the function apply,
> they have to return those error codes. Or as XSI chapter 2.3 puts it:
> 
> | Implementations may support additional errors not included in this list,
> | may generate errors included in this list under circumstances other than
> | those described here, or may contain extensions or limitations that
> | prevent some errors from occurring.

Ok, let me rephrase that:

mkdir returning EISDIR is definitely not prescribed by POSIX. The possibility 
of it being returned is not forbidden, but also not explicitly enumerated in
POSIX.

Attachment: signature.asc
Description: PGP signature

Reply via email to