Annotation of src/usr.bin/ftp/extern.h, Revision 1.38
1.38 ! martynas 1: /* $OpenBSD: extern.h,v 1.37 2009/04/26 21:26:03 martynas 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.
1.25 millert 45: * 3. Neither the name of the University nor the names of its contributors
1.1 deraadt 46: * may be used to endorse or promote products derived from this software
47: * without specific prior written permission.
48: *
49: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
50: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
51: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
52: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
53: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
54: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
55: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
56: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
57: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
58: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
59: * SUCH DAMAGE.
60: *
61: * @(#)extern.h 8.3 (Berkeley) 10/9/94
62: */
63:
1.18 art 64: #include <sys/types.h>
1.1 deraadt 65:
1.21 millert 66: void abort_remote(FILE *);
67: void abortpt(int);
68: void abortrecv(int);
1.38 ! martynas 69: #ifndef SMALL
1.21 millert 70: void abortsend(int);
1.38 ! martynas 71: #endif /* !SMALL */
1.21 millert 72: void account(int, char **);
73: void alarmtimer(int);
74: int another(int *, char ***, const char *);
75: int auto_fetch(int, char **, char *);
76: void blkfree(char **);
77: void cd(int, char **);
78: void cdup(int, char **);
79: void changetype(int, int);
80: void cmdabort(int);
81: void cmdscanner(int);
82: int command(const char *, ...);
1.10 millert 83: #ifndef SMALL
1.21 millert 84: unsigned char complete(EditLine *, int);
85: void controlediting(void);
1.10 millert 86: #endif /* !SMALL */
1.35 martynas 87: int confirm(const char *, const char *);
1.21 millert 88: FILE *dataconn(const char *);
1.27 deraadt 89: void deletecmd(int, char **);
1.21 millert 90: void disconnect(int, char **);
91: void do_chmod(int, char **);
92: void do_umask(int, char **);
1.38 ! martynas 93: #ifndef SMALL
1.21 millert 94: void domacro(int, char **);
1.38 ! martynas 95: #endif /* !SMALL */
1.21 millert 96: char *domap(char *);
97: void doproxy(int, char **);
98: char *dotrans(char *);
99: int foregroundproc(void);
1.28 otto 100: int fileindir(const char *, const char *);
1.21 millert 101: void get(int, char **);
102: struct cmd *getcmd(const char *);
103: int getit(int, char **, int, const char *);
104: int getreply(int);
105: int globulize(char **);
106: char *gunique(const char *);
107: void help(int, char **);
108: char *hookup(char *, char *);
109: void idle(int, char **);
110: int initconn(void);
111: void intr(void);
112: int isurl(const char *);
113: void list_vertical(StringList *);
114: void lcd(int, char **);
1.24 fgsch 115: int ftp_login(const char *, char *, char *);
1.21 millert 116: void lostpeer(void);
117: void lpwd(int, char **);
118: void ls(int, char **);
119: void mabort(int);
1.38 ! martynas 120: #ifndef SMALL
1.21 millert 121: void macdef(int, char **);
1.38 ! martynas 122: #endif /* !SMALL */
1.21 millert 123: void makeargv(void);
124: void makedir(int, char **);
125: void mdelete(int, char **);
126: void mget(int, char **);
127: void mls(int, char **);
128: void modtime(int, char **);
1.38 ! martynas 129: #ifndef SMALL
1.21 millert 130: void mput(int, char **);
1.38 ! martynas 131: #endif /* !SMALL */
1.21 millert 132: char *onoff(int);
133: void newer(int, char **);
134: void page(int, char **);
1.37 martynas 135: void progressmeter(int, const char *);
1.21 millert 136: char *prompt(void);
137: void proxabort(int);
138: void proxtrans(const char *, const char *, const char *);
139: void psabort(int);
140: void psummary(int);
141: void pswitch(int);
142: void ptransfer(int);
1.38 ! martynas 143: #ifndef SMALL
1.21 millert 144: void put(int, char **);
1.33 martynas 145: void putit(int, char **, int);
1.38 ! martynas 146: #endif /* !SMALL */
1.21 millert 147: void pwd(int, char **);
148: void quit(int, char **);
149: void quote(int, char **);
150: void quote1(const char *, int, char **);
1.22 millert 151: void recvrequest(const char *, const char *, const char *,
152: const char *, int, int);
1.21 millert 153: void reget(int, char **);
154: char *remglob(char **, int, char **);
1.35 martynas 155: #ifndef SMALL
156: char *remglob2(char **, int, char **, FILE **ftemp, char *type);
157: #endif /* !SMALL */
1.21 millert 158: off_t remotesize(const char *, int);
159: time_t remotemodtime(const char *, int);
160: void removedir(int, char **);
161: void renamefile(int, char **);
1.38 ! martynas 162: #ifndef SMALL
1.33 martynas 163: void reput(int, char **);
1.38 ! martynas 164: #endif /* !SMALL */
1.21 millert 165: void reset(int, char **);
166: void restart(int, char **);
167: void rmthelp(int, char **);
168: void rmtstatus(int, char **);
1.38 ! martynas 169: #ifndef SMALL
1.21 millert 170: void sendrequest(const char *, const char *, const char *, int);
1.38 ! martynas 171: #endif /* !SMALL */
1.21 millert 172: void setascii(int, char **);
173: void setbell(int, char **);
174: void setbinary(int, char **);
175: void setcase(int, char **);
176: void setcr(int, char **);
1.35 martynas 177: #ifndef SMALL
1.21 millert 178: void setdebug(int, char **);
1.35 martynas 179: #endif /* !SMALL */
1.21 millert 180: void setedit(int, char **);
181: void setepsv4(int, char **);
182: void setform(int, char **);
183: void setftmode(int, char **);
184: void setgate(int, char **);
185: void setglob(int, char **);
186: void sethash(int, char **);
187: void setnmap(int, char **);
188: void setntrans(int, char **);
189: void setpassive(int, char **);
190: void setpeer(int, char **);
191: void setport(int, char **);
192: void setpreserve(int, char **);
193: void setprogress(int, char **);
194: void setprompt(int, char **);
195: void setrunique(int, char **);
196: void setstruct(int, char **);
197: void setsunique(int, char **);
198: void settenex(int, char **);
199: void settrace(int, char **);
200: void setttywidth(int);
201: void settype(int, char **);
202: void setverbose(int, char **);
203: void shell(int, char **);
204: void site(int, char **);
205: void sizecmd(int, char **);
206: char *slurpstring(void);
207: void status(int, char **);
208: void syst(int, char **);
209: int togglevar(int, char **, int *, const char *);
210: void usage(void);
211: void user(int, char **);
1.29 pyr 212:
213: #ifndef SMALL
214: int ruserpass(const char *, char **, char **, char **);
1.30 pyr 215: void cookie_load(void);
216: void cookie_get(const char *, const char *, int, char **);
1.35 martynas 217: void parse_list(char **, char *);
1.34 martynas 218: #endif /* !SMALL */
1.6 millert 219:
1.1 deraadt 220:
221: extern jmp_buf abortprox;
222: extern int abrtflag;
223: extern struct cmd cmdtab[];
1.6 millert 224: extern FILE *cout;
1.1 deraadt 225: extern int data;
226: extern char *home;
227: extern jmp_buf jabort;
1.23 deraadt 228: extern int family;
1.1 deraadt 229: extern int proxy;
230: extern char reply_string[];
231: extern off_t restart_point;
232: extern int NCMDS;
1.31 espie 233: extern int keep_alive_timeout;
1.6 millert 234:
235: extern char *__progname; /* from crt0.o */
236: