Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / lib / libc_r / test / hello_s.c
1 /****************************************************************************
2  *
3  * Simple sequence mode test.
4  *
5  * $FreeBSD: src/lib/libc_r/test/hello_s.c,v 1.1.2.1 2000/07/17 22:18:32 jasone Exp $
6  * $DragonFly: src/lib/libc_r/test/hello_s.c,v 1.2 2003/06/17 04:26:48 dillon Exp $
7  *
8  ****************************************************************************/
9
10 #include <stdio.h>
11 #include <string.h>
12 #include <pthread.h>
13
14 void *
15 entry(void * a_arg)
16 {
17         fprintf(stderr, "ok 1\n");
18         fprintf(stderr, "ok \n");
19         fprintf(stderr, "ok 3\n");
20
21         return NULL;
22 }
23
24 int
25 main()
26 {
27         pthread_t thread;
28         int error;
29
30         fprintf(stderr, "1..3\n");
31         
32         fprintf(stderr, "Some random text\n");
33         
34         error = pthread_create(&thread, NULL, entry, NULL);
35         fprintf(stderr, "More unimportant text\n");
36         if (error)
37                 fprintf(stderr,"Error in pthread_create(): %s\n",
38                         strerror(error));
39
40         error = pthread_join(thread, NULL);
41         if (error)
42                 fprintf(stderr, "Error in pthread_join(): %s\n",
43                         strerror(error));
44
45         fprintf(stderr, "Hello world\n");
46
47         return 0;
48 }