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