Blame |
Last modification |
View Log
| Download
| RSS feed
// POSIX compatibility shim for QNX 8.0 by Pierre-Marie Baty <pm@pmbaty.com>
// Rationale:
// QNX exposes the POSIX threads interface in the standard C library, whereas most UNIX systems expect the
// pthread_xxx() functions to be in a library called "libpthread" instead. The mere absence of a libphtreads.so
// library in the system's library search paths makes the link step of many portable UNIX projects fail.
// To solve this problem without needing to modify hundreds of Makefiles for each UNIX project that doesn't
// build, it has been decided to create an empty static library /lib/libpthread.a with a dummy symbol in it
// and place this dummy library in the QNX platform SDK.
static int __pthread_stub = 0x600D1DEA; // looks like