Bob Friesenhahn <[email protected]> wrote: > On Wed, 21 Oct 2015, Garrett D'Amore wrote: > > > /var/tmp is the most appropriate definition for this, at least > > ?universally?. > > Agreed. > > Since P_tmpdir is documented by POSIX, the string it defines is often > burned into application binaries. For example, it is burned into > GraphicsMagick. It becomes as concrete as the ABI. > > Programs like 'vi' write their working files to /var/tmp so that they > are not lost if the terminal goes away or the system reboots. The > restoration of /var/tmp after boot is a contract with the > applications.
Unfortunately, POSIX does not deal with volatile tmp space vs. non-volatile tmp space. Since 1988, we have tmpfs and this is fast but volatile. Given that editors like to have fast tmp space for one purpose (e.g. the swap file) and non-volatile tmp space for the recovery file, there is a problem with simple definitions like P_tmpdir. Given that tempnam() is the only user of P_tmpdir and that tempnam() is marked deprecated, I am not sure whether a discussion on a "better" P_tmpdir make sense. Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/' ------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be Modify Your Subscription: https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4 Powered by Listbox: http://www.listbox.com
