Sync usage with man page.
[netbsd-mini2440.git] / dist / dhcp / includes / cf / aix.h
blob202e85726bdfdefac7a90d137f8f6720f9e15f75
1 /* aix.h
3 Configuration file for IBM's AIX operating system. */
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/select.h>
51 #include <sys/wait.h>
52 #include <signal.h>
53 #include <setjmp.h>
54 #include <limits.h>
56 #if !defined (h_errno) /* It's a macro on newer instances of AIX. */
57 extern int h_errno;
58 #endif
60 #include <net/if.h>
61 #include <net/if_arp.h>
62 #include <net/if_dl.h>
64 #ifndef _PATH_DHCPD_PID
65 #define _PATH_DHCPD_PID "/etc/dhcpd.pid"
66 #endif
67 #ifndef _PATH_DHCLIENT_PID
68 #define _PATH_DHCLIENT_PID "/etc/dhclient.pid"
69 #endif
70 #ifndef _PATH_DHCRELAY_PID
71 #define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid"
72 #endif
74 #include <stdarg.h>
75 #define VA_DOTDOTDOT ...
76 #define VA_start(list, last) va_start (list)
77 #define va_dcl
79 /* The vsnprint function definition in /usr/include/ appears to use this
80 * as a key for wether or not it should be declared. Seems reasoanble for
81 * us to use the same key.
83 #if (_XOPEN_SOURCE != 500)
84 #define NO_SNPRINTF
85 #endif
87 #define EOL '\n'
88 #define VOIDPTR void *
90 #include <time.h>
92 #define TIME time_t
93 #define GET_TIME(x) time ((x))
95 #define random rand
97 #define USE_SOCKETS 1
98 #define HAVE_SA_LEN 1
99 #undef FDDI
101 #ifdef NEED_PRAND_CONF
102 const char *cmds[] = {
103 "/bin/ps -ef 2>&1",
104 "/usr/bin/netstat -an 2>&1",
105 "/bin/df 2>&1",
106 "/usr/bin/uptime 2>&1",
107 "/usr/bin/printenv 2>&1",
108 "/usr/bin/netstat -s 2>&1",
109 "/usr/bin/w 2>&1",
110 NULL
113 const char *dirs[] = {
114 "/tmp",
115 "/var/tmp",
116 ".",
117 "/",
118 "/var/spool",
119 "/var/adm",
120 "/dev",
121 "/var/spool/mail",
122 "/home",
123 NULL
126 const char *files[] = {
127 "/var/adm/wtmp",
128 NULL
130 #endif /* NEED_PRAND_CONF */