xref: /freebsd/usr.bin/tftp/tftp.h (revision bdcbfde31e8e9b343f113a1956384bdf30d1ed62)
18a16b7a1SPedro F. Giffuni /*-
28a16b7a1SPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
38a16b7a1SPedro 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 
32*92570f67SDag-Erling Smørgrav int	recvfile(int peer, char *port, int fd, char *name, char *mode);
33*92570f67SDag-Erling Smørgrav int	xmitfile(int peer, char *port, int fd, char *name, char *mode);
34a3255f9bSWarner Losh 
35a3255f9bSWarner Losh extern int	verbose;
36a3255f9bSWarner Losh extern int	maxtimeout;
37