extern.h revision 1.27
11.27Slukem/* $NetBSD: extern.h,v 1.27 1999/02/07 13:14:06 lukem Exp $ */ 21.4Stls 31.1Scgd/*- 41.1Scgd * Copyright (c) 1994 The Regents of the University of California. 51.1Scgd * All rights reserved. 61.1Scgd * 71.1Scgd * Redistribution and use in source and binary forms, with or without 81.1Scgd * modification, are permitted provided that the following conditions 91.1Scgd * are met: 101.1Scgd * 1. Redistributions of source code must retain the above copyright 111.1Scgd * notice, this list of conditions and the following disclaimer. 121.1Scgd * 2. Redistributions in binary form must reproduce the above copyright 131.1Scgd * notice, this list of conditions and the following disclaimer in the 141.1Scgd * documentation and/or other materials provided with the distribution. 151.1Scgd * 3. All advertising materials mentioning features or use of this software 161.1Scgd * must display the following acknowledgement: 171.1Scgd * This product includes software developed by the University of 181.1Scgd * California, Berkeley and its contributors. 191.1Scgd * 4. Neither the name of the University nor the names of its contributors 201.1Scgd * may be used to endorse or promote products derived from this software 211.1Scgd * without specific prior written permission. 221.1Scgd * 231.1Scgd * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 241.1Scgd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 251.1Scgd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 261.1Scgd * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 271.1Scgd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 281.1Scgd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 291.1Scgd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 301.1Scgd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 311.1Scgd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 321.1Scgd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 331.1Scgd * SUCH DAMAGE. 341.1Scgd * 351.4Stls * @(#)extern.h 8.3 (Berkeley) 10/9/94 361.1Scgd */ 371.1Scgd 381.1Scgdstruct fd_set; 391.21Sthorpejstruct sockaddr; 401.26Sitohystruct tm; 411.1Scgd 421.1Scgdvoid abort_remote __P((FILE *)); 431.12Slukemvoid abortpt __P((int)); 441.12Slukemvoid abortrecv __P((int)); 451.12Slukemvoid abortsend __P((int)); 461.1Scgdvoid account __P((int, char **)); 471.11Slukemvoid alarmtimer __P((int)); 481.6Slukemint another __P((int *, char ***, const char *)); 491.20Slukemint auto_fetch __P((int, char **, char *)); 501.1Scgdvoid blkfree __P((char **)); 511.1Scgdvoid cd __P((int, char **)); 521.1Scgdvoid cdup __P((int, char **)); 531.1Scgdvoid changetype __P((int, int)); 541.12Slukemvoid cmdabort __P((int)); 551.1Scgdvoid cmdscanner __P((int)); 561.12Slukemint command __P((const char *, ...)); 571.13Schristos#ifndef SMALL 581.10Slukemunsigned char complete __P((EditLine *, int)); 591.14Slukemvoid controlediting __P((void)); 601.13Schristos#endif /* !SMALL */ 611.6Slukemint confirm __P((const char *, const char *)); 621.6SlukemFILE *dataconn __P((const char *)); 631.1Scgdvoid delete __P((int, char **)); 641.1Scgdvoid disconnect __P((int, char **)); 651.1Scgdvoid do_chmod __P((int, char **)); 661.1Scgdvoid do_umask __P((int, char **)); 671.1Scgdvoid domacro __P((int, char **)); 681.1Scgdchar *domap __P((char *)); 691.1Scgdvoid doproxy __P((int, char **)); 701.1Scgdchar *dotrans __P((char *)); 711.1Scgdint empty __P((struct fd_set *, int)); 721.20Slukemint foregroundproc __P((void)); 731.27Slukemvoid ftpvis __P((char *, size_t, const char *, size_t)); 741.23Smycroftint ftp_login __P((const char *, const char *, const char *)); 751.1Scgdvoid get __P((int, char **)); 761.6Slukemstruct cmd *getcmd __P((const char *)); 771.6Slukemint getit __P((int, char **, int, const char *)); 781.1Scgdint getreply __P((int)); 791.21Sthorpejint getsockbufsize __P((const char *)); 801.1Scgdint globulize __P((char **)); 811.6Slukemchar *gunique __P((const char *)); 821.1Scgdvoid help __P((int, char **)); 831.19Slukemchar *hookup __P((const char *, in_port_t)); 841.1Scgdvoid idle __P((int, char **)); 851.1Scgdint initconn __P((void)); 861.12Slukemvoid intr __P((void)); 871.10Slukemvoid list_vertical __P((StringList *)); 881.1Scgdvoid lcd __P((int, char **)); 891.12Slukemvoid lostpeer __P((void)); 901.6Slukemvoid lpwd __P((int, char **)); 911.1Scgdvoid ls __P((int, char **)); 921.1Scgdvoid mabort __P((int)); 931.1Scgdvoid macdef __P((int, char **)); 941.12Slukemvoid makeargv __P((void)); 951.1Scgdvoid makedir __P((int, char **)); 961.1Scgdvoid mdelete __P((int, char **)); 971.1Scgdvoid mget __P((int, char **)); 981.26Sitohytime_t mkgmtime __P((struct tm *)); 991.1Scgdvoid mls __P((int, char **)); 1001.1Scgdvoid modtime __P((int, char **)); 1011.1Scgdvoid mput __P((int, char **)); 1021.1Scgdchar *onoff __P((int)); 1031.1Scgdvoid newer __P((int, char **)); 1041.12Slukemvoid page __P((int, char **)); 1051.7Slukemvoid progressmeter __P((int)); 1061.12Slukemchar *prompt __P((void)); 1071.12Slukemvoid proxabort __P((int)); 1081.6Slukemvoid proxtrans __P((const char *, const char *, const char *)); 1091.12Slukemvoid psabort __P((int)); 1101.5Slukemvoid psummary __P((int)); 1111.1Scgdvoid pswitch __P((int)); 1121.7Slukemvoid ptransfer __P((int)); 1131.1Scgdvoid put __P((int, char **)); 1141.1Scgdvoid pwd __P((int, char **)); 1151.1Scgdvoid quit __P((int, char **)); 1161.1Scgdvoid quote __P((int, char **)); 1171.6Slukemvoid quote1 __P((const char *, int, char **)); 1181.21Sthorpejvoid rcvbuf __P((int, char **)); 1191.6Slukemvoid recvrequest __P((const char *, const char *, const char *, 1201.17Slukem const char *, int, int)); 1211.1Scgdvoid reget __P((int, char **)); 1221.12Slukemchar *remglob __P((char **, int, char **)); 1231.8Slukemoff_t remotesize __P((const char *, int)); 1241.8Slukemtime_t remotemodtime __P((const char *, int)); 1251.1Scgdvoid removedir __P((int, char **)); 1261.1Scgdvoid renamefile __P((int, char **)); 1271.1Scgdvoid reset __P((int, char **)); 1281.21Sthorpejvoid resetsockbufsize __P((void)); 1291.1Scgdvoid restart __P((int, char **)); 1301.1Scgdvoid rmthelp __P((int, char **)); 1311.1Scgdvoid rmtstatus __P((int, char **)); 1321.23Smycroftint ruserpass __P((const char *, const char **, const char **, 1331.23Smycroft const char **)); 1341.6Slukemvoid sendrequest __P((const char *, const char *, const char *, int)); 1351.1Scgdvoid setascii __P((int, char **)); 1361.1Scgdvoid setbell __P((int, char **)); 1371.1Scgdvoid setbinary __P((int, char **)); 1381.1Scgdvoid setcase __P((int, char **)); 1391.1Scgdvoid setcr __P((int, char **)); 1401.1Scgdvoid setdebug __P((int, char **)); 1411.10Slukemvoid setedit __P((int, char **)); 1421.1Scgdvoid setform __P((int, char **)); 1431.1Scgdvoid setftmode __P((int, char **)); 1441.17Slukemvoid setgate __P((int, char **)); 1451.1Scgdvoid setglob __P((int, char **)); 1461.1Scgdvoid sethash __P((int, char **)); 1471.1Scgdvoid setnmap __P((int, char **)); 1481.1Scgdvoid setntrans __P((int, char **)); 1491.2Scgdvoid setpassive __P((int, char **)); 1501.1Scgdvoid setpeer __P((int, char **)); 1511.1Scgdvoid setport __P((int, char **)); 1521.6Slukemvoid setpreserve __P((int, char **)); 1531.7Slukemvoid setprogress __P((int, char **)); 1541.1Scgdvoid setprompt __P((int, char **)); 1551.1Scgdvoid setrunique __P((int, char **)); 1561.1Scgdvoid setstruct __P((int, char **)); 1571.1Scgdvoid setsunique __P((int, char **)); 1581.1Scgdvoid settenex __P((int, char **)); 1591.1Scgdvoid settrace __P((int, char **)); 1601.11Slukemvoid setttywidth __P((int)); 1611.1Scgdvoid settype __P((int, char **)); 1621.21Sthorpejvoid setupsockbufsize __P((int)); 1631.1Scgdvoid setverbose __P((int, char **)); 1641.1Scgdvoid shell __P((int, char **)); 1651.1Scgdvoid site __P((int, char **)); 1661.1Scgdvoid sizecmd __P((int, char **)); 1671.12Slukemchar *slurpstring __P((void)); 1681.21Sthorpejvoid sndbuf __P((int, char **)); 1691.1Scgdvoid status __P((int, char **)); 1701.1Scgdvoid syst __P((int, char **)); 1711.6Slukemint togglevar __P((int, char **, int *, const char *)); 1721.12Slukemvoid usage __P((void)); 1731.1Scgdvoid user __P((int, char **)); 1741.21Sthorpejint xconnect __P((int, const struct sockaddr *, int)); 1751.21Sthorpejint xlisten __P((int, int)); 1761.24Slukemvoid *xmalloc __P((size_t)); 1771.24Slukemchar *xstrdup __P((const char *)); 1781.25Slukemsig_t xsignal __P((int, void (func) __P((int)))); 1791.1Scgd 1801.1Scgdextern struct cmd cmdtab[]; 1811.10Slukemextern FILE *cout; 1821.1Scgdextern int data; 1831.1Scgdextern char *home; 1841.1Scgdextern int proxy; 1851.1Scgdextern char reply_string[]; 1861.1Scgdextern int NCMDS; 1871.10Slukem 1881.10Slukemextern char *__progname; /* from crt0.o */ 1891.10Slukem 190