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