Eric Blake <[EMAIL PROTECTED]> writes:

>  Would it be worth augmenting the mkdir module to add lib/mkdir.h
> which neutralizes mingw mkdir, then making all modules which use
> mkdir (mkdir-p, openat, mkdtemp, mkstemp) depend on the mkdir module
> and include "mkdir.h" so that they can work on mingw?

I'd rather not do that.  Surely there's a less-intrusive way to fix
this problem on nonstandard platforms like that.  You can use your own
<sys/stat.h> replacement, for example.

> For that matter, why are mkstemp and mkdtemp not sharing tempname.c?

Historical reasons, I expect.  They came from different code bases.

> In the case of mkstemp, maybe it would be easier to strip the
> (unused) mkdir out of tempname.c, since only mkdtemp really needs to
> call mkdir.

I'd rather keep tempname.c in sync with glibc if possible.
A <sys/stat.h> replacement ought to do that.


Reply via email to