+#elif OS(QNX)
+ memset(®s, 0, sizeof(regs));
+ regs.tid = pthread_self();
+ int fd = open("/proc/self", O_RDONLY);
+ if (fd == -1) {
+ LOG_ERROR("Unable to open /proc/self (errno: %d)", errno);
+ CRASH();
+ }
+ devctl(fd, DCMD_PROC_TIDSTATUS, ®s, sizeof(regs), 0);
+ close(fd);