1 /* $FreeBSD: src/usr.bin/ftp/extern.h,v 1.10.2.3 2002/08/27 09:55:08 yar Exp $ */
2 /* $DragonFly: src/usr.bin/ftp/Attic/extern.h,v 1.4 2003/11/06 19:09:46 eirikn Exp $ */
3 /* $NetBSD: extern.h,v 1.17.2.1 1997/11/18 00:59:50 mellon Exp $ */
6 * Copyright (c) 1994 The Regents of the University of California.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
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.
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
37 * @(#)extern.h 8.3 (Berkeley) 10/9/94
40 void abort_remote(FILE *);
44 void account(int, char **);
45 void ai_unmapped(struct addrinfo *);
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);
55 int command(const char *, ...);
57 unsigned char complete(EditLine *, int);
58 void controlediting(void);
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 **);
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 *);
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 **);
82 int isipv6addr(const char *);
83 void list_vertical(StringList *);
84 void lcd(int, char **);
85 int login(const char *, char *, char *);
87 void lpwd(int, char **);
88 void ls(int, char **);
90 void macdef(int, char **);
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 **);
99 void newer(int, char **);
100 void page(int, char **);
101 void progressmeter(int);
104 void proxtrans(const char *, const char *, const char *);
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 **);
114 void recvrequest(const char *, const char *, const char *,
115 const char *, int, int);
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 *);
166 void user(int, char **);
168 extern struct cmd cmdtab[];
174 extern char reply_string[];
177 extern char *__progname; /* from crt0.o */