Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / dhcp / includes / cf / hpux.h
blobbd3cf1f9c408e343ed879938b0715e018539a8dd
1 /* hpux.h
3 Configuration file for HP-UX */
5 /*
6 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
7 * Copyright (c) 1996-2003 by Internet Software Consortium
9 * Permission to use, copy, modify, and distribute this software for any
10 * purpose with or without fee is hereby granted, provided that the above
11 * copyright notice and this permission notice appear in all copies.
13 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
14 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
16 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
19 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 * Internet Systems Consortium, Inc.
22 * 950 Charter Street
23 * Redwood City, CA 94063
24 * <info@isc.org>
25 * http://www.isc.org/
27 * This software has been written for Internet Systems Consortium
28 * by Ted Lemon in cooperation with Vixie Enterprises and Nominum, Inc.
29 * To learn more about Internet Systems Consortium, see
30 * ``http://www.isc.org/''. To learn more about Vixie Enterprises,
31 * see ``http://www.vix.com''. To learn more about Nominum, Inc., see
32 * ``http://www.nominum.com''.
35 #define int8_t char
36 #define int16_t short
37 #define int32_t long
39 #define u_int8_t unsigned char
40 #define u_int16_t unsigned short
41 #define u_int32_t unsigned long
43 #include <sys/types.h>
45 #include <syslog.h>
47 #include <string.h>
48 #include <errno.h>
49 #include <unistd.h>
50 #include <sys/wait.h>
51 #include <signal.h>
52 #include <setjmp.h>
53 #include <limits.h>
55 extern int h_errno;
57 #include <net/if.h>
58 #include <net/if_arp.h>
60 #define htons(x) (x) /* sigh */
62 #ifndef _PATH_DHCPD_PID
63 #define _PATH_DHCPD_PID "/etc/dhcpd.pid"
64 #endif
65 #ifndef _PATH_DHCLIENT_PID
66 #define _PATH_DHCLIENT_PID "/etc/dhclient.pid"
67 #endif
68 #ifndef _PATH_DHCRELAY_PID
69 #define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid"
70 #endif
72 #if !defined (__ANSI__)
73 /* Varargs stuff: use stdarg.h instead ... */
74 #include <stdarg.h>
75 #define VA_DOTDOTDOT ...
76 #define VA_start(list, last) va_start (list, last)
77 #define va_dcl
78 #else
79 #include <varargs.h>
80 #define VA_DOTDOTDOT va_alist
81 #define VA_start(list, last) va_start (list)
82 #endif
84 #define USE_SOCKETS 1
85 #define EOL '\n'
86 #define VOIDPTR void *
88 #include <time.h>
90 #define TIME time_t
91 #define GET_TIME(x) time ((x))
93 #define random rand
95 #define BYTE_ORDER BIG_ENDIAN
96 #define BIG_ENDIAN 1
98 #define SOCKLEN_T int
100 #ifdef NEED_PRAND_CONF
101 const char *cmds[] = {
102 "/usr/bin/ps -ef 2>&1",
103 "/usr/sbin/arp -an 2>&1",
104 "/usr/bin/netstat -an 2>&1",
105 "/usr/bin/df 2>&1",
106 "/usr/bin/netstat -an 2>&1",
107 "/usr/bin/vmstat 2>&1",
108 "/usr/bin/w 2>&1",
109 NULL
112 const char *dirs[] = {
113 "/tmp",
114 "/var/tmp",
115 ".",
116 "/",
117 "/var/spool",
118 "/var/adm",
119 "/dev",
120 "/var/mail",
121 "/home",
122 NULL
125 const char *files[] = {
126 "/var/adm/wtmp",
127 NULL
129 #endif /* NEED_PRAND_CONF */
131 /* these are #defined somewhere in /usr/include headers. */
132 #undef NO
133 #undef SERVER