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