cancel
Showing results for 
Search instead for 
Did you mean: 

Thread-Safe libc

 
SOLVED
Go to solution
Highlighted
Frequent Advisor

Thread-Safe libc

Hello,

I'm starting developing a C multi-thread application on HP-UX 11.31 platform.

I know there are libc routines that are "non reentrant", that have a reentrant interface having "_r" suffix.

My question is: which is the list of "non reentrant" routines in HA-UX 11.31?
Is there any document dealing whit them?

Many thanks

Giuseppe Fedele
2 REPLIES 2
Highlighted
Acclaimed Contributor
Solution

Re: Thread-Safe libc

See the list in thread_safety(5). Generally, all libc routines are reentrant, even if they don't have _r.
http://docs.hp.com/en/B2355-60130/thread_safety.5.html

If you are compiling with HP's compilers, make sure you use -mt.
Highlighted
Acclaimed Contributor

Re: Thread-Safe libc

Hi Giuseppe:

You might find this whitepaper useful too:

http://www.docs.hp.com/en/5992-4663/index.html

Regards!

...JRF...