Spell IP_RECVDSTADDR correctly
[tftp-hpa.git] / tftp / tftpsubs.h
blob645c6b9d0507f9bf6c8a3ed49a20fde7478d30ab
1 /* $Id$ */
3 /* $OpenBSD: tftpsubs.h,v 1.2 1996/06/26 05:40:37 deraadt Exp $ */
4 /* $NetBSD: tftpsubs.h,v 1.2 1994/12/08 09:51:32 jtc Exp $ */
6 /*
7 * Copyright (c) 1993
8 * The Regents of the University of California. All rights reserved.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the University of
21 * California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
38 * @(#)tftpsubs.h 8.1 (Berkeley) 6/6/93
42 * Prototypes for read-ahead/write-behind subroutines for tftp user and
43 * server.
45 #ifndef TFTPSUBS_H
46 #define TFTPSUBS_H
48 #include "config.h"
50 struct tftphdr;
52 struct tftphdr *r_init(void);
53 void read_ahead(FILE *, int);
54 int readit(FILE *, struct tftphdr **, int);
56 int synchnet(int);
58 struct tftphdr *w_init(void);
59 int write_behind(FILE *, int);
60 int writeit(FILE *, struct tftphdr **, int, int);
62 extern int segsize;
63 #define MAX_SEGSIZE 65464
66 * Prototype for xmalloc/xstrdup
68 extern void *xmalloc(size_t);
69 extern char *xstrdup(const char *);
72 * Signal-related stuff
74 void (*bsd_signal(int, void (*)(int)))(int);
76 #endif