This isn't _really_ a bug, more of an oddity. Calling mkdir(2) on an
existing directory will fail with EACCES instead of EEXIST if the
directory couldn't have been created in the first place. For example,
this is the typical situation for /cygdrive/c:
mkdir("/cygdrive/c", 0700);
// errno
A two-line source file demonstrates this bug:
#define _POSIX_C_SOURCE 1
#include
Then when compiled:
$ gcc -c tmp.c
In file included from /usr/include/sys/signal.h:22:0,
from /usr/include/signal.h:6,
from tmp.c:2:
/usr/include/cygwin/signa
2 matches
Mail list logo