Deleted Added
full compact
resolv.h (93032) resolv.h (111618)
1/*-
2 * Copyright (c) 1983, 1987, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 37 unchanged lines hidden (view full) ---

46 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
47 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
48 * SOFTWARE.
49 */
50
51/*
52 * @(#)resolv.h 8.1 (Berkeley) 6/2/93
53 * From Id: resolv.h,v 8.12 1998/04/28 19:36:46 halley Exp $
1/*-
2 * Copyright (c) 1983, 1987, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 37 unchanged lines hidden (view full) ---

46 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
47 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
48 * SOFTWARE.
49 */
50
51/*
52 * @(#)resolv.h 8.1 (Berkeley) 6/2/93
53 * From Id: resolv.h,v 8.12 1998/04/28 19:36:46 halley Exp $
54 * $FreeBSD: head/include/resolv.h 93032 2002-03-23 17:24:55Z imp $
54 * $FreeBSD: head/include/resolv.h 111618 2003-02-27 13:40:01Z nectar $
55 */
56
57#ifndef _RESOLV_H_
58#define _RESOLV_H_
59
60#include <sys/param.h>
61#include <sys/types.h>
62#include <sys/cdefs.h>

--- 239 unchanged lines hidden (view full) ---

302int res_isourserver(const struct sockaddr_in *);
303int res_nameinquery(const char *, int, int,
304 const u_char *, const u_char *);
305int res_queriesmatch(const u_char *, const u_char *,
306 const u_char *, const u_char *);
307void res_close(void);
308int res_opt(int, u_char *, int, int);
309const char * p_section(int, int);
55 */
56
57#ifndef _RESOLV_H_
58#define _RESOLV_H_
59
60#include <sys/param.h>
61#include <sys/types.h>
62#include <sys/cdefs.h>

--- 239 unchanged lines hidden (view full) ---

302int res_isourserver(const struct sockaddr_in *);
303int res_nameinquery(const char *, int, int,
304 const u_char *, const u_char *);
305int res_queriesmatch(const u_char *, const u_char *,
306 const u_char *, const u_char *);
307void res_close(void);
308int res_opt(int, u_char *, int, int);
309const char * p_section(int, int);
310/* XXX These must be exported for BIND4 compatibility. */
311void __putlong(u_int32_t, u_char *);
312void __putshort(u_int16_t, u_char *);
313u_int32_t _getlong(const u_char *);
314u_int16_t _getshort(const u_char *);
310/* XXX The following depend on the ns_updrec typedef in arpa/nameser.h */
311#ifdef _ARPA_NAMESER_H_
312int res_update(ns_updrec *);
313int res_mkupdate(ns_updrec *, u_char *, int);
314ns_updrec * res_mkupdrec(int, const char *, u_int, u_int, u_long);
315void res_freeupdrec(ns_updrec *);
316#endif
317__END_DECLS
318
319#endif /* !_RESOLV_H_ */
315/* XXX The following depend on the ns_updrec typedef in arpa/nameser.h */
316#ifdef _ARPA_NAMESER_H_
317int res_update(ns_updrec *);
318int res_mkupdate(ns_updrec *, u_char *, int);
319ns_updrec * res_mkupdrec(int, const char *, u_int, u_int, u_long);
320void res_freeupdrec(ns_updrec *);
321#endif
322__END_DECLS
323
324#endif /* !_RESOLV_H_ */