Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f9a2d0b2
Commit
f9a2d0b2
authored
Apr 21, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More thread test program improvements.
parent
53b54553
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
src/tools/thread/thread_test.c
src/tools/thread/thread_test.c
+17
-11
No files found.
src/tools/thread/thread_test.c
View file @
f9a2d0b2
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.1
7 2004/04/21 20:51:54
momjian Exp $
* $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.1
8 2004/04/21 20:58:56
momjian Exp $
*
* This program tests to see if your standard libc functions use
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
...
...
@@ -139,37 +139,43 @@ defines to your template/$port file before compiling this program.\n\n"
#ifdef HAVE_STRERROR_R
printf
(
"Your system has sterror_r(), so it doesn't use strerror().
\n
"
);
#else
printf
(
"Your system uses strerror().
\n
"
);
if
(
!
strerror_threadsafe
)
printf
(
"Your system uses strerror() which is "
);
if
(
strerror_threadsafe
)
printf
(
"thread-safe
\n
"
);
else
{
platform_is_threadsafe
=
false
;
printf
(
"
That function is
not thread-safe
\n
"
);
printf
(
"not thread-safe
\n
"
);
}
#endif
#ifdef HAVE_GETPWUID_R
printf
(
"Your system has getpwuid_r(), so it doesn't use getpwuid().
\n
"
);
#else
printf
(
"Your system uses getpwuid().
\n
"
);
if
(
!
getpwuid_threadsafe
)
printf
(
"Your system uses getpwuid() which is "
);
if
(
getpwuid_threadsafe
)
printf
(
"thread-safe
\n
"
);
else
{
platform_is_threadsafe
=
false
;
printf
(
"
That function is
not thread-safe
\n
"
);
printf
(
"not thread-safe
\n
"
);
}
#endif
#ifdef HAVE_GETADDRINFO
printf
(
"Your system has getaddrinfo(), so it doesn't use gethostbyname()
\n
"
"or gethostbyname_r().
\n
"
);
"
or gethostbyname_r().
\n
"
);
#else
#ifdef HAVE_GETHOSTBYNAME_R
printf
(
"Your system has gethostbyname_r(), so it doesn't use gethostbyname().
\n
"
);
#else
printf
(
"Your system uses gethostbyname().
\n
"
);
if
(
!
gethostbyname_threadsafe
)
printf
(
"Your system uses gethostbyname which is "
);
if
(
gethostbyname_threadsafe
)
printf
(
"thread-safe
\n
"
);
else
{
platform_is_threadsafe
=
false
;
printf
(
"
That function is
not thread-safe
\n
"
);
printf
(
"not thread-safe
\n
"
);
}
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment