3 System dependencies for QNX... */
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.
23 * Redwood City, CA 94063
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 #include <sys/types.h>
43 #include <sys/select.h>
49 #include <sys/param.h>
57 # define INADDR_LOOPBACK ((u_long)0x7f000001)
60 /* Varargs stuff... */
62 #define VA_DOTDOTDOT ...
64 #define VA_start(list, last) va_start (list, last)
66 #ifndef _PATH_DHCPD_PID
67 #define _PATH_DHCPD_PID "/etc/dhcpd.pid"
69 #ifndef _PATH_DHCLIENT_PID
70 #define _PATH_DHCLIENT_PID "/etc/dhclient.pid"
72 #ifndef _PATH_DHCRELAY_PID
73 #define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid"
77 #define VOIDPTR void *
82 #define GET_TIME(x) time ((x))
83 #define TIME_DIFF(high, low) (*(high) - *(low))
84 #define SET_TIME(x, y) (*(x) = (y))
85 #define ADD_TIME(d, s1, s2) (*(d) = *(s1) + *(s2))
86 #define SET_MAX_TIME(x) (*(x) = INT_MAX)
89 typedef unsigned char u_int8_t
;
90 typedef unsigned short u_int16_t
;
91 typedef unsigned long u_int32_t
;
92 typedef signed short int16_t;
93 typedef signed long int32_t;
97 typedef int socklen_t
;
100 #define strcasecmp( s1, s2 ) stricmp( s1, s2 )
101 #define strncasecmp( s1, s2, n ) strnicmp( s1, s2, n )
102 #define random() rand()
105 #define BROKEN_TM_GMT
114 # define GET_HOST_ID_MISSING
118 NOTE: to get the routing of the 255.255.255.255 broadcasts to work
119 under QNX, you need to issue the following command before starting
122 route add -interface 255.255.255.0 <hostname>
124 where <hostname> is replaced by the hostname or IP number of the
125 machine that dhcpd is running on.
129 # if defined (NSUPDATE)
130 # error NSUPDATE is not supported on QNX at this time!!
135 #ifdef NEED_PRAND_CONF
136 #ifndef HAVE_DEV_RANDOM
137 /* You should find and install the /dev/random driver */
138 # define HAVE_DEV_RANDOM 1
139 #endif /* HAVE_DEV_RANDOM */
141 const char *cmds
[] = {
144 "/sbin/arp -an 2>&1",
145 "/bin/netstat -an 2>&1",
148 "/bin/netstat -s 2>&1",
149 "/bin/sin memory 2>&1",
153 const char *dirs
[] = {
164 const char *files
[] = {
171 #endif /* NEED_PRAND_CONF */