tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

stdio.h's P_tmpdir definition - make it /tmp?



hi folks.


a very long time ago in netbsd years tls@ patched GCC to use
/tmp over /var/tmp, for the compiler temporaries.

i tried to keep these patches, but they got lost at some
point and when i recently wanted to deal with it (i had one
machine with some several hundred /var/tmp/cc*.o files that
were mostly over a year old), i discovered it's not nearly
as simple as a quick patch.

most of the toolchain consumers that create temp files don't
use $TMPDIR from the env but use stdio.h's P_tmpdir defintion
which we have set to "/var/tmp".  i pondered how to patch the
toolchain to deal with this sanely on netbsd, but it would
require a fairly non trivial patch to the relavant libiberty
files (and then some more) and only be for netbsd.

so, i decided i'd try running with stdio.h patch instead and
it works fine (of course.)

i didn't see much software around that uses P_tmpdir, so i
think it's probably safe and fine to change to /tmp.

any objections?  thanks.


.mrg.


Home | Main Index | Thread Index | Old Index