Obtained from: ftp://netlib.att.com/netlib/att/cs/v7man/man2
Submitted by: John Birrel(L?) changes for threadsafe operations