From: Bart Van Assche Date: Tue, 29 Jul 2008 16:57:06 +0000 (+0000) Subject: Switched from ANSI C stdio to Unix I/O in order to avoid that the I/O statements... X-Git-Tag: svn/VALGRIND_3_4_0~297 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a63fcb8d13b1c600b4a45c47843f83536ecc9aa0;p=thirdparty%2Fvalgrind.git Switched from ANSI C stdio to Unix I/O in order to avoid that the I/O statements trigger any locking. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8475 --- diff --git a/drd/tests/linuxthreads_det.c b/drd/tests/linuxthreads_det.c index d9cb0854e0..c589cb1d78 100644 --- a/drd/tests/linuxthreads_det.c +++ b/drd/tests/linuxthreads_det.c @@ -5,7 +5,6 @@ #include #include -#include #include @@ -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;