On May 13, 2005, at 17:55, Sam Hartman wrote:
    Albert> Per my post with the description of patch PHCO_22923, it
    Albert> isn't broken.  This is how HP designed the stub functions.

A design can be broken.

I don't believe the implementation of pthread_once in the HP libc
meets the API specification in POSIX.  That counts as broken in my
book.

One could probably argue that there is a POSIX-compliant configuration, and additional vendor-specific configurations, and "cc" without "-lpthread" (or whatever) is one of the latter. Still, it's pretty lame; but on the other hand, HP-UX isn't the only system that does this -- Solaris is similarly broken.


(At least as of POSIX.1-1996, you can't just say, "you left out the -mt option therefore we can do anything we want with pthread_* and still be compliant". Without some magic compilation option, the implementation can choose not to define _POSIX_THREADS, but that doesn't let them screw up the function implementations. Having _POSIX_THREADS defined mean the pthread functions are available and do the right thing. Having it *not* defined means *either* they're available and do the right thing, or they're not available. Or, you're not complying with the POSIX spec.)

Ken

________________________________________________
Kerberos mailing list           [email protected]
https://mailman.mit.edu/mailman/listinfo/kerberos

Reply via email to