> > Obviously, platforms that have a well-known temp directory could implement > > their own apr_get_temp_dir to just return the correct string, but for > > Unix platforms, there are three or four "correct" temp locations based on > > platform and how the admin has things setup. > > True. That would seem to fit the bill. We could also check for permission > access on unix platforms so we were sure we could write there...
But on most unixes - your libc knows how to handle those when you use interfaces like tmpnam. And I've seen some platforms where this determination was complex; depending on uid and login class. Dw
