Doxygen Source Code Documentation
s_paus.c File Reference
#include "stdlib.h"
#include "stdio.h"
#include "f2c.h"
#include "signal.h"
Go to the source code of this file.
Defines | |
#define | PAUSESIG 15 |
#define | Void void |
#define | Int int |
Functions | |
int | getpid (void) |
int | isatty (int) |
int | pause (void) |
VOID | f_exit (Void) |
VOID | waitpause (Int n) |
VOID | s_1paus (FILE *fin) |
int | s_paus (char *s, ftnlen n) |
Define Documentation
|
Definition at line 11 of file s_paus.c. Referenced by waitpause(). |
|
Definition at line 4 of file s_paus.c. Referenced by s_paus(). |
|
|
Function Documentation
|
|
|
Referenced by EF_Abort(), s_paus(), set_tmp_names(), and wrong_widget(). |
|
Referenced by compress(), f__canseek(), f__isdev(), main(), s_paus(), testf(), uncompress(), and write_stream(). |
|
Referenced by s_paus(). |
|
Definition at line 35 of file s_paus.c. References f_exit(). Referenced by s_paus().
00037 { 00038 fprintf(stderr, 00039 "To resume execution, type go. Other input will terminate the job.\n"); 00040 fflush(stderr); 00041 if( getc(fin)!='g' || getc(fin)!='o' || getc(fin)!='\n' ) { 00042 fprintf(stderr, "STOP\n"); 00043 #ifdef NO_ONEXIT 00044 f_exit(); 00045 #endif 00046 exit(0); 00047 } 00048 } |
|
Definition at line 54 of file s_paus.c. References getpid(), isatty(), pause(), PAUSESIG, s_1paus(), and waitpause().
00056 { 00057 fprintf(stderr, "PAUSE "); 00058 if(n > 0) 00059 fprintf(stderr, " %.*s", (int)n, s); 00060 fprintf(stderr, " statement executed\n"); 00061 if( isatty(fileno(stdin)) ) 00062 s_1paus(stdin); 00063 else { 00064 #ifdef MSDOS 00065 FILE *fin; 00066 fin = fopen("con", "r"); 00067 if (!fin) { 00068 fprintf(stderr, "s_paus: can't open con!\n"); 00069 fflush(stderr); 00070 exit(1); 00071 } 00072 s_1paus(fin); 00073 fclose(fin); 00074 #else 00075 fprintf(stderr, 00076 "To resume execution, execute a kill -%d %d command\n", 00077 PAUSESIG, getpid() ); 00078 signal(PAUSESIG, waitpause); 00079 fflush(stderr); 00080 pause(); 00081 #endif 00082 } 00083 fprintf(stderr, "Execution resumes after PAUSE.\n"); 00084 fflush(stderr); 00085 return 0; /* NOT REACHED */ 00086 #ifdef __cplusplus 00087 } 00088 #endif 00089 } |
|
Definition at line 26 of file s_paus.c. References Int. Referenced by s_paus().
00027 { n = n; /* shut up compiler warning */ 00028 return; 00029 } |