Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Blame | Last modification | View Log | Download | RSS feed

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