Line | |
---|
1 | /* Copyright (c) 1985 Ceriel J.H. Jacobs */
|
---|
2 |
|
---|
3 | /* $Header: /cvsup/minix/src/commands/yap/main.h,v 1.1.1.1 2005/04/21 14:55:40 beng Exp $ */
|
---|
4 |
|
---|
5 | # ifndef _MAIN_
|
---|
6 | # define PUBLIC extern
|
---|
7 | # else
|
---|
8 | # define PUBLIC
|
---|
9 | # endif
|
---|
10 |
|
---|
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 */
|
---|
15 |
|
---|
16 | int main();
|
---|
17 | /*
|
---|
18 | * int main(argc,argv)
|
---|
19 | * int argc; Argument count
|
---|
20 | * char *argv[]; The arguments
|
---|
21 | *
|
---|
22 | * Main program.
|
---|
23 | */
|
---|
24 |
|
---|
25 | int opentemp();
|
---|
26 | /*
|
---|
27 | * int opentemp(i)
|
---|
28 | * int i; Either 0 or 1, indicates which temporary to open
|
---|
29 | *
|
---|
30 | * Returns a file descriptor for the temporary file, or panics if
|
---|
31 | * it couldn't open one.
|
---|
32 | */
|
---|
33 |
|
---|
34 | int catchdel();
|
---|
35 | /*
|
---|
36 | * int catchdel();
|
---|
37 | *
|
---|
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.
|
---|
41 | */
|
---|
42 |
|
---|
43 | int quit();
|
---|
44 | /*
|
---|
45 | * int quit();
|
---|
46 | *
|
---|
47 | * Quit signal handler. Also used for normal exits.
|
---|
48 | * It resets the terminal and exits
|
---|
49 | */
|
---|
50 |
|
---|
51 | VOID panic();
|
---|
52 | /*
|
---|
53 | * void panic(str)
|
---|
54 | * char *str; Reason for panic
|
---|
55 | *
|
---|
56 | * Panic, but at least tell the user why.
|
---|
57 | */
|
---|
58 |
|
---|
59 | # ifdef SIGTSTP
|
---|
60 | VOID suspend();
|
---|
61 | /*
|
---|
62 | * void suspend()
|
---|
63 | *
|
---|
64 | * Suspends this process
|
---|
65 | */
|
---|
66 | # endif
|
---|
67 |
|
---|
68 | # undef PUBLIC
|
---|
Note:
See
TracBrowser
for help on using the repository browser.