1 /* $NetBSD: extern.h,v 1.57 2000/06/15 13:08:25 lukem Exp $ */ 2 3 /*- 4 * Copyright (c) 1996-2000 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Luke Mewburn. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions 12 * are met: 13 * 1. Redistributions of source code must retain the above copyright 14 * notice, this list of conditions and the following disclaimer. 15 * 2. Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in the 17 * documentation and/or other materials provided with the distribution. 18 * 3. All advertising materials mentioning features or use of this software 19 * must display the following acknowledgement: 20 * This product includes software developed by the NetBSD 21 * Foundation, Inc. and its contributors. 22 * 4. Neither the name of The NetBSD Foundation nor the names of its 23 * contributors may be used to endorse or promote products derived 24 * from this software without specific prior written permission. 25 * 26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36 * POSSIBILITY OF SUCH DAMAGE. 37 */ 38 39 /*- 40 * Copyright (c) 1994 The Regents of the University of California. 41 * All rights reserved. 42 * 43 * Redistribution and use in source and binary forms, with or without 44 * modification, are permitted provided that the following conditions 45 * are met: 46 * 1. Redistributions of source code must retain the above copyright 47 * notice, this list of conditions and the following disclaimer. 48 * 2. Redistributions in binary form must reproduce the above copyright 49 * notice, this list of conditions and the following disclaimer in the 50 * documentation and/or other materials provided with the distribution. 51 * 3. All advertising materials mentioning features or use of this software 52 * must display the following acknowledgement: 53 * This product includes software developed by the University of 54 * California, Berkeley and its contributors. 55 * 4. Neither the name of the University nor the names of its contributors 56 * may be used to endorse or promote products derived from this software 57 * without specific prior written permission. 58 * 59 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 60 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 61 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 62 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 63 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 64 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 65 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 66 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 67 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 68 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 69 * SUCH DAMAGE. 70 * 71 * @(#)extern.h 8.3 (Berkeley) 10/9/94 72 */ 73 74 /* 75 * Copyright (C) 1997 and 1998 WIDE Project. 76 * All rights reserved. 77 * 78 * Redistribution and use in source and binary forms, with or without 79 * modification, are permitted provided that the following conditions 80 * are met: 81 * 1. Redistributions of source code must retain the above copyright 82 * notice, this list of conditions and the following disclaimer. 83 * 2. Redistributions in binary form must reproduce the above copyright 84 * notice, this list of conditions and the following disclaimer in the 85 * documentation and/or other materials provided with the distribution. 86 * 3. Neither the name of the project nor the names of its contributors 87 * may be used to endorse or promote products derived from this software 88 * without specific prior written permission. 89 * 90 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 91 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 92 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 93 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 94 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 95 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 96 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 97 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 98 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 99 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 100 * SUCH DAMAGE. 101 */ 102 103 struct sockaddr; 104 struct tm; 105 struct addrinfo; 106 107 void abort_remote(FILE *); 108 void abort_squared(int); 109 void abortpt(int); 110 void abortxfer(int); 111 void account(int, char **); 112 void ai_unmapped(struct addrinfo *); 113 void alarmtimer(int); 114 int another(int *, char ***, const char *); 115 int auto_fetch(int, char **); 116 int auto_put(int, char **, const char *); 117 void blkfree(char **); 118 void cd(int, char **); 119 void cdup(int, char **); 120 void changetype(int, int); 121 void cleanuppeer(void); 122 void cmdabort(int); 123 void cmdtimeout(int); 124 void cmdscanner(void); 125 int command(const char *, ...); 126 #ifndef NO_EDITCOMPLETE 127 unsigned char complete(EditLine *, int); 128 void controlediting(void); 129 #endif /* !NO_EDITCOMPLETE */ 130 void crankrate(int); 131 FILE *dataconn(const char *); 132 void delete(int, char **); 133 void disconnect(int, char **); 134 void do_chmod(int, char **); 135 void do_umask(int, char **); 136 char *docase(char *); 137 void domacro(int, char **); 138 char *domap(char *); 139 void doproxy(int, char **); 140 char *dotrans(char *); 141 void fget(int, char **); 142 int foregroundproc(void); 143 void formatbuf(char *, size_t, const char *); 144 void ftpvis(char *, size_t, const char *, size_t); 145 int ftp_login(const char *, const char *, const char *); 146 void get(int, char **); 147 struct cmd *getcmd(const char *); 148 int getit(int, char **, int, const char *); 149 struct option *getoption(const char *); 150 char *getoptionvalue(const char *); 151 int getreply(int); 152 char *globulize(const char *); 153 char *gunique(const char *); 154 void help(int, char **); 155 char *hookup(char *, char *); 156 void idlecmd(int, char **); 157 int initconn(void); 158 void intr(int); 159 int isipv6addr(const char *); 160 void list_vertical(StringList *); 161 void lcd(int, char **); 162 void lostpeer(int); 163 void lpage(int, char **); 164 void lpwd(int, char **); 165 void ls(int, char **); 166 void mabort(void); 167 void macdef(int, char **); 168 void makeargv(void); 169 void makedir(int, char **); 170 void mdelete(int, char **); 171 void mget(int, char **); 172 void mintr(int); 173 void mls(int, char **); 174 void modtime(int, char **); 175 void mput(int, char **); 176 char *onoff(int); 177 void newer(int, char **); 178 void page(int, char **); 179 int parserate(int, char **, int); 180 void progressmeter(int); 181 char *prompt(void); 182 void proxabort(int); 183 void proxtrans(const char *, const char *, const char *); 184 void psabort(int); 185 void psummary(int); 186 void pswitch(int); 187 void ptransfer(int); 188 void put(int, char **); 189 void pwd(int, char **); 190 void quit(int, char **); 191 void quote(int, char **); 192 void quote1(const char *, int, char **); 193 void recvrequest(const char *, const char *, const char *, 194 const char *, int, int); 195 void reget(int, char **); 196 char *remglob(char **, int, char **); 197 time_t remotemodtime(const char *, int); 198 off_t remotesize(const char *, int); 199 void remotesyst(void); 200 void removedir(int, char **); 201 void renamefile(int, char **); 202 void reset(int, char **); 203 void restart(int, char **); 204 void rmthelp(int, char **); 205 void rmtstatus(int, char **); 206 char *rprompt(void); 207 int ruserpass(const char *, const char **, const char **, 208 const char **); 209 void sendrequest(const char *, const char *, const char *, int); 210 void setascii(int, char **); 211 void setbell(int, char **); 212 void setbinary(int, char **); 213 void setcase(int, char **); 214 void setcr(int, char **); 215 void setdebug(int, char **); 216 void setedit(int, char **); 217 void setepsv4(int, char **); 218 void setform(int, char **); 219 void setftmode(int, char **); 220 void setgate(int, char **); 221 void setglob(int, char **); 222 void sethash(int, char **); 223 void setnmap(int, char **); 224 void setntrans(int, char **); 225 void setoption(int, char **); 226 void setpassive(int, char **); 227 void setpeer(int, char **); 228 void setport(int, char **); 229 void setpreserve(int, char **); 230 void setprogress(int, char **); 231 void setprompt(int, char **); 232 void setrate(int, char **); 233 void setrunique(int, char **); 234 void setstruct(int, char **); 235 void setsunique(int, char **); 236 void settenex(int, char **); 237 void settrace(int, char **); 238 void setttywidth(int); 239 void settype(int, char **); 240 void setupsockbufsize(int); 241 void setverbose(int, char **); 242 void setxferbuf(int, char **); 243 void shell(int, char **); 244 void site(int, char **); 245 void sizecmd(int, char **); 246 char *slurpstring(void); 247 void status(int, char **); 248 int strsuftoi(const char *); 249 void syst(int, char **); 250 int togglevar(int, char **, int *, const char *); 251 void unsetoption(int, char **); 252 void updateremotepwd(void); 253 void usage(void); 254 void user(int, char **); 255 int xconnect(int, const struct sockaddr *, int); 256 int xlisten(int, int); 257 void *xmalloc(size_t); 258 StringList *xsl_init(void); 259 void xsl_add(StringList *, char *); 260 char *xstrdup(const char *); 261 sigfunc xsignal(int, sigfunc); 262 sigfunc xsignal_restart(int, sigfunc, int); 263