• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2002-2003, 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  *  Test that if the signal is the null signal (0), no signal is sent.
9  *  1) Call sigqueue on the current process with the null signal.
10  *  2) If process is still functional after siqueue() is called, consider
11  *     the test a pass (most likely no signal was sent).
12  */
13 
14 #define _XOPEN_REALTIME 1
15 
16 #include <signal.h>
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include <unistd.h>
20 #include "posixtest.h"
21 
main(void)22 int main(void)
23 {
24 	union sigval value;
25 	value.sival_int = 0;	/* 0 is just an arbitrary value */
26 
27 	if (sigqueue(getpid(), 0, value) != 0) {
28 		printf("Could not call sigqueue with sig = 0\n");
29 		return PTS_FAIL;
30 	}
31 
32 	printf("Test PASSED\n");
33 	return PTS_PASS;
34 }
35