Debian Codegraph @

autotools/autotools.h.in

raw
1 /*
2 * autotools.h: header shim for autotools
3 */
4
5 /*
6 * Copyright 1998 Purdue Research Foundation, West Lafayette, Indiana
7 * 47907. All rights reserved.
8 *
9 * Written by Victor A. Abell
10 *
11 * This software is not subject to any license of the American Telephone
12 * and Telegraph Company or the Regents of the University of California.
13 *
14 * Permission is granted to anyone to use this software for any purpose on
15 * any computer system, and to alter it and redistribute it freely, subject
16 * to the following restrictions:
17 *
18 * 1. Neither the authors nor Purdue University are responsible for any
19 * consequences of the use of this software.
20 *
21 * 2. The origin of this software must not be misrepresented, either by
22 * explicit claim or by omission. Credit to the authors and Purdue
23 * University must appear in documentation and sources.
24 *
25 * 3. Altered versions must be plainly marked as such, and must not be
26 * misrepresented as being the original software.
27 *
28 * 4. This notice may not be removed or altered.
29 */
30
31 #if !defined(LSOF_AUTOTOOLS_H)
32 #define LSOF_AUTOTOOLS_H 1
33
34 #ifndef AUTOTOOLS
35 #error "This file should only be included when built using autotools"
36 #endif
37
38 #include "config.h"
39
40 #if !HAVE_RPC_RPC_H && !HAVE_LIBTIRPC
41 #define HASNORPC_H
42 #endif
43
44 #if HAVE_DECL___GLIBC__
45 #define GLIBCV
46 #endif
47
48 #if HAVE_DECL_AF_INET6 || HAVE_NETINET6_IN6_H || HAVE_NETINET_IN6_H || HAVE_NETINET_IP6_H
49 #define HASIPv6
50 #endif
51
52 #if HAVE_DECL_TCP_ESTABLISHED
53 #define NEEDS_NETINET_TCPH
54 #endif
55
56 #if HAVE_LINUX_SOCK_DIAG_H && HAVE_LINUX_UNIX_DIAG_H
57 #define HASUXSOCKEPT
58 #endif
59
60 #if HAVE_DECL_TTYAUX_MAJOR
61 #define HASPTYEPT
62 #endif
63
64 #if HAVE_DECL_SS_CONNECTED
65 #define HASSOSTATE
66 #define HASSOOPT
67 #endif
68
69 #if HAVE_STRFTIME
70 #define HAS_STRFTIME
71 #endif
72
73 #if HAVE_SELINUX_SELINUX_H
74 #define HASSELINUX
75 #endif
76
77 #if HAVE_UTMPX_H
78 #define HASUTMPX
79 #endif
80
81 #if HAVE_VM_MEMATTR_T
82 #define HAS_VM_MEMATTR_T
83 #endif
84
85 #if HAVE_DECL_DOADUMP
86 #define NEEDS_BOOLEAN_T
87 #endif
88
89 #if HAVE_KVM_VNODE
90 #define HAS_KVM_VNODE
91 #endif
92
93 #if HAVE_DECL_SBS_CANTSENDMORE
94 #define HASSBSTATE
95 #endif
96
97 #if HAVE_STRUCT_KINFO_PROC_KI_NUMTHREADS
98 #define HASTASKS
99 #endif
100
101 #if HAVE_STRUCT_FILE_F_VNODE
102 #define HASF_VNODE
103 #endif
104
105 #if HAVE_STRUCT_FILEDESCENT
106 #define HAS_FILEDESCENT
107 #endif
108
109 /* Do not include wctype.h in AIX to avoid duplicate time error */
110 #if HAVE_WCTYPE_H && !defined(AIXV)
111 #define HASWCTYPE_H
112 #endif
113
114 #if HAVE_STRUCT_INODE_I_DIN2
115 #define HAS_UFS1_2
116 #endif
117
118 #if HAVE_STRUCT_VNODE_V_LOCKF
119 #define HAS_V_LOCKF
120 #endif
121
122 /* Check fdescfs v1 on FreeBSD if needed later */
123 #if HAVE_FS_FDESCFS_FDESC_H
124 #define HASFDESCFS 2
125 #endif
126
127 /* Check fdescfs v2 on NetBSD if needed later */
128 #if HAVE_MISCFS_FDESC_FDESC_H
129 #define HASFDESCFS 1
130 #endif
131
132 #if HAVE_FS_NULLFS_NULL_H || HAVE_MISCFS_NULLFS_NULL_H
133 #define HASNULLFS
134 #endif
135
136 #if HAVE_STRUCT_XTCPCB_T_MAXSEG
137 #define HAS_XTCPCB_TMAXSEG
138 #endif
139
140 #if HAVE_STRUCT_KINFO_FILE_KF_UN_KF_SOCK_KF_SOCK_SENDQ
141 #define HAS_KF_SOCK_SENDQ
142 #endif
143
144 #if HAVE_STRUCT_KINFO_FILE_KF_UN_KF_FILE_KF_FILE_NLINK
145 #define HAS_KF_FILE_NLINK
146 #endif
147
148 #if HAVE_NFS_NFSPROTO_H
149 #define HASNFSPROTO
150 #endif
151
152 #if HAVE_UVM_UVM_H
153 #define UVM
154 #define HAS_UVM_INCL
155 #endif
156
157 #if HAVE_STRUCT_STATVFS
158 #define HASSTATVFS
159 #endif
160
161 #if HAVE_STRUCT_INODE_I_FFS1_SIZE
162 #define HASI_FFS1
163 #endif
164
165 #if HAVE_DECL_GETBOOTFILE
166 #define HASGETBOOTFILE
167 #endif
168
169 #if HAVE_DECL_KVM_GETPROC2
170 #define HASKVMGETPROC2
171 #endif
172
173 #if HAVE_FS_PTYFS_PTYFS_H
174 #define HASPTYFS
175 #endif
176
177 #if HAVE_MISCFS_PROCFS_PROCFS_H
178 #define HASPROCFS
179 #endif
180
181 #if HAVE_DECL_PFSROOT
182 #define HASPROCFS_PFSROOT
183 #endif
184
185 #if HAVE_FS_TMPFS_TMPFS_H
186 #define HASTMPFS
187 #endif
188
189 #if HAVE_SYS_PIPE_H
190 #define HAS_SYS_PIPEH
191 #endif
192
193 #if HAVE_STRUCT_FDESCNODE_FD_LINK
194 #define HASFDLINK
195 #endif
196
197 #if HAVE_INET_IPCLASSIFIER_H
198 #define HAS_IPCLASSIFIER_H
199 #endif
200
201 #if HAVE_SYS_ZONE_H
202 #define HASZONES
203 #endif
204
205 #if HAVE_PAD_MUTEX_T
206 #define HAS_PAD_MUTEX
207 #endif
208
209 #if HAVE_LIBCTF_H
210 #define HAS_LIBCTF
211 #endif
212
213 #if HAVE_DECL_PC_DIRENTPERSEC
214 #define HAS_PC_DIRENTPERSEC
215 #endif
216
217 #if HAVE_SYS_FS_ZFS_H
218 #define HAS_ZFS
219 #endif
220
221 #if HAVE_SYS_CRED_IMPL_H
222 #define HAS_CRED_IMPL_H
223 #endif
224
225 #if HAVE_STRUCT_CONN_S_CONN_IXA
226 #define HAS_CONN_NEW
227 #endif
228
229 #if HAVE_STRUCT_VNODE_V_PATH
230 #define HAS_V_PATH
231 #endif
232
233 #if HAVE_DECL_VSOCK
234 #define HAS_VSOCK
235 #endif
236
237 #if HAVE_STRUCT_AIO_REQ
238 #define HAS_AIO_REQ_STRUCT
239 #endif
240
241 #if HAVE_SYS_RGM_H
242 #define HAS_SYS_RGM_H
243 #endif
244
245 #if HAVE_RPC_RPC_TAGS_H
246 #define HAS_RPC_RPC_TAGS_H
247 #endif
248
249 #if HAVE_DECL_DUP2
250 #define HAS_DUP2
251 #endif
252
253 #if HAVE_DECL_CLOSEFROM
254 #define HAS_CLOSEFROM
255 #endif
256
257 #endif