Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf167dc8

Browse files
committed
Test for POSIX.1c 2-arg sigwait() and fail on single-arg version.
1 parent9af9320 commitf167dc8

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+
intsigwait(constsigset_t*set,int*sig);
53+
54+
5055
#if !defined(ENABLE_THREAD_SAFETY)&& !defined(IN_CONFIGURE)
5156
int
5257
main(intargc,char*argv[])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp