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