Skip to content

Commit f167dc8

Browse files
committed
Test for POSIX.1c 2-arg sigwait() and fail on single-arg version.
1 parent 9af9320 commit f167dc8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tools/thread/thread_test.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.34 2004/09/26 01:40:55 momjian Exp $
9+
* $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.35 2004/12/19 04:06:23 momjian Exp $
1010
*
1111
* This program tests to see if your standard libc functions use
1212
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
@@ -47,6 +47,11 @@ typedef char bool;
4747
#include <fcntl.h>
4848
#include <errno.h>
4949

50+
/* Test for POSIX.1c 2-arg sigwait() and fail on single-arg version */
51+
#include <signal.h>
52+
int sigwait(const sigset_t *set, int *sig);
53+
54+
5055
#if !defined(ENABLE_THREAD_SAFETY) && !defined(IN_CONFIGURE)
5156
int
5257
main(int argc, char *argv[])

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy