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