|
From: <sv...@va...> - 2008-07-29 16:57:00
|
Author: bart
Date: 2008-07-29 17:57:06 +0100 (Tue, 29 Jul 2008)
New Revision: 8475
Log:
Switched from ANSI C stdio to Unix I/O in order to avoid that the I/O statements trigger any locking.
Modified:
trunk/drd/tests/linuxthreads_det.c
Modified: trunk/drd/tests/linuxthreads_det.c
===================================================================
--- trunk/drd/tests/linuxthreads_det.c 2008-07-29 16:28:36 UTC (rev 8474)
+++ trunk/drd/tests/linuxthreads_det.c 2008-07-29 16:57:06 UTC (rev 8475)
@@ -5,7 +5,6 @@
#include <pthread.h>
#include <semaphore.h>
-#include <stdio.h>
#include <unistd.h>
@@ -17,11 +16,11 @@
{
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;
|