]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Switched from ANSI C stdio to Unix I/O in order to avoid that the I/O statements...
authorBart Van Assche <bvanassche@acm.org>
Tue, 29 Jul 2008 16:57:06 +0000 (16:57 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 29 Jul 2008 16:57:06 +0000 (16:57 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8475

drd/tests/linuxthreads_det.c

index d9cb0854e0c8e81b1a83ee2a43e7a157b285ffe8..c589cb1d78198f12c830c9eee55b93865758eedb 100644 (file)
@@ -5,7 +5,6 @@
 
 #include <pthread.h>
 #include <semaphore.h>
-#include <stdio.h>
 #include <unistd.h>
 
 
@@ -17,11 +16,11 @@ void* thread_func(void* arg)
 {
   if (s_main_thread_pid == getpid())
   {
-    printf("NPTL or non-Linux POSIX threads implementation detected.\n");
+    write(STDOUT_FILENO, "NPTL or non-Linux POSIX threads implementation detected.\n", 57);
   }
   else
   {
-    printf("Detected LinuxThreads as POSIX threads implemenentation.\n");
+    write(STDOUT_FILENO, "Detected LinuxThreads as POSIX threads implementation.\n", 55);
   }
   sem_post(&s_sem);
   return 0;