This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] use mkstemp instead of mktemp.


On Tue, Jul 01, 2003 at 07:16:30PM -0700, Muthukumar Ratty wrote:
> > <URL:http://sources.redhat.com/ml/binutils/2003-03/msg00219.html>.
> >
> > This is turning into a FAQ, though infrequent enough that I
> > believe people may forget why.  Perhaps adding an obvious
> > comment at the mktemp call site would help.
> >
> 
> that sure would keep off some newbie trying it (like me:)

Don't give up.  Recent versions of glibc provide mkdtemp, so you could
use that.  The complication is that you'd need to add an autoconf test
for mkdtemp (see AC_CHECK_FUNCS) and fall back to using mktemp if
mkdtemp isn't available.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]