source: trunk/minix/commands/yap/main.h@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.3 KB
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
11PUBLIC int nopipe; /* Not reading from pipe? */
12PUBLIC char * progname; /* Name of this program */
13PUBLIC int interrupt; /* Interrupt given? */
14PUBLIC int no_tty; /* output not to a terminal, behave like cat */
15
16int main();
17/*
18 * int main(argc,argv)
19 * int argc; Argument count
20 * char *argv[]; The arguments
21 *
22 * Main program.
23 */
24
25int 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
34int 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
43int quit();
44/*
45 * int quit();
46 *
47 * Quit signal handler. Also used for normal exits.
48 * It resets the terminal and exits
49 */
50
51VOID 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
60VOID 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.