Remove building with NOCRYPTO option
[minix.git] / external / bsd / bind / dist / contrib / query-loc-0.4.0 / loc.h
blob674e9b4e932a8d169665cc665bf38e6deaf37a87
1 /* $NetBSD: loc.h,v 1.4 2014/12/10 04:37:56 christos Exp $ */
3 /* Id: loc.h,v 1.1 2008/02/15 01:47:15 marka Exp */
5 #define VERSION "0.4.0"
7 #include "config.h"
9 /* Probably too many inclusions but this is to keep 'gcc -Wall' happy... */
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <sys/types.h>
13 #include <netdb.h>
14 #include <sys/socket.h>
15 #include <netinet/in.h>
16 #include <arpa/inet.h>
17 #include <sys/time.h>
18 #include <errno.h>
19 #include <unistd.h>
20 #include <string.h>
21 #include <signal.h>
22 #include <arpa/nameser.h>
23 #include <resolv.h>
25 #ifndef FALSE
26 #define FALSE 0
27 #endif
28 #ifndef TRUE
29 #define TRUE 1
30 #endif
32 #if SIZEOF_LONG == 4
33 #define u_int32_t unsigned long
34 #ifndef int32_t
35 #define int32_t long
36 #endif
37 #else
38 #define u_int32_t unsigned int
39 #ifndef int32_t
40 #define int32_t int
41 #endif
42 #endif
44 #if SIZEOF_CHAR == 1
45 #define u_int8_t unsigned char
46 #ifndef int8_t
47 #define int8_t char
48 #endif
49 #else
50 #if SIZEOF_SHORT == 1
51 #define u_int8_t unsigned short
52 #ifndef int8_t
53 #define int8_t short
54 #endif
55 #else
56 #error "No suitable native type for storing bytes"
57 #endif
58 #endif
60 #ifndef INADDR_NONE
61 #define INADDR_NONE (in_addr_t)-1
62 #endif
64 struct list_in_addr
66 struct in_addr addr;
67 void *next;
70 void usage ();
71 void panic ();
73 char *getlocbyname ();
74 char *getlocbyaddr ();
75 char *getlocbynet ();
76 char *findRR ();
77 struct list_in_addr *findA ();
79 extern char *progname;
80 extern short debug;