Jarkko Hietaniemi wrote in reply to Craig Berry:
!> http://www.openvms.compaq.com/commercial/c/5763p005.html#re_ent ! !It looks like the MULTITHREAD could be it. How that would require !declaring the various _r and _r_proto macros (like d_localtime_r) !in configure.com, I dunno. I _think_ that Craig was alluding to a possibility that adding something like /REENTANCY=MULTITHREAD to ccflags might be a way to go (I could be wrong). I'd like to point out section 1.9.2 of the cited URL document that states that mixing AST (asynchronous system traps) type calls with MULTITHREADing can be dangerous for a large number of C RTL calls including I/O. Note that there are calls to sys$setast() in vms/vms.c and they might need some disentangling to avoid the mutex deadlock problem alluded to in: http://www.openvms.compaq.com/commercial/c/5763p005.html#multithread_restrict_sec Peter Prymmer
