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