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 Simply, if sigemptyset returns a 0 here, test passes. 9 10 */ 11 12 #include <stdio.h> 13 #include <signal.h> 14 #include "posixtest.h" 15 main(void)16int main(void) 17 { 18 sigset_t signalset; 19 20 if ((int)sigemptyset(&signalset) != 0) { 21 perror("sigemptyset failed -- returned -- test aborted"); 22 return PTS_FAIL; 23 } 24 printf("sigemptyset passed\n"); 25 return PTS_PASS; 26 } 27