tech-userlevel archive

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

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



On Fri, Aug 30, 2019 at 02:40:06PM +1000, matthew green wrote:
> 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


Well, this is... well... I'm embarassed I missed it.  I think
you should change it now.

Only thing to watch out for I suppose is that vi's expectation
of where vi.recover goes doesn't change -- though that should
never have even been in /var/tmp in the first place.

Thor


Home | Main Index | Thread Index | Old Index