X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Date: Thu, 12 Jul 2012 20:44:33 -0400 Message-Id: <201207130044.q6D0iXDf015563@envy.delorie.com> From: DJ Delorie To: djgpp-workers AT delorie DOT com In-reply-to: (message from Rugxulo on Thu, 12 Jul 2012 18:42:49 -0500) Subject: Re: mktemp() fails on "detmp.xxx" but not "detmp.XXX" (proposed patch) References: Reply-To: djgpp-workers AT delorie DOT com 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.