This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [RFA:] Override randomness 2 plus "as" wrapper machinery usable for diffing assembly output.


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/>


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