plan9port/lib/linux-isnptl.c

17 lines
215 B
C
Raw Normal View History

2005-01-17 21:32:55 +00:00
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
int
main(void)
{
ulong x;
x = (ulong)pthread_self();
2005-01-21 20:21:12 +00:00
printf("%lx\n", x);
2005-01-17 21:32:55 +00:00
if(x < 1024*1024)
exit(1); /* NOT NPTL */
exit(0);
}