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