int main (void) { volatile int i = 0; if (i) tabort (); if (i) texit (); if (i) t_exit (); if (i) t_Exit (); exit (0); }
int main (void) { volatile int i = 0; /* The real test here is that the program links. */ if (i) tabort (); if (i) texit (); if (i) t_exit (); #ifndef __pdp10__ if (i) t_Exit (); #endif exit (0); }
int main (int argc, char *argv[]) { #ifdef SIGINT void (*old_int) (int); #endif /* SIGINT */ #ifdef SIGQUIT void (*old_quit) (int); #endif /* SIGQUIT */ /* catch quit and hangup signals */ /* * In the terminal driver munging routines, we set Control-P * to generate an interrupt, and turn off generating Quits from * the terminal. Now we just ignore them if sent from elsewhere. */ #ifdef SIGHUP signal (SIGHUP, hup_hdlr); #endif /* SIGHUP */ #ifdef SIGINT old_int = signal (SIGINT, int_hdlr); #endif /* SIGINT */ #ifdef SIGQUIT old_quit = signal (SIGQUIT, SIG_IGN); #endif /* SIGQUIT */ if ( #ifdef SIGINT old_int == SIG_IGN || #endif /* SIGINT */ #ifdef SIGQUIT old_quit == SIG_IGN || #endif /* SIGQUIT */ 0 ) { /* fired off into the background, refuse to run */ if (isatty (fileno (stdin))) { fprintf (stderr, "%s: I refuse to run in the background.\n", basename (argv[0])); exit (2); } /* else assume input is a script */ } /* set terminal to no echo, no output processing, break enabled */ ttyedit (); initialize (argc, argv); edit (argc, argv); /* reset the terminal mode */ ttynormal (); t_exit (); return 0; }