1 /* $NetBSD: extern.h,v 1.60 2000/10/11 14:46:03 is 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 __attribute__((__format__(__printf__, 1, 2))); 127 #ifndef NO_EDITCOMPLETE 128 unsigned char complete(EditLine *, int); 129 void controlediting(void); 130 #endif /* !NO_EDITCOMPLETE */ 131 void crankrate(int); 132 FILE *dataconn(const char *); 133 void delete(int, char **); 134 void disconnect(int, char **); 135 void do_chmod(int, char **); 136 void do_umask(int, char **); 137 char *docase(char *); 138 void domacro(int, char **); 139 char *domap(char *); 140 void doproxy(int, char **); 141 char *dotrans(char *); 142 void feat(int, char **); 143 void fget(int, char **); 144 int foregroundproc(void); 145 void formatbuf(char *, size_t, const char *); 146 void ftpvis(char *, size_t, const char *, size_t); 147 int ftp_login(const char *, const char *, const char *); 148 void get(int, char **); 149 struct cmd *getcmd(const char *); 150 int getit(int, char **, int, const char *); 151 struct option *getoption(const char *); 152 char *getoptionvalue(const char *); 153 void getremoteinfo(void); 154 int getreply(int); 155 char *globulize(const char *); 156 char *gunique(const char *); 157 void help(int, char **); 158 char *hookup(char *, char *); 159 void idlecmd(int, char **); 160 int initconn(void); 161 void intr(int); 162 int isipv6addr(const char *); 163 void list_vertical(StringList *); 164 void lcd(int, char **); 165 void lostpeer(int); 166 void lpage(int, char **); 167 void lpwd(int, char **); 168 void ls(int, char **); 169 void mabort(void); 170 void macdef(int, char **); 171 void makeargv(void); 172 void makedir(int, char **); 173 void mdelete(int, char **); 174 void mget(int, char **); 175 void mintr(int); 176 void mls(int, char **); 177 void mlst(int, char **); 178 void modtime(int, char **); 179 void mput(int, char **); 180 char *onoff(int); 181 void opts(int, char **); 182 void newer(int, char **); 183 void page(int, char **); 184 int parseport(const char *, int); 185 int parserate(int, char **, int); 186 void progressmeter(int); 187 char *prompt(void); 188 void proxabort(int); 189 void proxtrans(const char *, const char *, const char *); 190 void psabort(int); 191 void psummary(int); 192 void pswitch(int); 193 void ptransfer(int); 194 void put(int, char **); 195 void pwd(int, char **); 196 void quit(int, char **); 197 void quote(int, char **); 198 void quote1(const char *, int, char **); 199 void recvrequest(const char *, const char *, const char *, 200 const char *, int, int); 201 void reget(int, char **); 202 char *remglob(char **, int, char **); 203 time_t remotemodtime(const char *, int); 204 off_t remotesize(const char *, int); 205 void removedir(int, char **); 206 void renamefile(int, char **); 207 void reset(int, char **); 208 void restart(int, char **); 209 void rmthelp(int, char **); 210 void rmtstatus(int, char **); 211 char *rprompt(void); 212 int ruserpass(const char *, const char **, const char **, 213 const char **); 214 void sendrequest(const char *, const char *, const char *, int); 215 void setascii(int, char **); 216 void setbell(int, char **); 217 void setbinary(int, char **); 218 void setcase(int, char **); 219 void setcr(int, char **); 220 void setdebug(int, char **); 221 void setedit(int, char **); 222 void setepsv4(int, char **); 223 void setform(int, char **); 224 void setftmode(int, char **); 225 void setgate(int, char **); 226 void setglob(int, char **); 227 void sethash(int, char **); 228 void setnmap(int, char **); 229 void setntrans(int, char **); 230 void setoption(int, char **); 231 void setpassive(int, char **); 232 void setpeer(int, char **); 233 void setport(int, char **); 234 void setpreserve(int, char **); 235 void setprogress(int, char **); 236 void setprompt(int, char **); 237 void setrate(int, char **); 238 void setrunique(int, char **); 239 void setstruct(int, char **); 240 void setsunique(int, char **); 241 void settenex(int, char **); 242 void settrace(int, char **); 243 void setttywidth(int); 244 void settype(int, char **); 245 void setupsockbufsize(int); 246 void setverbose(int, char **); 247 void setxferbuf(int, char **); 248 void shell(int, char **); 249 void site(int, char **); 250 void sizecmd(int, char **); 251 char *slurpstring(void); 252 void status(int, char **); 253 int strsuftoi(const char *); 254 void syst(int, char **); 255 int togglevar(int, char **, int *, const char *); 256 void unsetoption(int, char **); 257 void updateremotepwd(void); 258 void usage(void); 259 void user(int, char **); 260 int xconnect(int, const struct sockaddr *, int); 261 int xlisten(int, int); 262 void *xmalloc(size_t); 263 StringList *xsl_init(void); 264 void xsl_add(StringList *, char *); 265 char *xstrdup(const char *); 266 sigfunc xsignal(int, sigfunc); 267 sigfunc xsignal_restart(int, sigfunc, int); 268