• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2002, Intel Corporation. All rights reserved.
3  * Created by:  salwan.searty REMOVE-THIS AT intel DOT com
4  * This file is licensed under the GPL license.  For the full content
5  * of this license, see the COPYING file at the top level of this
6  * source tree.
7 
8  *
9  *  Test that the results are undefined if sigismember() is called without
10  *  first calling sigemptyset() or sigfillset().
11  *  Any results are acceptable; however, the system should not crash, hang,
12  *  or do something equally as harmful.
13  */
14 
15 #include <stdio.h>
16 #include <signal.h>
17 #include <posixtest.h>
18 
main()19 int main()
20 {
21 	sigset_t signalset;
22 	int returnval;
23 	returnval = sigismember(&signalset, SIGALRM);
24 	(void)returnval;
25 
26 #ifdef DEBUG
27 	printf("sigismember returned returnval\n");
28 #endif
29 
30 	/*
31 	 * If we made it here, the test case passes.
32 	 */
33 	return PTS_PASS;
34 }
35