extern.h revision 1.49
11.49Slukem/* $NetBSD: extern.h,v 1.49 1999/11/11 02:53:03 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.45Slukemvoid abort_squared __P((int)); 1081.42Slukemvoid abortpt __P((int)); 1091.44Slukemvoid abortxfer __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.48Slukemvoid cleanuppeer __P((void)); 1191.12Slukemvoid cmdabort __P((int)); 1201.42Slukemvoid cmdtimeout __P((int)); 1211.47Slukemvoid cmdscanner __P((void)); 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.48Slukemvoid crankrate __P((int)); 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.48Slukemstruct option *getoption __P((const char *)); 1451.48Slukemchar *getoptionvalue __P((const char *)); 1461.1Scgdint getreply __P((int)); 1471.38Slukemchar *globulize __P((const char *)); 1481.6Slukemchar *gunique __P((const char *)); 1491.1Scgdvoid help __P((int, char **)); 1501.32Sitojunchar *hookup __P((char *, char *)); 1511.37Slukemvoid idlecmd __P((int, char **)); 1521.42Slukemint initconn __P((void)); 1531.44Slukemvoid intr __P((int)); 1541.34Slukemint isipv6addr __P((const char *)); 1551.10Slukemvoid list_vertical __P((StringList *)); 1561.1Scgdvoid lcd __P((int, char **)); 1571.48Slukemvoid lostpeer __P((int)); 1581.38Slukemvoid lpage __P((int, char **)); 1591.6Slukemvoid lpwd __P((int, char **)); 1601.1Scgdvoid ls __P((int, char **)); 1611.44Slukemvoid mabort __P((void)); 1621.1Scgdvoid macdef __P((int, char **)); 1631.12Slukemvoid makeargv __P((void)); 1641.1Scgdvoid makedir __P((int, char **)); 1651.1Scgdvoid mdelete __P((int, char **)); 1661.1Scgdvoid mget __P((int, char **)); 1671.44Slukemvoid mintr __P((int)); 1681.1Scgdvoid mls __P((int, char **)); 1691.1Scgdvoid modtime __P((int, char **)); 1701.1Scgdvoid mput __P((int, char **)); 1711.1Scgdchar *onoff __P((int)); 1721.1Scgdvoid newer __P((int, char **)); 1731.12Slukemvoid page __P((int, char **)); 1741.31Slukemint parserate __P((int, char **, int)); 1751.42Slukemvoid progressmeter __P((int)); 1761.12Slukemchar *prompt __P((void)); 1771.12Slukemvoid proxabort __P((int)); 1781.42Slukemvoid proxtrans __P((const char *, const char *, const char *)); 1791.42Slukemvoid psabort __P((int)); 1801.5Slukemvoid psummary __P((int)); 1811.42Slukemvoid pswitch __P((int)); 1821.42Slukemvoid ptransfer __P((int)); 1831.1Scgdvoid put __P((int, char **)); 1841.1Scgdvoid pwd __P((int, char **)); 1851.1Scgdvoid quit __P((int, char **)); 1861.1Scgdvoid quote __P((int, char **)); 1871.6Slukemvoid quote1 __P((const char *, int, char **)); 1881.42Slukemvoid recvrequest __P((const char *, const char *, const char *, 1891.17Slukem const char *, int, int)); 1901.1Scgdvoid reget __P((int, char **)); 1911.12Slukemchar *remglob __P((char **, int, char **)); 1921.8Slukemoff_t remotesize __P((const char *, int)); 1931.8Slukemtime_t remotemodtime __P((const char *, int)); 1941.1Scgdvoid removedir __P((int, char **)); 1951.1Scgdvoid renamefile __P((int, char **)); 1961.42Slukemvoid reset __P((int, char **)); 1971.1Scgdvoid restart __P((int, char **)); 1981.1Scgdvoid rmthelp __P((int, char **)); 1991.1Scgdvoid rmtstatus __P((int, char **)); 2001.23Smycroftint ruserpass __P((const char *, const char **, const char **, 2011.23Smycroft const char **)); 2021.42Slukemvoid sendrequest __P((const char *, const char *, const char *, int)); 2031.1Scgdvoid setascii __P((int, char **)); 2041.1Scgdvoid setbell __P((int, char **)); 2051.1Scgdvoid setbinary __P((int, char **)); 2061.1Scgdvoid setcase __P((int, char **)); 2071.1Scgdvoid setcr __P((int, char **)); 2081.1Scgdvoid setdebug __P((int, char **)); 2091.10Slukemvoid setedit __P((int, char **)); 2101.33Sitojunvoid setepsv4 __P((int, char **)); 2111.1Scgdvoid setform __P((int, char **)); 2121.1Scgdvoid setftmode __P((int, char **)); 2131.17Slukemvoid setgate __P((int, char **)); 2141.1Scgdvoid setglob __P((int, char **)); 2151.1Scgdvoid sethash __P((int, char **)); 2161.1Scgdvoid setnmap __P((int, char **)); 2171.1Scgdvoid setntrans __P((int, char **)); 2181.48Slukemvoid setoption __P((int, char **)); 2191.2Scgdvoid setpassive __P((int, char **)); 2201.1Scgdvoid setpeer __P((int, char **)); 2211.1Scgdvoid setport __P((int, char **)); 2221.6Slukemvoid setpreserve __P((int, char **)); 2231.7Slukemvoid setprogress __P((int, char **)); 2241.1Scgdvoid setprompt __P((int, char **)); 2251.31Slukemvoid setrate __P((int, char **)); 2261.1Scgdvoid setrunique __P((int, char **)); 2271.1Scgdvoid setstruct __P((int, char **)); 2281.1Scgdvoid setsunique __P((int, char **)); 2291.1Scgdvoid settenex __P((int, char **)); 2301.1Scgdvoid settrace __P((int, char **)); 2311.11Slukemvoid setttywidth __P((int)); 2321.1Scgdvoid settype __P((int, char **)); 2331.21Sthorpejvoid setupsockbufsize __P((int)); 2341.1Scgdvoid setverbose __P((int, char **)); 2351.35Slukemvoid setxferbuf __P((int, char **)); 2361.1Scgdvoid shell __P((int, char **)); 2371.1Scgdvoid site __P((int, char **)); 2381.1Scgdvoid sizecmd __P((int, char **)); 2391.12Slukemchar *slurpstring __P((void)); 2401.1Scgdvoid status __P((int, char **)); 2411.31Slukemint strsuftoi __P((const char *)); 2421.1Scgdvoid syst __P((int, char **)); 2431.6Slukemint togglevar __P((int, char **, int *, const char *)); 2441.48Slukemvoid unsetoption __P((int, char **)); 2451.49Slukemvoid updateremotepwd __P((void)); 2461.12Slukemvoid usage __P((void)); 2471.1Scgdvoid user __P((int, char **)); 2481.21Sthorpejint xconnect __P((int, const struct sockaddr *, int)); 2491.21Sthorpejint xlisten __P((int, int)); 2501.24Slukemvoid *xmalloc __P((size_t)); 2511.24Slukemchar *xstrdup __P((const char *)); 2521.25Slukemsig_t xsignal __P((int, void (func) __P((int)))); 2531.42Slukemsig_t xsignal_restart __P((int, void (func) __P((int)), int)); 254