summaryrefslogtreecommitdiff
path: root/tests/self.c
diff options
context:
space:
mode:
authorbje <bje>1998-07-22 05:01:25 +0000
committerbje <bje>1998-07-22 05:01:25 +0000
commit914b87dd71aeaa3d4d8b9e9308b336994be9d600 (patch)
treebb048c4c0fba0ab0806267b5fe6430245df7bc59 /tests/self.c
parent8fed7fd6f601e289477c1974ae9cf552aa15d426 (diff)
New files.
Diffstat (limited to 'tests/self.c')
-rw-r--r--tests/self.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/self.c b/tests/self.c
new file mode 100644
index 0000000..0addfc8
--- /dev/null
+++ b/tests/self.c
@@ -0,0 +1,21 @@
+/*
+ * Test for pthread_self().
+ *
+ * Depends on API functions: None.
+ */
+
+#include <pthread.h>
+
+int
+main(int argc, char * argv[])
+{
+ pthread_t id;
+
+ /* We can't do anything with this, though, because it is not
+ safe to assume anything about the internal structure of
+ a `pthread_t'. */
+
+ id = pthread_self();
+
+ return 0;
+}