extern.h revision 1.39
1/* $NetBSD: extern.h,v 1.39 1999/09/30 12:18:03 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 **)); 96char *docase __P((char *)); 97void domacro __P((int, char **)); 98char *domap __P((char *)); 99void doproxy __P((int, char **)); 100char *dotrans __P((char *)); 101int foregroundproc __P((void)); 102void ftpvis __P((char *, size_t, const char *, size_t)); 103int ftp_login __P((const char *, const char *, const char *)); 104void get __P((int, char **)); 105struct cmd *getcmd __P((const char *)); 106int getit __P((int, char **, int, const char *)); 107int getreply __P((int)); 108char *globulize __P((const char *)); 109char *gunique __P((const char *)); 110void help __P((int, char **)); 111char *hookup __P((char *, char *)); 112void idlecmd __P((int, char **)); 113int initconn __P((void)); 114void intr __P((void)); 115int isipv6addr __P((const char *)); 116void list_vertical __P((StringList *)); 117void lcd __P((int, char **)); 118void lostpeer __P((void)); 119void lpage __P((int, char **)); 120void lpwd __P((int, char **)); 121void ls __P((int, char **)); 122void mabort __P((int)); 123void macdef __P((int, char **)); 124void makeargv __P((void)); 125void makedir __P((int, char **)); 126void mdelete __P((int, char **)); 127void mget __P((int, char **)); 128void mls __P((int, char **)); 129void modtime __P((int, char **)); 130void mput __P((int, char **)); 131char *onoff __P((int)); 132void newer __P((int, char **)); 133void page __P((int, char **)); 134int parserate __P((int, char **, int)); 135void progressmeter __P((int)); 136char *prompt __P((void)); 137void proxabort __P((int)); 138void proxtrans __P((const char *, const char *, const char *)); 139void psabort __P((int)); 140void psummary __P((int)); 141void pswitch __P((int)); 142void ptransfer __P((int)); 143void put __P((int, char **)); 144void pwd __P((int, char **)); 145void quit __P((int, char **)); 146void quote __P((int, char **)); 147void quote1 __P((const char *, 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 restart __P((int, char **)); 158void rmthelp __P((int, char **)); 159void rmtstatus __P((int, char **)); 160int ruserpass __P((const char *, const char **, const char **, 161 const char **)); 162void sendrequest __P((const char *, const char *, const char *, int)); 163void setascii __P((int, char **)); 164void setbell __P((int, char **)); 165void setbinary __P((int, char **)); 166void setcase __P((int, char **)); 167void setcr __P((int, char **)); 168void setdebug __P((int, char **)); 169void setedit __P((int, char **)); 170void setepsv4 __P((int, char **)); 171void setform __P((int, char **)); 172void setftmode __P((int, char **)); 173void setgate __P((int, char **)); 174void setglob __P((int, char **)); 175void sethash __P((int, char **)); 176void setnmap __P((int, char **)); 177void setntrans __P((int, char **)); 178void setpassive __P((int, char **)); 179void setpeer __P((int, char **)); 180void setport __P((int, char **)); 181void setpreserve __P((int, char **)); 182void setprogress __P((int, char **)); 183void setprompt __P((int, char **)); 184void setrate __P((int, char **)); 185void setrunique __P((int, char **)); 186void setstruct __P((int, char **)); 187void setsunique __P((int, char **)); 188void settenex __P((int, char **)); 189void settrace __P((int, char **)); 190void setttywidth __P((int)); 191void settype __P((int, char **)); 192void setupsockbufsize __P((int)); 193void setverbose __P((int, char **)); 194void setxferbuf __P((int, char **)); 195void shell __P((int, char **)); 196void site __P((int, char **)); 197void sizecmd __P((int, char **)); 198char *slurpstring __P((void)); 199void status __P((int, char **)); 200int strsuftoi __P((const char *)); 201void syst __P((int, char **)); 202int togglevar __P((int, char **, int *, const char *)); 203void usage __P((void)); 204void user __P((int, char **)); 205int xconnect __P((int, const struct sockaddr *, int)); 206int xlisten __P((int, int)); 207void *xmalloc __P((size_t)); 208char *xstrdup __P((const char *)); 209sig_t xsignal __P((int, void (func) __P((int)))); 210 211extern struct cmd cmdtab[]; 212extern FILE *cout; 213extern int data; 214extern char home[]; 215extern int proxy; 216extern char reply_string[]; 217extern int NCMDS; 218 219extern char *__progname; /* from crt0.o */ 220 221