[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mkstemps

From: Bruce Korb
Subject: Re: mkstemps
Date: Tue, 30 Jun 2009 09:56:00 -0700

On Tue, Jun 30, 2009 at 5:12 AM, Eric Blake<address@hidden> wrote:
> Hash: SHA1
> According to Bruce Korb on 6/29/2009 2:55 PM:
>> Silly me, I just have to ask (rhetorically):  Why is this nice, new
>> interface cooked up and then left unfinished.  It needs "mkdtemps", too, yes?
>> Just for symmetry, if nothing else....
> Ask the BSD folks who originally designed mkstemps?
>  In reality, though, I
> seldom see directory names where an extension is important, but with
> regular files, there are quite a few programs that depend on the name of
> the extension.

cc/gcc, for example?

>  Thus, creating a temporary file with a known extension is
> more common than a temporary directory with a known extension.

I like symmetry, I guess.  The easier it is to guess correctly (due
to symmetry and other properties), the fewer exceptions one has
to remember, and the better I like it.

> At any rate, let's see whether we get any feedback from glibc:
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=10349

Thanks, Eric.  Cheers - Bruce

reply via email to

[Prev in Thread] Current Thread [Next in Thread]