extern.h revision 1.33
1/* $NetBSD: extern.h,v 1.33 1999/07/11 20:37:39 itojun Exp $ */ 2 3/* 4 * Copyright (C) 1997 and 1998 WIDE Project. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 3. Neither the name of the project nor the names of its contributors 16 * may be used to endorse or promote products derived from this software 17 * without specific prior written permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32/*- 33 * Copyright (c) 1994 The Regents of the University of California. 34 * All rights reserved. 35 * 36 * Redistribution and use in source and binary forms, with or without 37 * modification, are permitted provided that the following conditions 38 * are met: 39 * 1. Redistributions of source code must retain the above copyright 40 * notice, this list of conditions and the following disclaimer. 41 * 2. Redistributions in binary form must reproduce the above copyright 42 * notice, this list of conditions and the following disclaimer in the 43 * documentation and/or other materials provided with the distribution. 44 * 3. All advertising materials mentioning features or use of this software 45 * must display the following acknowledgement: 46 * This product includes software developed by the University of 47 * California, Berkeley and its contributors. 48 * 4. Neither the name of the University nor the names of its contributors 49 * may be used to endorse or promote products derived from this software 50 * without specific prior written permission. 51 * 52 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 53 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 54 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 55 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 56 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 57 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 58 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 59 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 60 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 61 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 62 * SUCH DAMAGE. 63 * 64 * @(#)extern.h 8.3 (Berkeley) 10/9/94 65 */ 66 67struct sockaddr; 68struct tm; 69 70void abort_remote __P((FILE *)); 71void abortpt __P((int)); 72void abortrecv __P((int)); 73void abortsend __P((int)); 74void account __P((int, char **)); 75void alarmtimer __P((int)); 76int another __P((int *, char ***, const char *)); 77int auto_fetch __P((int, char **)); 78void blkfree __P((char **)); 79void cd __P((int, char **)); 80void cdup __P((int, char **)); 81void changetype __P((int, int)); 82void cmdabort __P((int)); 83void cmdscanner __P((int)); 84void crankrate __P((int)); 85int command __P((const char *, ...)); 86#ifndef NO_EDITCOMPLETE 87unsigned char complete __P((EditLine *, int)); 88void controlediting __P((void)); 89#endif /* !NO_EDITCOMPLETE */ 90int confirm __P((const char *, const char *)); 91FILE *dataconn __P((const char *)); 92void delete __P((int, char **)); 93void disconnect __P((int, char **)); 94void do_chmod __P((int, char **)); 95void do_umask __P((int, char **)); 96void domacro __P((int, char **)); 97char *domap __P((char *)); 98void doproxy __P((int, char **)); 99char *dotrans __P((char *)); 100int foregroundproc __P((void)); 101void ftpvis __P((char *, size_t, const char *, size_t)); 102int ftp_login __P((const char *, const char *, const char *)); 103void get __P((int, char **)); 104struct cmd *getcmd __P((const char *)); 105int getit __P((int, char **, int, const char *)); 106int getreply __P((int)); 107int globulize __P((char **)); 108char *gunique __P((const char *)); 109void help __P((int, char **)); 110char *hookup __P((char *, char *)); 111void idle __P((int, char **)); 112int initconn __P((void)); 113void intr __P((void)); 114int isurl __P((const char *)); 115void list_vertical __P((StringList *)); 116void lcd __P((int, char **)); 117void lostpeer __P((void)); 118void lpwd __P((int, char **)); 119void ls __P((int, char **)); 120void mabort __P((int)); 121void macdef __P((int, char **)); 122void makeargv __P((void)); 123void makedir __P((int, char **)); 124void mdelete __P((int, char **)); 125void mget __P((int, char **)); 126time_t mkgmtime __P((struct tm *)); 127void mls __P((int, char **)); 128void modtime __P((int, char **)); 129void mput __P((int, char **)); 130char *onoff __P((int)); 131void newer __P((int, char **)); 132void page __P((int, char **)); 133int parserate __P((int, char **, int)); 134void progressmeter __P((int)); 135char *prompt __P((void)); 136void proxabort __P((int)); 137void proxtrans __P((const char *, const char *, const char *)); 138void psabort __P((int)); 139void psummary __P((int)); 140void pswitch __P((int)); 141void ptransfer __P((int)); 142void put __P((int, char **)); 143void pwd __P((int, char **)); 144void quit __P((int, char **)); 145void quote __P((int, char **)); 146void quote1 __P((const char *, int, char **)); 147void rcvbuf __P((int, char **)); 148void recvrequest __P((const char *, const char *, const char *, 149 const char *, int, int)); 150void reget __P((int, char **)); 151char *remglob __P((char **, int, char **)); 152off_t remotesize __P((const char *, int)); 153time_t remotemodtime __P((const char *, int)); 154void removedir __P((int, char **)); 155void renamefile __P((int, char **)); 156void reset __P((int, char **)); 157void resetsockbufsize __P((void)); 158void restart __P((int, char **)); 159void rmthelp __P((int, char **)); 160void rmtstatus __P((int, char **)); 161int ruserpass __P((const char *, const char **, const char **, 162 const char **)); 163void sendrequest __P((const char *, const char *, const char *, int)); 164void setascii __P((int, char **)); 165void setbell __P((int, char **)); 166void setbinary __P((int, char **)); 167void setcase __P((int, char **)); 168void setcr __P((int, char **)); 169void setdebug __P((int, char **)); 170void setedit __P((int, char **)); 171void setepsv4 __P((int, char **)); 172void setform __P((int, char **)); 173void setftmode __P((int, char **)); 174void setgate __P((int, char **)); 175void setglob __P((int, char **)); 176void sethash __P((int, char **)); 177void setnmap __P((int, char **)); 178void setntrans __P((int, char **)); 179void setpassive __P((int, char **)); 180void setpeer __P((int, char **)); 181void setport __P((int, char **)); 182void setpreserve __P((int, char **)); 183void setprogress __P((int, char **)); 184void setprompt __P((int, char **)); 185void setrate __P((int, char **)); 186void setrunique __P((int, char **)); 187void setstruct __P((int, char **)); 188void setsunique __P((int, char **)); 189void settenex __P((int, char **)); 190void settrace __P((int, char **)); 191void setttywidth __P((int)); 192void settype __P((int, char **)); 193void setupsockbufsize __P((int)); 194void setverbose __P((int, char **)); 195void shell __P((int, char **)); 196void site __P((int, char **)); 197void sizecmd __P((int, char **)); 198char *slurpstring __P((void)); 199void sndbuf __P((int, char **)); 200void status __P((int, char **)); 201int strsuftoi __P((const char *)); 202void syst __P((int, char **)); 203int togglevar __P((int, char **, int *, const char *)); 204void usage __P((void)); 205void user __P((int, char **)); 206int xconnect __P((int, const struct sockaddr *, int)); 207int xlisten __P((int, int)); 208void *xmalloc __P((size_t)); 209char *xstrdup __P((const char *)); 210sig_t xsignal __P((int, void (func) __P((int)))); 211 212extern struct cmd cmdtab[]; 213extern FILE *cout; 214extern int data; 215extern char *home; 216extern int proxy; 217extern char reply_string[]; 218extern int NCMDS; 219 220extern char *__progname; /* from crt0.o */ 221 222