1 /* $OpenBSD: extern.h,v 1.51 2019/05/16 12:44:17 florian Exp $ */ 2 /* $NetBSD: extern.h,v 1.17 1997/08/18 10:20:19 lukem Exp $ */ 3 4 /* 5 * Copyright (C) 1997 and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in the 15 * documentation and/or other materials provided with the distribution. 16 * 3. Neither the name of the project nor the names of its contributors 17 * may be used to endorse or promote products derived from this software 18 * without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33 /*- 34 * Copyright (c) 1994 The Regents of the University of California. 35 * All rights reserved. 36 * 37 * Redistribution and use in source and binary forms, with or without 38 * modification, are permitted provided that the following conditions 39 * are met: 40 * 1. Redistributions of source code must retain the above copyright 41 * notice, this list of conditions and the following disclaimer. 42 * 2. Redistributions in binary form must reproduce the above copyright 43 * notice, this list of conditions and the following disclaimer in the 44 * documentation and/or other materials provided with the distribution. 45 * 3. Neither the name of the University nor the names of its contributors 46 * may be used to endorse or promote products derived from this software 47 * without specific prior written permission. 48 * 49 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 50 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 51 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 52 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 53 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 54 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 55 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 56 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 57 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 58 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 59 * SUCH DAMAGE. 60 * 61 * @(#)extern.h 8.3 (Berkeley) 10/9/94 62 */ 63 64 #include <sys/types.h> 65 66 void abort_remote(FILE *); 67 void abortpt(int); 68 void abortrecv(int); 69 void alarmtimer(int); 70 int another(int *, char ***, const char *); 71 int auto_fetch(int, char **, char *); 72 void blkfree(char **); 73 void cdup(int, char **); 74 void cmdabort(int); 75 void cmdscanner(int); 76 int command(const char *, ...); 77 int confirm(const char *, const char *); 78 int connect_wait(int); 79 FILE *dataconn(const char *); 80 int foregroundproc(void); 81 int fileindir(const char *, const char *); 82 struct cmd *getcmd(const char *); 83 int getreply(int); 84 int globulize(char **); 85 char *gunique(const char *); 86 void help(int, char **); 87 char *hookup(char *, char *); 88 int initconn(void); 89 void intr(void); 90 int isurl(const char *); 91 int ftp_login(const char *, char *, char *); 92 void lostpeer(void); 93 void makeargv(void); 94 void progressmeter(int, const char *); 95 char *prompt(void); 96 void proxtrans(const char *, const char *, const char *); 97 void psabort(int); 98 void psummary(int); 99 void pswitch(int); 100 void ptransfer(int); 101 void recvrequest(const char *, const char *, const char *, 102 const char *, int, int); 103 char *remglob(char **, int, char **); 104 off_t remotesize(const char *, int); 105 time_t remotemodtime(const char *, int); 106 void reset(int, char **); 107 void rmthelp(int, char **); 108 void sethash(int, char **); 109 void setpeer(int, char **); 110 void setttywidth(int); 111 char *slurpstring(void); 112 113 __dead void usage(void); 114 115 void cookie_get(const char *, const char *, int, char **); 116 void cookie_load(void); 117 118 #ifndef SMALL 119 void abortsend(int); 120 unsigned char complete(EditLine *, int); 121 void controlediting(void); 122 void domacro(int, char **); 123 void list_vertical(StringList *); 124 void parse_list(char **, char *); 125 char *remglob2(char **, int, char **, FILE **ftemp, char *type); 126 int ruserpass(const char *, char **, char **, char **); 127 void sendrequest(const char *, const char *, const char *, int); 128 #endif /* !SMALL */ 129 130 extern jmp_buf abortprox; 131 extern int abrtflag; 132 extern FILE *cout; 133 extern int data; 134 extern char *home; 135 extern jmp_buf jabort; 136 extern int family; 137 extern int proxy; 138 extern char reply_string[]; 139 extern off_t restart_point; 140 extern int keep_alive_timeout; 141 extern int connect_timeout; 142 extern int pipeout; 143 extern char *action; 144 145 #ifndef SMALL 146 extern int NCMDS; 147 #endif /* !SMALL */ 148 149 extern char *__progname; /* from crt0.o */ 150 151