[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tempname.c vs. mingw
From: |
Paul Eggert |
Subject: |
Re: tempname.c vs. mingw |
Date: |
Wed, 28 Jun 2006 09:32:27 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Eric Blake <address@hidden> 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.
Re: [bug-gnulib] mkdtemp fix, Bruno Haible, 2006/06/28