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