3 System dependencies for NEXTSTEP 3 & 4 (tested on 4.2PR2)... */
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 /* NeXT needs BSD44 ssize_t */
37 /* NeXT doesn't have BSD setsid() */
41 The jmp_buf type as declared in <setjmp.h> is sometimes a structure
42 and sometimes an array. By default, we assume it's a structure.
43 If it's an array on your system, you may get compile warnings or errors
44 as a result in confpars.c. If so, try including the following definitions,
45 which treat jmp_buf as an array: */
47 #define jbp_decl(x) jmp_buf x
50 #define jrefproto jmp_buf
62 #import <net/if_arp.h>
64 Some older systems do not have defines for IP type-of-service,
65 or don't define them the way we expect. If you get undefined
66 symbol errors on the following symbols, they probably need to be
69 #define IPTOS_LOWDELAY 0x10
70 #define IPTOS_THROUGHPUT 0x08
71 #define IPTOS_RELIABILITY 0x04
74 #if !defined (_PATH_DHCPD_PID)
75 # define _PATH_DHCPD_PID "/etc/dhcpd.pid"
78 #if !defined (_PATH_DHCLIENT_PID)
79 # define _PATH_DHCLIENT_PID "/etc/dhclient.pid"
82 #if !defined (_PATH_DHCRELAY_PID)
83 # define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid"
86 /* Stdarg definitions for ANSI-compliant C compilers. */
88 #define VA_DOTDOTDOT ...
89 #define VA_start(list, last) va_start (list, last)
92 /* NeXT lacks snprintf */
96 You must define the default network API for your port. This
97 will depend on whether one of the existing APIs will work for
98 you, or whether you need to implement support for a new API.
99 Currently, the following APIs are supported:
100 The BSD socket API: define USE_SOCKETS.
101 The Berkeley Packet Filter: define USE_BPF.
102 The Streams Network Interface Tap (NIT): define USE_NIT.
103 Raw sockets: define USE_RAW_SOCKETS
104 If your system supports the BSD socket API and doesn't provide
105 one of the supported interfaces to the physical packet layer,
106 you can either provide support for the low-level API that your
107 system does support (if any) or just use the BSD socket interface.
108 The BSD socket interface doesn't support multiple network interfaces,
109 and on many systems, it does not support the all-ones broadcast
110 address, which can cause problems with some DHCP clients (e.g.
111 Microsoft Windows 95). */
114 #if defined (USE_DEFAULT_NETWORK)
119 #define VOIDPTR void *
122 #define GET_TIME(x) time ((x))
124 #ifdef NEED_PRAND_CONF
125 const char *cmds
[] = {
126 "/bin/ps -axlw 2>&1",
127 "/usr/etc/arp -a 2>&1",
128 "/usr/ucb/netstat -an 2>&1",
130 "/usr/local/bin/dig com. soa +ti=1 2>&1",
131 "/usr/ucb/uptime 2>&1",
132 "/usr/ucb/printenv 2>&1",
133 "/usr/ucb/netstat -s 2>&1",
134 "/usr/local/bin/dig . soa +ti=1 2>&1",
135 "/usr/bin/iostat 2>&1",
136 "/usr/bin/vm_stat 2>&1",
141 const char *dirs
[] = {
151 const char *files
[] = {
157 #endif /* NEED_PRAND_CONF */