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