xref: /freebsd/usr.bin/tftp/tftp.h (revision a3255f9b15cf339989ee69a0d00bd773c72a3333)
1*a3255f9bSWarner Losh /*
2*a3255f9bSWarner Losh  * Copyright (c) 1993
3*a3255f9bSWarner Losh  *	The Regents of the University of California.  All rights reserved.
4*a3255f9bSWarner Losh  *
5*a3255f9bSWarner Losh  * Redistribution and use in source and binary forms, with or without
6*a3255f9bSWarner Losh  * modification, are permitted provided that the following conditions
7*a3255f9bSWarner Losh  * are met:
8*a3255f9bSWarner Losh  * 1. Redistributions of source code must retain the above copyright
9*a3255f9bSWarner Losh  *    notice, this list of conditions and the following disclaimer.
10*a3255f9bSWarner Losh  * 2. Redistributions in binary form must reproduce the above copyright
11*a3255f9bSWarner Losh  *    notice, this list of conditions and the following disclaimer in the
12*a3255f9bSWarner Losh  *    documentation and/or other materials provided with the distribution.
13*a3255f9bSWarner Losh  * 3. All advertising materials mentioning features or use of this software
14*a3255f9bSWarner Losh  *    must display the following acknowledgement:
15*a3255f9bSWarner Losh  *	This product includes software developed by the University of
16*a3255f9bSWarner Losh  *	California, Berkeley and its contributors.
17*a3255f9bSWarner Losh  * 4. Neither the name of the University nor the names of its contributors
18*a3255f9bSWarner Losh  *    may be used to endorse or promote products derived from this software
19*a3255f9bSWarner Losh  *    without specific prior written permission.
20*a3255f9bSWarner Losh  *
21*a3255f9bSWarner Losh  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22*a3255f9bSWarner Losh  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23*a3255f9bSWarner Losh  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24*a3255f9bSWarner Losh  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25*a3255f9bSWarner Losh  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26*a3255f9bSWarner Losh  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27*a3255f9bSWarner Losh  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28*a3255f9bSWarner Losh  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29*a3255f9bSWarner Losh  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30*a3255f9bSWarner Losh  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*a3255f9bSWarner Losh  * SUCH DAMAGE.
32*a3255f9bSWarner Losh  *
33*a3255f9bSWarner Losh  *	@(#)extern.h	8.1 (Berkeley) 6/6/93
34*a3255f9bSWarner Losh  * $FreeBSD$
35*a3255f9bSWarner Losh  */
36*a3255f9bSWarner Losh 
37*a3255f9bSWarner Losh void	recvfile(int peer, char *port, int fd, char *name, char *mode);
38*a3255f9bSWarner Losh void	xmitfile(int peer, char *port, int fd, char *name, char *mode);
39*a3255f9bSWarner Losh 
40*a3255f9bSWarner Losh extern int	verbose;
41*a3255f9bSWarner Losh extern int	maxtimeout;
42*a3255f9bSWarner Losh extern volatile int txrx_error;
43