X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com Date: Fri, 13 Jul 2012 08:04:45 +0300 From: Eli Zaretskii Subject: Re: mktemp() fails on "detmp.xxx" but not "detmp.XXX" (proposed patch) In-reply-to: <201207130044.q6D0iXDf015563@envy.delorie.com> X-012-Sender: halo1 AT inter DOT net DOT il To: djgpp-workers AT delorie DOT com Message-id: <83sjcw9rpu.fsf@gnu.org> References: <201207130044 DOT q6D0iXDf015563 AT envy DOT delorie DOT com> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Thu, 12 Jul 2012 20:44:33 -0400 > From: DJ Delorie > > > The Linux man pages say: > > DESCRIPTION > The mktemp() function generates a unique temporary filename > from template. The last six characters of template must be > XXXXXX and these are replaced with a string that makes the > filename unique. Since it will be modified, template must not > be a string constant, but should be declared as a character > array. > > CONFORMING TO > 4.3BSD, POSIX.1-2001. POSIX.1-2008 removes the specification > of mktemp(). > > My POSIX spec is older than 2001 so I can't confirm this. Note that > the XXXXXX part is *not* a filename component, but a pattern to be > replaced, so the "files are case ignoring" argument doesn't apply. That's true, but some programs downcase file names before using them, and don't differentiate between patterns and actual file names. That's what Emacs does. (I will fix this in Emacs in a day or two.) Anyway, I think given the slim chances that there will ever be another DJGPP release, I think this is a moot point. Any changes in the library at this time are unlikely to help DJGPP users.