Annotation of src/usr.bin/ftp/extern.h, Revision 1.14
1.14 ! millert 1: /* $OpenBSD: extern.h,v 1.13 1997/04/23 20:33:04 deraadt Exp $ */
1.12 millert 2: /* $NetBSD: extern.h,v 1.15 1997/04/14 09:09:17 lukem Exp $ */
1.1 deraadt 3:
4: /*-
5: * Copyright (c) 1994 The Regents of the University of California.
6: * All rights reserved.
7: *
8: * Redistribution and use in source and binary forms, with or without
9: * modification, are permitted provided that the following conditions
10: * are met:
11: * 1. Redistributions of source code must retain the above copyright
12: * notice, this list of conditions and the following disclaimer.
13: * 2. Redistributions in binary form must reproduce the above copyright
14: * notice, this list of conditions and the following disclaimer in the
15: * documentation and/or other materials provided with the distribution.
16: * 3. All advertising materials mentioning features or use of this software
17: * must display the following acknowledgement:
18: * This product includes software developed by the University of
19: * California, Berkeley and its contributors.
20: * 4. Neither the name of the University nor the names of its contributors
21: * may be used to endorse or promote products derived from this software
22: * without specific prior written permission.
23: *
24: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34: * SUCH DAMAGE.
35: *
36: * @(#)extern.h 8.3 (Berkeley) 10/9/94
37: */
38:
39: struct fd_set;
40:
41: void abort_remote __P((FILE *));
1.8 millert 42: void abortpt __P((int));
43: void abortrecv __P((int));
44: void abortsend __P((int));
45: void aborthttp __P((int));
1.1 deraadt 46: void account __P((int, char **));
1.6 millert 47: void alarmtimer __P((int));
48: int another __P((int *, char ***, const char *));
1.13 deraadt 49: int auto_fetch __P((int, char **, int));
1.1 deraadt 50: void blkfree __P((char **));
1.5 deraadt 51: void cd __P((int, char **));
1.1 deraadt 52: void cdup __P((int, char **));
53: void changetype __P((int, int));
1.8 millert 54: void cmdabort __P((int));
1.1 deraadt 55: void cmdscanner __P((int));
1.9 millert 56: int command __P((const char *, ...));
1.10 millert 57: #ifndef SMALL
1.6 millert 58: unsigned char complete __P((EditLine *, int));
1.11 millert 59: void controlediting __P((void));
1.10 millert 60: #endif /* !SMALL */
1.6 millert 61: int confirm __P((const char *, const char *));
62: FILE *dataconn __P((const char *));
1.1 deraadt 63: void delete __P((int, char **));
64: void disconnect __P((int, char **));
65: void do_chmod __P((int, char **));
66: void do_umask __P((int, char **));
67: void domacro __P((int, char **));
68: char *domap __P((char *));
69: void doproxy __P((int, char **));
70: char *dotrans __P((char *));
71: int empty __P((struct fd_set *, int));
1.14 ! millert 72: int foregroundproc __P(());
1.1 deraadt 73: void get __P((int, char **));
1.6 millert 74: struct cmd *getcmd __P((const char *));
75: int getit __P((int, char **, int, const char *));
1.1 deraadt 76: int getreply __P((int));
77: int globulize __P((char **));
1.6 millert 78: char *gunique __P((const char *));
1.1 deraadt 79: void help __P((int, char **));
1.6 millert 80: char *hookup __P((const char *, int));
1.1 deraadt 81: void idle __P((int, char **));
82: int initconn __P((void));
1.8 millert 83: void intr __P((void));
1.6 millert 84: void list_vertical __P((StringList *));
1.1 deraadt 85: void lcd __P((int, char **));
1.12 millert 86: int login __P((const char *, char *, char *));
1.8 millert 87: void lostpeer __P((void));
1.6 millert 88: void lpwd __P((int, char **));
1.1 deraadt 89: void ls __P((int, char **));
90: void mabort __P((int));
91: void macdef __P((int, char **));
1.9 millert 92: void makeargv __P((void));
1.1 deraadt 93: void makedir __P((int, char **));
94: void mdelete __P((int, char **));
95: void mget __P((int, char **));
96: void mls __P((int, char **));
97: void modtime __P((int, char **));
98: void mput __P((int, char **));
99: char *onoff __P((int));
100: void newer __P((int, char **));
1.9 millert 101: void page __P((int, char **));
1.6 millert 102: void progressmeter __P((int));
1.8 millert 103: char *prompt __P((void));
104: void proxabort __P((int));
1.6 millert 105: void proxtrans __P((const char *, const char *, const char *));
1.8 millert 106: void psabort __P((int));
1.6 millert 107: void psummary __P((int));
1.1 deraadt 108: void pswitch __P((int));
1.6 millert 109: void ptransfer __P((int));
1.1 deraadt 110: void put __P((int, char **));
111: void pwd __P((int, char **));
112: void quit __P((int, char **));
113: void quote __P((int, char **));
1.6 millert 114: void quote1 __P((const char *, int, char **));
115: void recvrequest __P((const char *, const char *, const char *,
116: const char *, int));
1.1 deraadt 117: void reget __P((int, char **));
1.9 millert 118: char *remglob __P((char **, int, char **));
1.6 millert 119: off_t remotesize __P((const char *, int));
120: time_t remotemodtime __P((const char *, int));
1.1 deraadt 121: void removedir __P((int, char **));
122: void renamefile __P((int, char **));
123: void reset __P((int, char **));
124: void restart __P((int, char **));
125: void rmthelp __P((int, char **));
126: void rmtstatus __P((int, char **));
1.6 millert 127: int ruserpass __P((const char *, char **, char **, char **));
128: void sendrequest __P((const char *, const char *, const char *, int));
1.1 deraadt 129: void setascii __P((int, char **));
130: void setbell __P((int, char **));
131: void setbinary __P((int, char **));
132: void setcase __P((int, char **));
133: void setcr __P((int, char **));
134: void setdebug __P((int, char **));
1.6 millert 135: void setedit __P((int, char **));
1.1 deraadt 136: void setform __P((int, char **));
137: void setftmode __P((int, char **));
138: void setglob __P((int, char **));
139: void sethash __P((int, char **));
140: void setnmap __P((int, char **));
141: void setntrans __P((int, char **));
142: void setpassive __P((int, char **));
143: void setpeer __P((int, char **));
144: void setport __P((int, char **));
1.6 millert 145: void setpreserve __P((int, char **));
146: void setprogress __P((int, char **));
1.1 deraadt 147: void setprompt __P((int, char **));
148: void setrunique __P((int, char **));
149: void setstruct __P((int, char **));
150: void setsunique __P((int, char **));
151: void settenex __P((int, char **));
152: void settrace __P((int, char **));
1.6 millert 153: void setttywidth __P((int));
1.1 deraadt 154: void settype __P((int, char **));
155: void setverbose __P((int, char **));
156: void shell __P((int, char **));
157: void site __P((int, char **));
158: void sizecmd __P((int, char **));
1.9 millert 159: char *slurpstring __P((void));
1.1 deraadt 160: void status __P((int, char **));
161: void syst __P((int, char **));
1.6 millert 162: int togglevar __P((int, char **, int *, const char *));
1.8 millert 163: void usage __P((void));
1.1 deraadt 164: void user __P((int, char **));
1.6 millert 165:
1.1 deraadt 166:
167: extern jmp_buf abortprox;
168: extern int abrtflag;
169: extern struct cmd cmdtab[];
1.6 millert 170: extern FILE *cout;
1.1 deraadt 171: extern int data;
172: extern char *home;
173: extern jmp_buf jabort;
174: extern int proxy;
175: extern char reply_string[];
176: extern off_t restart_point;
177: extern int NCMDS;
1.6 millert 178:
179: extern char *__progname; /* from crt0.o */
180: