]>
Commit | Line | Data |
---|---|---|
49733f31 TL |
1 | /* aix.h |
2 | ||
3 | Configuration file for IBM's AIX operating system. */ | |
4 | ||
2d1b06e0 TL |
5 | /* |
6 | * Copyright (c) 1996 The Internet Software Consortium. All rights reserved. | |
49733f31 | 7 | * All rights reserved. |
2d1b06e0 TL |
8 | * |
9 | * Redistribution and use in source and binary forms, with or without | |
10 | * modification, are permitted provided that the following conditions | |
11 | * are met: | |
12 | * | |
13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | |
15 | * 2. Redistributions in binary form must reproduce the above copyright | |
16 | * notice, this list of conditions and the following disclaimer in the | |
17 | * documentation and/or other materials provided with the distribution. | |
49733f31 TL |
18 | * 3. Neither the name of The Internet Software Consortium nor the names |
19 | * of its contributors may be used to endorse or promote products derived | |
2d1b06e0 TL |
20 | * from this software without specific prior written permission. |
21 | * | |
22 | * THIS SOFTWARE IS PROVIDED BY THE INTERNET SOFTWARE CONSORTIUM AND | |
49733f31 TL |
23 | * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, |
24 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
25 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
26 | * DISCLAIMED. IN NO EVENT SHALL THE INTERNET SOFTWARE CONSORTIUM OR | |
27 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
28 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
29 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | |
30 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |
31 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | |
32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | |
33 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
34 | * SUCH DAMAGE. | |
2d1b06e0 | 35 | * |
49733f31 TL |
36 | * This software has been written for the Internet Software Consortium |
37 | * by Ted Lemon in cooperation with Vixie Enterprises and Nominum, Inc. | |
38 | * To learn more about the Internet Software Consortium, see | |
39 | * ``http://www.isc.org/''. To learn more about Vixie Enterprises, | |
40 | * see ``http://www.vix.com''. To learn more about Nominum, Inc., see | |
41 | * ``http://www.nominum.com''. | |
2d1b06e0 TL |
42 | */ |
43 | ||
44 | #define int8_t char | |
45 | #define int16_t short | |
46 | #define int32_t long | |
47 | ||
48 | #define u_int8_t unsigned char | |
49 | #define u_int16_t unsigned short | |
50 | #define u_int32_t unsigned long | |
51 | ||
52 | #include <sys/types.h> | |
53 | ||
54 | #include <syslog.h> | |
55 | ||
56 | #include <string.h> | |
57 | #include <errno.h> | |
58 | #include <unistd.h> | |
59 | #include <sys/select.h> | |
60 | #include <sys/wait.h> | |
61 | #include <signal.h> | |
62 | #include <setjmp.h> | |
63 | #include <limits.h> | |
64 | ||
9458e9aa | 65 | #if !defined (h_errno) /* It's a macro on newer instances of AIX. */ |
2d1b06e0 | 66 | extern int h_errno; |
9458e9aa | 67 | #endif |
2d1b06e0 TL |
68 | |
69 | #include <net/if.h> | |
70 | #include <net/if_arp.h> | |
71 | #include <net/if_dl.h> | |
72 | ||
73 | #ifndef _PATH_DHCPD_PID | |
74 | #define _PATH_DHCPD_PID "/etc/dhcpd.pid" | |
75 | #endif | |
76 | #ifndef _PATH_DHCLIENT_PID | |
77 | #define _PATH_DHCLIENT_PID "/etc/dhclient.pid" | |
78 | #endif | |
79 | #ifndef _PATH_DHCRELAY_PID | |
80 | #define _PATH_DHCRELAY_PID "/etc/dhcrelay.pid" | |
81 | #endif | |
82 | ||
cfdfb9f1 TL |
83 | #include <stdarg.h> |
84 | #define VA_DOTDOTDOT ... | |
2d1b06e0 | 85 | #define VA_start(list, last) va_start (list) |
cfdfb9f1 | 86 | #define va_dcl |
2d1b06e0 TL |
87 | |
88 | #define vsnprintf(buf, size, fmt, list) vsprintf (buf, fmt, list) | |
89 | #define NO_SNPRINTF | |
90 | ||
91 | #define EOL '\n' | |
92 | #define VOIDPTR void * | |
93 | ||
94 | #include <time.h> | |
95 | ||
96 | #define TIME time_t | |
97 | #define GET_TIME(x) time ((x)) | |
98 | ||
99 | #define random rand | |
100 | ||
101 | #define USE_SOCKETS 1 | |
102 | #define HAVE_SA_LEN 1 | |
103 | #undef FDDI | |
32e99078 TL |
104 | |
105 | #ifdef NEED_PRAND_CONF | |
106 | const char *cmds[] = { | |
107 | "/bin/ps -ef 2>&1", | |
108 | "/usr/bin/netstat -an 2>&1", | |
109 | "/bin/df 2>&1", | |
110 | "/usr/bin/uptime 2>&1", | |
111 | "/usr/bin/printenv 2>&1", | |
112 | "/usr/bin/netstat -s 2>&1", | |
113 | "/usr/bin/w 2>&1", | |
114 | NULL | |
115 | }; | |
116 | ||
117 | const char *dirs[] = { | |
118 | "/tmp", | |
119 | "/var/tmp", | |
120 | ".", | |
121 | "/", | |
122 | "/var/spool", | |
123 | "/var/adm", | |
124 | "/dev", | |
125 | "/var/spool/mail", | |
126 | "/home", | |
127 | NULL | |
128 | }; | |
129 | ||
130 | const char *files[] = { | |
131 | "/var/adm/wtmp", | |
132 | NULL | |
133 | }; | |
134 | #endif /* NEED_PRAND_CONF */ |