summaryrefslogtreecommitdiff
path: root/devel/libhoard/files/testos.c
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2003-06-21 20:32:55 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2003-06-21 20:32:55 +0000
commit242b05c89bc24db8d81090912a9e8bb6fed09c81 (patch)
treef1a68751f999fbe891e321d423b54423254c277b /devel/libhoard/files/testos.c
parentUpdate to version 4.68. (diff)
Add libhoard - fast, scalable and memory-efficient
allocator for multiprocessors. Approved by: fjoe (mentor) (implicit)
Notes
Notes: svn path=/head/; revision=83409
Diffstat (limited to 'devel/libhoard/files/testos.c')
-rw-r--r--devel/libhoard/files/testos.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/libhoard/files/testos.c b/devel/libhoard/files/testos.c
new file mode 100644
index 000000000000..c4413db9c9af
--- /dev/null
+++ b/devel/libhoard/files/testos.c
@@ -0,0 +1,16 @@
+#include <pthread.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+int
+main(int argc, char *argv[])
+{
+ static int level;
+
+ level = pthread_getconcurrency();
+ (void)pthread_setconcurrency(level++);
+
+ printf("LIBC_R TEST PASSED: All ok\n");
+
+ exit(0);
+}