Home | History | Annotate | Download | only in sigfillset
      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, as long as sigfillset returns a 0, the test passes.
      9 */
     10 
     11 #include <stdio.h>
     12 #include <signal.h>
     13 #include "posixtest.h"
     14 
     15 int main(void)
     16 {
     17 	sigset_t signalset;
     18 /*
     19 	int returnval;
     20 
     21 	returnval = sigfillset(&signalset);
     22 
     23 	if (returnval != 0) {
     24 */
     25 	if (sigfillset(&signalset) != 0) {
     26 		perror("sigfillset failed -- test aborted");
     27 		return PTS_FAIL;
     28 	}
     29 #ifdef DEBUG
     30 	printf("sigfillset passed\n");
     31 #endif
     32 	return PTS_PASS;
     33 }
     34