This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA:] Override randomness 2 plus "as" wrapper machinery usable for diffing assembly output.
- From: Russ Allbery <rra at stanford dot edu>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 17 Dec 2005 14:31:48 -0800
- Subject: Re: [RFA:] Override randomness 2 plus "as" wrapper machinery usable for diffing assembly output.
- References: <200512161640.jBGGe2H6003926@ignucius.se.axis.com>
Hans-Peter Nilsson <hans-peter.nilsson@axis.com> writes:
> Oh, wait, I think I see the error: in glibc, it seems the function is
> called mkstemp (no s). Is that the actual Posix name and all gcc usage
> of mkstemps (with s) is actually a bug? Suggestions?
They aren't the same function. mkstemp requires that the randomized bit
be at the end of the file name, which causes problems with programs that
try to intuit things from the extension. With mkstemps, you can put the
randomized bit into the middle of the name.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>