Operating System - HP-UX
1833732 Members
2920 Online
110063 Solutions
New Discussion

HP-UX 11.0, errno, and threads

 
Tim Noble_1
New Member

HP-UX 11.0, errno, and threads

Can anyone point me to documentation that discusses the thread related change
to /usr/include/errno.h made in HP-UX 11.0? I am seeing a problem and need to
gain a better understanding of the situation.

In HP-UX 11.0, specifying -D_REENTRANT results in errno being declared as a
function instead of an variable. I am using a library that was not compiled
with -D_REENTRANT so it is using the variable form of errno and is not getting
the correct value of errno.

If the library is recompiled with -D_REENTRANT, will it still work in a
non-threaded application? Or will there have to be non-thread and thread
versions of the library?
1 REPLY 1
Dan Hull
Regular Advisor

Re: HP-UX 11.0, errno, and threads

Have you checked the release notes? There's a lot of info in that and other
docs in /usr/share/doc.