Sync the file with FreeBSD to get the latest USB HID usage tables for
[dragonfly.git] / lib / libc_r / test / hello_d.c
blob15be40b848a7a6dd7be4d0ed3e413ca76645e911
1 /****************************************************************************
3 * Simple diff mode test.
5 * $FreeBSD: src/lib/libc_r/test/hello_d.c,v 1.1.2.1 2000/07/17 22:18:32 jasone Exp $
6 * $DragonFly: src/lib/libc_r/test/hello_d.c,v 1.2 2003/06/17 04:26:48 dillon Exp $
8 ****************************************************************************/
10 #include <stdio.h>
11 #include <string.h>
12 #include <pthread.h>
14 void *
15 entry(void * a_arg)
17 fprintf(stderr, "Hello world\n");
19 return NULL;
22 int
23 main()
25 pthread_t thread;
26 int error;
28 error = pthread_create(&thread, NULL, entry, NULL);
29 if (error)
30 fprintf(stderr, "Error in pthread_create(): %s\n",
31 strerror(error));
33 error = pthread_join(thread, NULL);
34 if (error)
35 fprintf(stderr, "Error in pthread_join(): %s\n",
36 strerror(error));
38 return 0;