Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

libpthread revision-level

Mr. Kiran N. Mehta
Occasional Contributor

libpthread revision-level

I am using an HP-UX B.11.00 A 9000/871 machine. The
"man pthread" page says that

"...a multi-threaded application must define the
appropriate POSIX Revision Level at compile time
and link against the pthread library via -lpthread.
For example:
cc -D_POSIC_C_SOURCE=199506L -o myapp -c myapp.c -lpthread"

My question is, how does one find out the *appropriate*
revision level? Any help will be appreciated.

Thanks,
Mr. Kiran N. Mehta
Pune, India
2 REPLIES
John Golaszewski
Occasional Visitor

Re: libpthread revision-level

Try the "what" command.
Highlighted
Kiran N. Mehta_1
Occasional Visitor

Re: libpthread revision-level

To : John Golaszewski (and et. al.

I'm told that the information obtained by the "what"
command on a binary pertains to the _binary_ revision
level and that it has no correlation with the revision
level value needed for aCC -D_POSIX_C_SOURCE... Thanks,
though.

Regards,
Kiran