2-1.c revision 1b8a2eaac9978e1f9a829e5e38dc39c892c77c75
1/* 2 * Copyright (c) 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 Simply, if sighold returns a 0 here, test passes. 9 10*/ 11 12#define _XOPEN_SOURCE 600 13 14#include <stdio.h> 15#include <signal.h> 16#include "posixtest.h" 17 18int main() 19{ 20 21 if ((int)sighold(SIGABRT) != 0) { 22 perror("sighold failed -- returned -- test aborted"); 23 return PTS_UNRESOLVED; 24 } 25 printf("sighold passed\n"); 26 return PTS_PASS; 27} 28