3 System dependencies for Ultrix 4.2 (tested on 4.2a+multicast)... */
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 /* Ultrix uses the old 4.2BSD-style syslog(). */
36 #include <sys/syslog.h>
39 #include <sys/types.h>
52 #ifndef _PATH_DHCPD_PID
53 #define _PATH_DHCPD_PID "/etc/dhcpd.pid"
55 #ifndef _PATH_DHCLIENT_PID
56 #define _PATH_DHCLIENT_PID "/etc/dhclient.pid"
58 #ifndef _PATH_DHCRELAY_PID
59 #define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid"
67 #define u_int8_t unsigned char /* Not quite POSIX... */
68 #define u_int16_t unsigned short
69 #define u_int32_t unsigned long
71 #define ssize_t size_t
73 /* The jmp_buf type is an array on ultrix, so we can't dereference it
74 and must declare it differently. */
75 #define jbp_decl(x) jmp_buf x
78 #define jrefproto jmp_buf
80 #define IPTOS_LOWDELAY 0x10
81 /* IPTOS_LOWCOST 0x02 XXX */
83 /* Varargs stuff... */
85 #define VA_DOTDOTDOT va_alist
86 #define VA_start(list, last) va_start (list)
88 /* XXX: System is not thought to support snprintf/vsnprintf. Please verify. */
91 #define NEED_INET_ATON
93 #define INADDR_LOOPBACK ((u_int32_t)0x7f000001)
95 #define VOIDPTR void *
101 * Definitions for an ISC DHCPD system that uses time_t
102 * to represent time internally as opposed to, for example, struct timeval.)
106 #define GET_TIME(x) time ((x))
108 /* Ultrix doesn't provide an endian.h, but it only runs on little-endian
109 machines, so we'll just hack around the issue. */
111 #define LITTLE_ENDIAN 2
112 #define BYTE_ORDER LITTLE_ENDIAN
114 #if defined (USE_DEFAULT_NETWORK)
118 #ifdef NEED_PRAND_CONF
119 const char *cmds
[] = {
121 "/usr/etc/arp -an 2>&1",
122 "/usr/ucb/netstat -an 2>&1",
124 "/usr/ucb/uptime 2>&1",
125 "/usr/ucb/netstat -an 2>&1",
126 "/usr/bin/iostat 2>&1",
130 const char *dirs
[] = {
142 const char *files
[] = {
143 "/var/spool/mqueue/syslog",
148 #endif /* NEED_PRAND_CONF */