extern.h revision 1.32
11.32Sitojun/*	$NetBSD: extern.h,v 1.32 1999/07/02 08:07:41 itojun Exp $	*/
21.32Sitojun
31.32Sitojun/*
41.32Sitojun * Copyright (C) 1997 and 1998 WIDE Project.
51.32Sitojun * All rights reserved.
61.32Sitojun *
71.32Sitojun * Redistribution and use in source and binary forms, with or without
81.32Sitojun * modification, are permitted provided that the following conditions
91.32Sitojun * are met:
101.32Sitojun * 1. Redistributions of source code must retain the above copyright
111.32Sitojun *    notice, this list of conditions and the following disclaimer.
121.32Sitojun * 2. Redistributions in binary form must reproduce the above copyright
131.32Sitojun *    notice, this list of conditions and the following disclaimer in the
141.32Sitojun *    documentation and/or other materials provided with the distribution.
151.32Sitojun * 3. Neither the name of the project nor the names of its contributors
161.32Sitojun *    may be used to endorse or promote products derived from this software
171.32Sitojun *    without specific prior written permission.
181.32Sitojun *
191.32Sitojun * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
201.32Sitojun * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
211.32Sitojun * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
221.32Sitojun * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
231.32Sitojun * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
241.32Sitojun * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
251.32Sitojun * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
261.32Sitojun * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
271.32Sitojun * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
281.32Sitojun * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
291.32Sitojun * SUCH DAMAGE.
301.32Sitojun */
311.4Stls
321.1Scgd/*-
331.1Scgd * Copyright (c) 1994 The Regents of the University of California.
341.1Scgd * All rights reserved.
351.1Scgd *
361.1Scgd * Redistribution and use in source and binary forms, with or without
371.1Scgd * modification, are permitted provided that the following conditions
381.1Scgd * are met:
391.1Scgd * 1. Redistributions of source code must retain the above copyright
401.1Scgd *    notice, this list of conditions and the following disclaimer.
411.1Scgd * 2. Redistributions in binary form must reproduce the above copyright
421.1Scgd *    notice, this list of conditions and the following disclaimer in the
431.1Scgd *    documentation and/or other materials provided with the distribution.
441.1Scgd * 3. All advertising materials mentioning features or use of this software
451.1Scgd *    must display the following acknowledgement:
461.1Scgd *	This product includes software developed by the University of
471.1Scgd *	California, Berkeley and its contributors.
481.1Scgd * 4. Neither the name of the University nor the names of its contributors
491.1Scgd *    may be used to endorse or promote products derived from this software
501.1Scgd *    without specific prior written permission.
511.1Scgd *
521.1Scgd * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
531.1Scgd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
541.1Scgd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
551.1Scgd * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
561.1Scgd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
571.1Scgd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
581.1Scgd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
591.1Scgd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
601.1Scgd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
611.1Scgd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
621.1Scgd * SUCH DAMAGE.
631.1Scgd *
641.4Stls *	@(#)extern.h	8.3 (Berkeley) 10/9/94
651.1Scgd */
661.1Scgd
671.21Sthorpejstruct sockaddr;
681.26Sitohystruct tm;
691.1Scgd
701.1Scgdvoid    abort_remote __P((FILE *));
711.12Slukemvoid    abortpt __P((int));
721.12Slukemvoid    abortrecv __P((int));
731.12Slukemvoid    abortsend __P((int));
741.1Scgdvoid	account __P((int, char **));
751.11Slukemvoid	alarmtimer __P((int));
761.6Slukemint	another __P((int *, char ***, const char *));
771.28Slukemint	auto_fetch __P((int, char **));
781.1Scgdvoid	blkfree __P((char **));
791.1Scgdvoid	cd __P((int, char **));
801.1Scgdvoid	cdup __P((int, char **));
811.1Scgdvoid	changetype __P((int, int));
821.12Slukemvoid	cmdabort __P((int));
831.1Scgdvoid	cmdscanner __P((int));
841.31Slukemvoid	crankrate __P((int));
851.12Slukemint	command __P((const char *, ...));
861.29Scgd#ifndef NO_EDITCOMPLETE
871.10Slukemunsigned char complete __P((EditLine *, int));
881.14Slukemvoid	controlediting __P((void));
891.29Scgd#endif /* !NO_EDITCOMPLETE */
901.6Slukemint	confirm __P((const char *, const char *));
911.6SlukemFILE   *dataconn __P((const char *));
921.1Scgdvoid	delete __P((int, char **));
931.1Scgdvoid	disconnect __P((int, char **));
941.1Scgdvoid	do_chmod __P((int, char **));
951.1Scgdvoid	do_umask __P((int, char **));
961.1Scgdvoid	domacro __P((int, char **));
971.1Scgdchar   *domap __P((char *));
981.1Scgdvoid	doproxy __P((int, char **));
991.1Scgdchar   *dotrans __P((char *));
1001.20Slukemint	foregroundproc __P((void));
1011.27Slukemvoid	ftpvis __P((char *, size_t, const char *, size_t));
1021.23Smycroftint	ftp_login __P((const char *, const char *, const char *));
1031.1Scgdvoid	get __P((int, char **));
1041.6Slukemstruct cmd *getcmd __P((const char *));
1051.6Slukemint	getit __P((int, char **, int, const char *));
1061.1Scgdint	getreply __P((int));
1071.1Scgdint	globulize __P((char **));
1081.6Slukemchar   *gunique __P((const char *));
1091.1Scgdvoid	help __P((int, char **));
1101.32Sitojunchar   *hookup __P((char *, char *));
1111.1Scgdvoid	idle __P((int, char **));
1121.1Scgdint     initconn __P((void));
1131.12Slukemvoid	intr __P((void));
1141.32Sitojunint	isurl __P((const char *));
1151.10Slukemvoid	list_vertical __P((StringList *));
1161.1Scgdvoid	lcd __P((int, char **));
1171.12Slukemvoid	lostpeer __P((void));
1181.6Slukemvoid	lpwd __P((int, char **));
1191.1Scgdvoid	ls __P((int, char **));
1201.1Scgdvoid	mabort __P((int));
1211.1Scgdvoid	macdef __P((int, char **));
1221.12Slukemvoid	makeargv __P((void));
1231.1Scgdvoid	makedir __P((int, char **));
1241.1Scgdvoid	mdelete __P((int, char **));
1251.1Scgdvoid	mget __P((int, char **));
1261.26Sitohytime_t	mkgmtime __P((struct tm *));
1271.1Scgdvoid	mls __P((int, char **));
1281.1Scgdvoid	modtime __P((int, char **));
1291.1Scgdvoid	mput __P((int, char **));
1301.1Scgdchar   *onoff __P((int));
1311.1Scgdvoid	newer __P((int, char **));
1321.12Slukemvoid	page __P((int, char **));
1331.31Slukemint	parserate __P((int, char **, int));
1341.7Slukemvoid    progressmeter __P((int));
1351.12Slukemchar   *prompt __P((void));
1361.12Slukemvoid	proxabort __P((int));
1371.6Slukemvoid    proxtrans __P((const char *, const char *, const char *));
1381.12Slukemvoid    psabort __P((int));
1391.5Slukemvoid	psummary __P((int));
1401.1Scgdvoid    pswitch __P((int));
1411.7Slukemvoid    ptransfer __P((int));
1421.1Scgdvoid	put __P((int, char **));
1431.1Scgdvoid	pwd __P((int, char **));
1441.1Scgdvoid	quit __P((int, char **));
1451.1Scgdvoid	quote __P((int, char **));
1461.6Slukemvoid	quote1 __P((const char *, int, char **));
1471.21Sthorpejvoid	rcvbuf __P((int, char **));
1481.6Slukemvoid    recvrequest __P((const char *, const char *, const char *,
1491.17Slukem	    const char *, int, int));
1501.1Scgdvoid	reget __P((int, char **));
1511.12Slukemchar   *remglob __P((char **, int, char **));
1521.8Slukemoff_t	remotesize __P((const char *, int));
1531.8Slukemtime_t	remotemodtime __P((const char *, int));
1541.1Scgdvoid	removedir __P((int, char **));
1551.1Scgdvoid	renamefile __P((int, char **));
1561.1Scgdvoid    reset __P((int, char **));
1571.21Sthorpejvoid	resetsockbufsize __P((void));
1581.1Scgdvoid	restart __P((int, char **));
1591.1Scgdvoid	rmthelp __P((int, char **));
1601.1Scgdvoid	rmtstatus __P((int, char **));
1611.23Smycroftint	ruserpass __P((const char *, const char **, const char **,
1621.23Smycroft	    const char **));
1631.6Slukemvoid    sendrequest __P((const char *, const char *, const char *, int));
1641.1Scgdvoid	setascii __P((int, char **));
1651.1Scgdvoid	setbell __P((int, char **));
1661.1Scgdvoid	setbinary __P((int, char **));
1671.1Scgdvoid	setcase __P((int, char **));
1681.1Scgdvoid	setcr __P((int, char **));
1691.1Scgdvoid	setdebug __P((int, char **));
1701.10Slukemvoid	setedit __P((int, char **));
1711.1Scgdvoid	setform __P((int, char **));
1721.1Scgdvoid	setftmode __P((int, char **));
1731.17Slukemvoid	setgate __P((int, char **));
1741.1Scgdvoid	setglob __P((int, char **));
1751.1Scgdvoid	sethash __P((int, char **));
1761.1Scgdvoid	setnmap __P((int, char **));
1771.1Scgdvoid	setntrans __P((int, char **));
1781.2Scgdvoid	setpassive __P((int, char **));
1791.1Scgdvoid	setpeer __P((int, char **));
1801.1Scgdvoid	setport __P((int, char **));
1811.6Slukemvoid	setpreserve __P((int, char **));
1821.7Slukemvoid	setprogress __P((int, char **));
1831.1Scgdvoid	setprompt __P((int, char **));
1841.31Slukemvoid	setrate __P((int, char **));
1851.1Scgdvoid	setrunique __P((int, char **));
1861.1Scgdvoid	setstruct __P((int, char **));
1871.1Scgdvoid	setsunique __P((int, char **));
1881.1Scgdvoid	settenex __P((int, char **));
1891.1Scgdvoid	settrace __P((int, char **));
1901.11Slukemvoid	setttywidth __P((int));
1911.1Scgdvoid	settype __P((int, char **));
1921.21Sthorpejvoid	setupsockbufsize __P((int));
1931.1Scgdvoid	setverbose __P((int, char **));
1941.1Scgdvoid	shell __P((int, char **));
1951.1Scgdvoid	site __P((int, char **));
1961.1Scgdvoid	sizecmd __P((int, char **));
1971.12Slukemchar   *slurpstring __P((void));
1981.21Sthorpejvoid	sndbuf __P((int, char **));
1991.1Scgdvoid	status __P((int, char **));
2001.31Slukemint	strsuftoi __P((const char *));
2011.1Scgdvoid	syst __P((int, char **));
2021.6Slukemint	togglevar __P((int, char **, int *, const char *));
2031.12Slukemvoid	usage __P((void));
2041.1Scgdvoid	user __P((int, char **));
2051.21Sthorpejint	xconnect __P((int, const struct sockaddr *, int));
2061.21Sthorpejint	xlisten __P((int, int));
2071.24Slukemvoid   *xmalloc __P((size_t));
2081.24Slukemchar   *xstrdup __P((const char *));
2091.25Slukemsig_t	xsignal __P((int, void (func) __P((int))));
2101.1Scgd
2111.1Scgdextern struct	cmd cmdtab[];
2121.10Slukemextern FILE    *cout;
2131.1Scgdextern int	data;
2141.1Scgdextern char    *home;
2151.1Scgdextern int	proxy;
2161.1Scgdextern char	reply_string[];
2171.1Scgdextern int	NCMDS;
2181.10Slukem
2191.10Slukemextern char *__progname;		/* from crt0.o */
2201.10Slukem
221