Going back in the discussion; and looking at the code - what do we *need* it for ? Is it just to construct effective replacements for the tmpfile/tempnam /tmpnam trio ?
Or is there also a valid direct use of the name of that directory ? As I certainly would like to not encourage the use of pseudo name space management along the lines of snprintf(..'%s/myapp.%d',tmpdir,getpid()) when an OS contract offers you better. Dw -- Dirk-Willem van Gulik
