extern.h revision 1.43
11.43Slukem/*	$NetBSD: extern.h,v 1.43 1999/10/05 01:16:12 lukem Exp $	*/
21.43Slukem
31.43Slukem/*-
41.43Slukem * Copyright (c) 1996-1999 The NetBSD Foundation, Inc.
51.43Slukem * All rights reserved.
61.43Slukem *
71.43Slukem * This code is derived from software contributed to The NetBSD Foundation
81.43Slukem * by Luke Mewburn.
91.43Slukem *
101.43Slukem * Redistribution and use in source and binary forms, with or without
111.43Slukem * modification, are permitted provided that the following conditions
121.43Slukem * are met:
131.43Slukem * 1. Redistributions of source code must retain the above copyright
141.43Slukem *    notice, this list of conditions and the following disclaimer.
151.43Slukem * 2. Redistributions in binary form must reproduce the above copyright
161.43Slukem *    notice, this list of conditions and the following disclaimer in the
171.43Slukem *    documentation and/or other materials provided with the distribution.
181.43Slukem * 3. All advertising materials mentioning features or use of this software
191.43Slukem *    must display the following acknowledgement:
201.43Slukem *	This product includes software developed by the NetBSD
211.43Slukem *	Foundation, Inc. and its contributors.
221.43Slukem * 4. Neither the name of The NetBSD Foundation nor the names of its
231.43Slukem *    contributors may be used to endorse or promote products derived
241.43Slukem *    from this software without specific prior written permission.
251.43Slukem *
261.43Slukem * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
271.43Slukem * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
281.43Slukem * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
291.43Slukem * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
301.43Slukem * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
311.43Slukem * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
321.43Slukem * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
331.43Slukem * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
341.43Slukem * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
351.43Slukem * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
361.43Slukem * POSSIBILITY OF SUCH DAMAGE.
371.43Slukem */
381.32Sitojun
391.40Slukem/*-
401.40Slukem * Copyright (c) 1994 The Regents of the University of California.
411.32Sitojun * All rights reserved.
421.40Slukem *
431.32Sitojun * Redistribution and use in source and binary forms, with or without
441.32Sitojun * modification, are permitted provided that the following conditions
451.32Sitojun * are met:
461.32Sitojun * 1. Redistributions of source code must retain the above copyright
471.32Sitojun *    notice, this list of conditions and the following disclaimer.
481.32Sitojun * 2. Redistributions in binary form must reproduce the above copyright
491.32Sitojun *    notice, this list of conditions and the following disclaimer in the
501.32Sitojun *    documentation and/or other materials provided with the distribution.
511.40Slukem * 3. All advertising materials mentioning features or use of this software
521.40Slukem *    must display the following acknowledgement:
531.40Slukem *	This product includes software developed by the University of
541.40Slukem *	California, Berkeley and its contributors.
551.40Slukem * 4. Neither the name of the University nor the names of its contributors
561.32Sitojun *    may be used to endorse or promote products derived from this software
571.32Sitojun *    without specific prior written permission.
581.40Slukem *
591.40Slukem * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
601.32Sitojun * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
611.32Sitojun * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
621.40Slukem * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
631.32Sitojun * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
641.32Sitojun * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
651.32Sitojun * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
661.32Sitojun * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
671.32Sitojun * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
681.32Sitojun * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
691.32Sitojun * SUCH DAMAGE.
701.40Slukem *
711.40Slukem *	@(#)extern.h	8.3 (Berkeley) 10/9/94
721.32Sitojun */
731.4Stls
741.40Slukem/*
751.40Slukem * Copyright (C) 1997 and 1998 WIDE Project.
761.1Scgd * All rights reserved.
771.40Slukem *
781.1Scgd * Redistribution and use in source and binary forms, with or without
791.1Scgd * modification, are permitted provided that the following conditions
801.1Scgd * are met:
811.1Scgd * 1. Redistributions of source code must retain the above copyright
821.1Scgd *    notice, this list of conditions and the following disclaimer.
831.1Scgd * 2. Redistributions in binary form must reproduce the above copyright
841.1Scgd *    notice, this list of conditions and the following disclaimer in the
851.1Scgd *    documentation and/or other materials provided with the distribution.
861.40Slukem * 3. Neither the name of the project nor the names of its contributors
871.1Scgd *    may be used to endorse or promote products derived from this software
881.1Scgd *    without specific prior written permission.
891.40Slukem *
901.40Slukem * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
911.1Scgd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
921.1Scgd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
931.40Slukem * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
941.1Scgd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
951.1Scgd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
961.1Scgd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
971.1Scgd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
981.1Scgd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
991.1Scgd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1001.1Scgd * SUCH DAMAGE.
1011.1Scgd */
1021.1Scgd
1031.21Sthorpejstruct sockaddr;
1041.26Sitohystruct tm;
1051.1Scgd
1061.42Slukemvoid	abort_remote __P((FILE *));
1071.42Slukemvoid	abortpt __P((int));
1081.42Slukemvoid	abortrecv __P((int));
1091.42Slukemvoid	abortsend __P((int));
1101.1Scgdvoid	account __P((int, char **));
1111.11Slukemvoid	alarmtimer __P((int));
1121.6Slukemint	another __P((int *, char ***, const char *));
1131.28Slukemint	auto_fetch __P((int, char **));
1141.1Scgdvoid	blkfree __P((char **));
1151.1Scgdvoid	cd __P((int, char **));
1161.1Scgdvoid	cdup __P((int, char **));
1171.1Scgdvoid	changetype __P((int, int));
1181.12Slukemvoid	cmdabort __P((int));
1191.42Slukemvoid	cmdtimeout __P((int));
1201.1Scgdvoid	cmdscanner __P((int));
1211.31Slukemvoid	crankrate __P((int));
1221.12Slukemint	command __P((const char *, ...));
1231.29Scgd#ifndef NO_EDITCOMPLETE
1241.10Slukemunsigned char complete __P((EditLine *, int));
1251.14Slukemvoid	controlediting __P((void));
1261.29Scgd#endif /* !NO_EDITCOMPLETE */
1271.6Slukemint	confirm __P((const char *, const char *));
1281.6SlukemFILE   *dataconn __P((const char *));
1291.1Scgdvoid	delete __P((int, char **));
1301.1Scgdvoid	disconnect __P((int, char **));
1311.1Scgdvoid	do_chmod __P((int, char **));
1321.1Scgdvoid	do_umask __P((int, char **));
1331.38Slukemchar   *docase __P((char *));
1341.1Scgdvoid	domacro __P((int, char **));
1351.1Scgdchar   *domap __P((char *));
1361.1Scgdvoid	doproxy __P((int, char **));
1371.1Scgdchar   *dotrans __P((char *));
1381.20Slukemint	foregroundproc __P((void));
1391.27Slukemvoid	ftpvis __P((char *, size_t, const char *, size_t));
1401.23Smycroftint	ftp_login __P((const char *, const char *, const char *));
1411.1Scgdvoid	get __P((int, char **));
1421.6Slukemstruct cmd *getcmd __P((const char *));
1431.6Slukemint	getit __P((int, char **, int, const char *));
1441.1Scgdint	getreply __P((int));
1451.38Slukemchar   *globulize __P((const char *));
1461.6Slukemchar   *gunique __P((const char *));
1471.1Scgdvoid	help __P((int, char **));
1481.32Sitojunchar   *hookup __P((char *, char *));
1491.37Slukemvoid	idlecmd __P((int, char **));
1501.42Slukemint	initconn __P((void));
1511.12Slukemvoid	intr __P((void));
1521.34Slukemint	isipv6addr __P((const char *));
1531.10Slukemvoid	list_vertical __P((StringList *));
1541.1Scgdvoid	lcd __P((int, char **));
1551.12Slukemvoid	lostpeer __P((void));
1561.38Slukemvoid	lpage __P((int, char **));
1571.6Slukemvoid	lpwd __P((int, char **));
1581.1Scgdvoid	ls __P((int, char **));
1591.1Scgdvoid	mabort __P((int));
1601.1Scgdvoid	macdef __P((int, char **));
1611.12Slukemvoid	makeargv __P((void));
1621.1Scgdvoid	makedir __P((int, char **));
1631.1Scgdvoid	mdelete __P((int, char **));
1641.1Scgdvoid	mget __P((int, char **));
1651.1Scgdvoid	mls __P((int, char **));
1661.1Scgdvoid	modtime __P((int, char **));
1671.1Scgdvoid	mput __P((int, char **));
1681.1Scgdchar   *onoff __P((int));
1691.1Scgdvoid	newer __P((int, char **));
1701.12Slukemvoid	page __P((int, char **));
1711.31Slukemint	parserate __P((int, char **, int));
1721.42Slukemvoid	progressmeter __P((int));
1731.12Slukemchar   *prompt __P((void));
1741.12Slukemvoid	proxabort __P((int));
1751.42Slukemvoid	proxtrans __P((const char *, const char *, const char *));
1761.42Slukemvoid	psabort __P((int));
1771.5Slukemvoid	psummary __P((int));
1781.42Slukemvoid	pswitch __P((int));
1791.42Slukemvoid	ptransfer __P((int));
1801.1Scgdvoid	put __P((int, char **));
1811.1Scgdvoid	pwd __P((int, char **));
1821.1Scgdvoid	quit __P((int, char **));
1831.1Scgdvoid	quote __P((int, char **));
1841.6Slukemvoid	quote1 __P((const char *, int, char **));
1851.42Slukemvoid	recvrequest __P((const char *, const char *, const char *,
1861.17Slukem	    const char *, int, int));
1871.1Scgdvoid	reget __P((int, char **));
1881.12Slukemchar   *remglob __P((char **, int, char **));
1891.8Slukemoff_t	remotesize __P((const char *, int));
1901.8Slukemtime_t	remotemodtime __P((const char *, int));
1911.1Scgdvoid	removedir __P((int, char **));
1921.1Scgdvoid	renamefile __P((int, char **));
1931.42Slukemvoid	reset __P((int, char **));
1941.1Scgdvoid	restart __P((int, char **));
1951.1Scgdvoid	rmthelp __P((int, char **));
1961.1Scgdvoid	rmtstatus __P((int, char **));
1971.23Smycroftint	ruserpass __P((const char *, const char **, const char **,
1981.23Smycroft	    const char **));
1991.42Slukemvoid	sendrequest __P((const char *, const char *, const char *, int));
2001.1Scgdvoid	setascii __P((int, char **));
2011.1Scgdvoid	setbell __P((int, char **));
2021.1Scgdvoid	setbinary __P((int, char **));
2031.1Scgdvoid	setcase __P((int, char **));
2041.1Scgdvoid	setcr __P((int, char **));
2051.1Scgdvoid	setdebug __P((int, char **));
2061.10Slukemvoid	setedit __P((int, char **));
2071.33Sitojunvoid	setepsv4 __P((int, char **));
2081.1Scgdvoid	setform __P((int, char **));
2091.1Scgdvoid	setftmode __P((int, char **));
2101.17Slukemvoid	setgate __P((int, char **));
2111.1Scgdvoid	setglob __P((int, char **));
2121.1Scgdvoid	sethash __P((int, char **));
2131.1Scgdvoid	setnmap __P((int, char **));
2141.1Scgdvoid	setntrans __P((int, char **));
2151.2Scgdvoid	setpassive __P((int, char **));
2161.1Scgdvoid	setpeer __P((int, char **));
2171.1Scgdvoid	setport __P((int, char **));
2181.6Slukemvoid	setpreserve __P((int, char **));
2191.7Slukemvoid	setprogress __P((int, char **));
2201.1Scgdvoid	setprompt __P((int, char **));
2211.31Slukemvoid	setrate __P((int, char **));
2221.1Scgdvoid	setrunique __P((int, char **));
2231.1Scgdvoid	setstruct __P((int, char **));
2241.1Scgdvoid	setsunique __P((int, char **));
2251.1Scgdvoid	settenex __P((int, char **));
2261.1Scgdvoid	settrace __P((int, char **));
2271.11Slukemvoid	setttywidth __P((int));
2281.1Scgdvoid	settype __P((int, char **));
2291.21Sthorpejvoid	setupsockbufsize __P((int));
2301.1Scgdvoid	setverbose __P((int, char **));
2311.35Slukemvoid	setxferbuf __P((int, char **));
2321.1Scgdvoid	shell __P((int, char **));
2331.1Scgdvoid	site __P((int, char **));
2341.1Scgdvoid	sizecmd __P((int, char **));
2351.12Slukemchar   *slurpstring __P((void));
2361.1Scgdvoid	status __P((int, char **));
2371.31Slukemint	strsuftoi __P((const char *));
2381.1Scgdvoid	syst __P((int, char **));
2391.6Slukemint	togglevar __P((int, char **, int *, const char *));
2401.12Slukemvoid	usage __P((void));
2411.1Scgdvoid	user __P((int, char **));
2421.21Sthorpejint	xconnect __P((int, const struct sockaddr *, int));
2431.21Sthorpejint	xlisten __P((int, int));
2441.24Slukemvoid   *xmalloc __P((size_t));
2451.24Slukemchar   *xstrdup __P((const char *));
2461.25Slukemsig_t	xsignal __P((int, void (func) __P((int))));
2471.42Slukemsig_t	xsignal_restart __P((int, void (func) __P((int)), int));
248