From 9724a293f7f7df7e791661a0a5159fe124c80f7d Mon Sep 17 00:00:00 2001 From: obrien Date: Tue, 9 Oct 2007 14:16:39 +0000 Subject: Repo copy libpthreads to libkse. This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith) --- lib/libpthread/test/hello_s.c | 47 ------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 lib/libpthread/test/hello_s.c (limited to 'lib/libpthread/test/hello_s.c') diff --git a/lib/libpthread/test/hello_s.c b/lib/libpthread/test/hello_s.c deleted file mode 100644 index 942bf2d..0000000 --- a/lib/libpthread/test/hello_s.c +++ /dev/null @@ -1,47 +0,0 @@ -/**************************************************************************** - * - * Simple sequence mode test. - * - * $FreeBSD$ - * - ****************************************************************************/ - -#include -#include -#include - -void * -entry(void * a_arg) -{ - fprintf(stderr, "ok 1\n"); - fprintf(stderr, "ok \n"); - fprintf(stderr, "ok 3\n"); - - return NULL; -} - -int -main() -{ - pthread_t thread; - int error; - - fprintf(stderr, "1..3\n"); - - fprintf(stderr, "Some random text\n"); - - error = pthread_create(&thread, NULL, entry, NULL); - fprintf(stderr, "More unimportant text\n"); - if (error) - fprintf(stderr,"Error in pthread_create(): %s\n", - strerror(error)); - - error = pthread_join(thread, NULL); - if (error) - fprintf(stderr, "Error in pthread_join(): %s\n", - strerror(error)); - - fprintf(stderr, "Hello world\n"); - - return 0; -} -- cgit v1.1