return c;
}
-
-/* print out some error information if a system call failes */
-void print_system_error(int ret){
- if (WIFSIGNALED(ret) &&
- (WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT)){
- /* received some kind of signal during program execution */
- printf("enforce received signal during program execution.");
- } else {
- perror("enforce failed (ret==-1):");
- }
-}