forget difference between big and small commands - obsolete with vm.
[minix.git] / commands / yap / main.h
blob4a381a2203be6ce92a6a8028e73532ccfc1797c0
1 /* Copyright (c) 1985 Ceriel J.H. Jacobs */
3 /* $Header$ */
5 # ifndef _MAIN_
6 # define PUBLIC extern
7 # else
8 # define PUBLIC
9 # endif
11 PUBLIC int nopipe; /* Not reading from pipe? */
12 PUBLIC char * progname; /* Name of this program */
13 PUBLIC int interrupt; /* Interrupt given? */
14 PUBLIC int no_tty; /* output not to a terminal, behave like cat */
16 int main();
18 * int main(argc,argv)
19 * int argc; Argument count
20 * char *argv[]; The arguments
22 * Main program.
25 int opentemp();
27 * int opentemp(i)
28 * int i; Either 0 or 1, indicates which temporary to open
30 * Returns a file descriptor for the temporary file, or panics if
31 * it couldn't open one.
34 int catchdel();
36 * int catchdel();
38 * interrupt handler. Does not return a value, but PCC has some
39 * difficulty with the type pointer to function returning void.
40 * This routine only sets a flag indicating that there was an interrupt.
43 int quit();
45 * int quit();
47 * Quit signal handler. Also used for normal exits.
48 * It resets the terminal and exits
51 VOID panic();
53 * void panic(str)
54 * char *str; Reason for panic
56 * Panic, but at least tell the user why.
59 # ifdef SIGTSTP
60 VOID suspend();
62 * void suspend()
64 * Suspends this process
66 # endif
68 # undef PUBLIC