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