6
6
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
7
7
* Portions Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Header: /cvsroot/pgsql/src/tools/thread/Attic/thread_test.c,v 1.1 2003/09/27 15:32:48 momjian Exp $
9
+ * $Header: /cvsroot/pgsql/src/tools/thread/Attic/thread_test.c,v 1.2 2003/09/27 16:24:45 momjian Exp $
10
10
*
11
11
* This program tests to see if your standard libc functions use
12
12
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
@@ -58,7 +58,7 @@ int main(int argc, char *argv[])
58
58
59
59
printf ("\
60
60
Make sure you have added any needed 'THREAD_CPPFLAGS' and 'THREAD_LIBS'\n\
61
- defines to your template/${ port} file before compiling this program.\n\n"
61
+ defines to your template/$port file before compiling this program.\n\n"
62
62
);
63
63
pthread_create (& thread1 , NULL , (void * (* )(void * )) func_call_1 , NULL );
64
64
pthread_create (& thread2 , NULL , (void * (* )(void * )) func_call_2 , NULL );
@@ -82,20 +82,14 @@ defines to your template/${port} file before compiling this program.\n\n"
82
82
strerror_p1 != strerror_p2 )
83
83
{
84
84
printf ("All your non-*_r functions are thread-safe.\n" );
85
- printf ("Add this to your template/${port} file:\n\n" );
86
- printf ("\
87
- SUPPORTS_THREADS=yes\n\
88
- NEED_REENTRANT_FUNCS=no\n"
89
- );
85
+ printf ("Add this to your template/$port file:\n\n" );
86
+ printf ("NEED_REENTRANT_FUNCS=no\n" );
90
87
}
91
88
else
92
89
{
93
90
printf ("Not all non-*_r functions are thread-safe.\n" );
94
- printf ("Add this to your template/${port} file:\n\n" );
95
- printf ("\
96
- SUPPORTS_THREADS=yes\n\
97
- NEED_REENTRANT_FUNCS=yes\n"
98
- );
91
+ printf ("Add this to your template/$port file:\n\n" );
92
+ printf ("NEED_REENTRANT_FUNCS=yes\n" );
99
93
}
100
94
101
95
return 0 ;
0 commit comments