www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2012/07/12/20:44:41

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 <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
In-reply-to:
<CAA-ihx9exryc-z2z30W3E+WsJG_rERTKjrMbE9D6=WbAvyrf-Q AT mail DOT gmail DOT com>
(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: <CAA-ihx9exryc-z2z30W3E+WsJG_rERTKjrMbE9D6=WbAvyrf-Q AT mail DOT gmail DOT com>
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019