1772
|
1 /* proto.h Function declarations used by UUCPbb package.
|
|
2 Copyright (C) 1990, 1993 Rick Adams and Bob Billson
|
|
3
|
|
4 This file is part of the OS-9 UUCP package, UUCPbb.
|
|
5
|
|
6 This program is free software; you can redistribute it and/or modify
|
|
7 it under the terms of the GNU General Public License as published by
|
|
8 the Free Software Foundation; either version 2 of the License, or
|
|
9 (at your option) any later version.
|
|
10
|
|
11 This program is distributed in the hope that it will be useful,
|
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 GNU General Public License for more details.
|
|
15
|
|
16 You should have received a copy of the GNU General Public License
|
|
17 along with this program; if not, write to the Free Software
|
|
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
19
|
|
20 The author of UUCPbb, Bob Billson, can be contacted at:
|
|
21 bob@kc2wz.bubble.org or uunet!kc2wz!bob or by snail mail:
|
|
22 21 Bates Way, Westfield, NJ 07090
|
|
23 */
|
|
24
|
|
25 /* Various declarations used by UUCPbb package. This should help to keep the
|
|
26 the various OS-9 compilers happy. */
|
|
27
|
|
28 extern int errno;
|
|
29
|
|
30 /***************************\
|
|
31 * CoCo specific defs/macros *
|
|
32 \***************************/
|
|
33
|
|
34 #ifndef _OSK
|
|
35 # ifndef _VOID_
|
|
36 # define _VOID_
|
|
37 typedef int void;
|
|
38 # endif
|
|
39 #define QQ direct /* CoCo type 'direct' [page] */
|
|
40 typedef int flag;
|
|
41 char *parse_cmd();
|
|
42 #endif
|
|
43
|
|
44
|
|
45 /**************************\
|
|
46 * OSK specific defs/macros *
|
|
47 \**************************/
|
|
48
|
|
49 #ifdef _OSK
|
|
50 #define QQ /* OSK doesn't have direct page type */
|
|
51 typedef char flag;
|
|
52 #endif
|
|
53
|
|
54
|
|
55 /******************************\
|
|
56 * OS-9000 specific defs/macros *
|
|
57 \******************************/
|
|
58
|
|
59 #ifdef _OS9K
|
|
60 #define QQ /* OS-9000 doesn't have direct page type */
|
|
61 typedef char flag;
|
|
62 #endif
|
|
63
|
|
64
|
|
65 /*============ miscellaneous declarations--applies to everyone ============*/
|
|
66
|
|
67 #ifdef _OSK
|
|
68 extern char **_environ; /* Ultra C style */
|
|
69 extern char **environ; /* 3.2 C style */
|
|
70
|
|
71 /* OSK prototypes */
|
|
72 char *strend();
|
|
73 extern int os9exec();
|
|
74 extern int os9fork();
|
|
75 int parse_cmd();
|
|
76
|
|
77 #else
|
|
78 /* CoCo prototypes */
|
|
79 char *parse_cmd();
|
|
80 #endif
|
|
81
|
|
82 /* external variables used by getopt() */
|
|
83 extern char *optarg;
|
|
84 extern int optind, opterr;
|
|
85
|
|
86 /* various functions */
|
|
87 char *date822(); /* returns string with date in RFC-822 format */
|
|
88 char *gtime(); /* returns string in form '(May 05-01:56:00)' */
|
|
89 char *skipspace(); /* added to parse.c */
|
|
90 char *getdirs(), *mfgets(), *getenv();
|
|
91 char *getstring(), *getval(), *getrealname(), *genseq();
|
|
92 char *strdetab(), *strlwr(), *strupr(), *strdup(), *strstr(), *strend();
|
|
93 char *InttouID();
|
|
94 int strucmp();
|
|
95 FILE *popen(), *fdopen(), *freopen();
|
|
96 long getseq();
|
|
97 void errorexit();
|