extern.h revision 1.36
1/* $NetBSD: extern.h,v 1.36 1999/09/26 02:00:12 lukem 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 isipv6addr __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 **)); 126void mls __P((int, char **)); 127void modtime __P((int, char **)); 128void mput __P((int, char **)); 129char *onoff __P((int)); 130void newer __P((int, char **)); 131void page __P((int, char **)); 132int parserate __P((int, char **, int)); 133void progressmeter __P((int)); 134char *prompt __P((void)); 135void proxabort __P((int)); 136void proxtrans __P((const char *, const char *, const char *)); 137void psabort __P((int)); 138void psummary __P((int)); 139void pswitch __P((int)); 140void ptransfer __P((int)); 141void put __P((int, char **)); 142void pwd __P((int, char **)); 143void quit __P((int, char **)); 144void quote __P((int, char **)); 145void quote1 __P((const char *, int, char **)); 146void recvrequest __P((const char *, const char *, const char *, 147 const char *, int, int)); 148void reget __P((int, char **)); 149char *remglob __P((char **, int, char **)); 150off_t remotesize __P((const char *, int)); 151time_t remotemodtime __P((const char *, int)); 152void removedir __P((int, char **)); 153void renamefile __P((int, char **)); 154void reset __P((int, char **)); 155void restart __P((int, char **)); 156void rmthelp __P((int, char **)); 157void rmtstatus __P((int, char **)); 158int ruserpass __P((const char *, const char **, const char **, 159 const char **)); 160void sendrequest __P((const char *, const char *, const char *, int)); 161void setascii __P((int, char **)); 162void setbell __P((int, char **)); 163void setbinary __P((int, char **)); 164void setcase __P((int, char **)); 165void setcr __P((int, char **)); 166void setdebug __P((int, char **)); 167void setedit __P((int, char **)); 168void setepsv4 __P((int, char **)); 169void setform __P((int, char **)); 170void setftmode __P((int, char **)); 171void setgate __P((int, char **)); 172void setglob __P((int, char **)); 173void sethash __P((int, char **)); 174void setnmap __P((int, char **)); 175void setntrans __P((int, char **)); 176void setpassive __P((int, char **)); 177void setpeer __P((int, char **)); 178void setport __P((int, char **)); 179void setpreserve __P((int, char **)); 180void setprogress __P((int, char **)); 181void setprompt __P((int, char **)); 182void setrate __P((int, char **)); 183void setrunique __P((int, char **)); 184void setstruct __P((int, char **)); 185void setsunique __P((int, char **)); 186void settenex __P((int, char **)); 187void settrace __P((int, char **)); 188void setttywidth __P((int)); 189void settype __P((int, char **)); 190void setupsockbufsize __P((int)); 191void setverbose __P((int, char **)); 192void setxferbuf __P((int, char **)); 193void shell __P((int, char **)); 194void site __P((int, char **)); 195void sizecmd __P((int, char **)); 196char *slurpstring __P((void)); 197void status __P((int, char **)); 198int strsuftoi __P((const char *)); 199void syst __P((int, char **)); 200int togglevar __P((int, char **, int *, const char *)); 201void usage __P((void)); 202void user __P((int, char **)); 203int xconnect __P((int, const struct sockaddr *, int)); 204int xlisten __P((int, int)); 205void *xmalloc __P((size_t)); 206char *xstrdup __P((const char *)); 207sig_t xsignal __P((int, void (func) __P((int)))); 208 209extern struct cmd cmdtab[]; 210extern FILE *cout; 211extern int data; 212extern char *home; 213extern int proxy; 214extern char reply_string[]; 215extern int NCMDS; 216 217extern char *__progname; /* from crt0.o */ 218 219