Windows: define AFS_IHANDLE_PIO_ENV for ihandle pio
[openafs.git] / src / config / afsconfig-windows.h
1 /* src/config/afsconfig.h.in.  Generated automatically from configure.in by autoheader.  */
2 /* Modified for Win2000 build*/
3
4 /* Define if on AIX 3.
5    System headers sometimes define this.
6    We just want to avoid a redefinition error message.  */
7 #ifndef _ALL_SOURCE
8 #undef _ALL_SOURCE
9 #endif
10
11 /* Define to empty if the keyword does not work.  */
12 #undef const
13
14 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
15 #undef HAVE_SYS_WAIT_H
16
17 /* Define as __inline if that's what the C compiler calls it.  */
18 #define inline __inline
19
20 /* Define if on MINIX.  */
21 #undef _MINIX
22
23 /* Define to `int' if <sys/types.h> doesn't define.  */
24 #undef pid_t
25
26 /* Define if the system does not provide POSIX.1 features except
27    with this defined.  */
28 #undef _POSIX_1_SOURCE
29
30 /* Define if you need to in order for stat and other things to work.  */
31 #undef _POSIX_SOURCE
32
33 /* Define as the return type of signal handlers (int or void).  */
34 #undef RETSIGTYPE
35
36
37 /* The size of `long', as computed by sizeof. */
38 #define SIZEOF_LONG 4
39
40 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
41 //#undef size_t unsigned int
42
43 /* Define if you have the ANSI C header files.  */
44 #undef STDC_HEADERS
45
46 /* Define if lex declares yytext as a char * by default, not a char[].  */
47 #undef YYTEXT_POINTER
48
49 /* Define if you have the connect function.  */
50 #undef HAVE_CONNECT
51
52 /* Define if you have the error_message function.  */
53 #define HAVE_ERROR_MESSAGE
54
55 /* Define if you have the gethostbyname function.  */
56 #define HAVE_GETHOSTBYNAME
57
58 /* Define if you have the res_search function.  */
59 #undef HAVE_RES_SEARCH
60
61 /* Define if you have the socket function.  */
62 #define HAVE_SOCKET
63
64 /* Define if you have the <direct.h> header file.  */
65 #undef HAVE_DIRECT_H
66
67 /* Define if you have the <dirent.h> header file.  */
68 #define HAVE_DIRENT_H 1
69
70 /* Define if you have the <fcntl.h> header file.  */
71 #define HAVE_FCNTL_H
72
73 /* Define if you have the <mntent.h> header file.  */
74 #undef HAVE_MNTENT_H
75
76 /* Define if you have the <ndir.h> header file.  */
77 #undef HAVE_NDIR_H
78
79 /* Define if you have the <netdb.h> header file.  */
80 #undef HAVE_NETDB_H
81
82 /* Define if you have the <netinet/in.h> header file.  */
83 #undef HAVE_NETINET_IN_H
84
85 /* Define if you have the <security/pam_modules.h> header file.  */
86 #undef HAVE_SECURITY_PAM_MODULES_H
87
88 /* Define if you have the <signal.h> header file.  */
89 #define HAVE_SIGNAL_H
90
91 /* Define if you have the <stdlib.h> header file.  */
92 #define HAVE_STDLIB_H
93
94 /* Define if you have the <string.h> header file.  */
95 #define HAVE_STRING_H
96
97 /* Define if you have the <strings.h> header file.  */
98 #undef HAVE_STRINGS_H
99
100 /* Define if you have the <sys/dir.h> header file.  */
101 #undef HAVE_SYS_DIR_H
102
103 /* Define if you have the <sys/fcntl.h> header file.  */
104 #define HAVE_SYS_FCNTL_H
105
106 /* Define if you have the <sys/file.h> header file.  */
107 #undef HAVE_SYS_FILE_H
108
109 /* Define if you have the <sys/fs_types.h> header file.  */
110 #undef HAVE_SYS_FS_TYPES_H
111
112 /* Define if you have the <sys/mntent.h> header file.  */
113 #undef HAVE_SYS_MNTENT_H
114
115 /* Define if you have the <sys/mnttab.h> header file.  */
116 #undef HAVE_SYS_MNTTAB_H
117
118 /* Define if you have the <sys/mount.h> header file.  */
119 #undef HAVE_SYS_MOUNT_H
120
121 /* Define if you have the <sys/ndir.h> header file.  */
122 #undef HAVE_SYS_NDIR_H
123
124 /* Define if you have the <sys/param.h> header file.  */
125 #undef HAVE_SYS_PARAM_H
126
127 /* Define if you have the <sys/stat.h> header file. */
128 #define HAVE_SYS_STAT_H 1
129
130 /* Define if you have the <sys/time.h> header file.  */
131 #undef HAVE_SYS_TIME_H
132
133 /* Define if you have the <sys/vfs.h> header file.  */
134 #undef HAVE_SYS_VFS_H
135
136 /* Define if you have the <termios.h> header file.  */
137 #undef HAVE_TERMIOS_H
138
139 /* Define if you have the <unistd.h> header file.  */
140 #undef HAVE_UNISTD_H
141
142 /* Define if you have the <windows.h> header file.  */
143 #define HAVE_WINDOWS_H
144
145 /* Define if you have the <winsock2.h> header file.  */
146 #define HAVE_WINSOCK2_H
147
148 #define HAVE_WINSOCK
149
150 /* Name of package */
151 #undef PACKAGE
152
153 /* Version number of package */
154 #undef VERSION
155
156 /* define if target is big endian */
157 #undef WORDS_BIGENDIAN
158
159 /* define if sys/param.h defines the endiness */
160 #undef ENDIANESS_IN_SYS_PARAM_H
161
162 /* define if struct ufsvfs has vfs_dqrwlock */
163 #undef HAVE_VFS_DQRWLOCK
164
165 /* define if you have pread() and pwrite() */
166 #undef HAVE_PIO
167
168 #undef PACKAGE
169 #undef VERSION
170
171 #undef HAVE_CONNECT
172 //#undef HAVE_GETHOSTBYNAME
173 #undef HAVE_RES_SEARCH
174 //#undef HAVE_SOCKET
175
176 #ifdef ENDIANESS_IN_SYS_PARAM_H
177 # ifndef KERNEL
178 #  include <sys/types.h>
179 #  include <sys/param.h>
180 #  if BYTE_ORDER == BIG_ENDIAN
181 #  define WORDS_BIGENDIAN 1
182 #  endif
183 # endif
184 #endif
185
186 #define AFS_NAMEI_ENV 1
187
188 #undef FAST_RESTART
189 #undef BITMAP_LATER
190
191 #undef INODE_SETATTR_NOT_VOID
192 #undef STRUCT_INODE_HAS_I_BYTES
193 #undef STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK
194
195 /* glue for RedHat kernel bug */
196 #undef ENABLE_REDHAT_BUILDSYS
197
198 #if defined(ENABLE_REDHAT_BUILDSYS) && defined(KERNEL) && defined(REDHAT_FIX)
199 #include "redhat-fix.h"
200 #endif
201
202 /* Define if rename() does not unlink an existing file */
203 #define RENAME_DOES_NOT_UNLINK 1
204
205 /* Windows does not provide socklen_t prior to WDK 6.0 */
206 #define HAVE_SOCKLEN_T 1
207 typedef int socklen_t;
208
209 #if (_MSC_VER < 1400)
210 typedef int errno_t;
211 #endif
212
213 /*
214  * UNIX mode symbol definitions
215  */
216 #ifndef S_IRWXU
217 #define S_IRWXU 00700
218 #define S_IRUSR 00400
219 #define S_IWUSR 00200
220 #define S_IXUSR 00100
221 #endif
222
223 #ifndef S_IRWXG
224 #define S_IRWXG 00070
225 #define S_IRGRP 00040
226 #define S_IWGRP 00020
227 #define S_IXGRP 00010
228 #endif
229
230 #ifndef S_IRWXO
231 #define S_IRWXO 00007
232 #define S_IROTH 00004
233 #define S_IWOTH 00002
234 #define S_IXOTH 00001
235 #endif
236
237 #ifndef S_ISUID
238 #define S_ISUID  0004000
239 #define S_ISGID  0002000
240 #define S_ISVTX  0001000
241 #endif
242
243 #define HAVE_CONIO_H 1
244
245 #define HAVE_FSYNC 1
246
247 /* param.h overrides lstat, so stop roken getting involved */
248 #define HAVE_LSTAT 1
249
250 #define HAVE_STRCASECMP 1
251
252 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
253
254 #define HAVE_DECL_H_ERRNO 1
255
256 #define HAVE_STRUCT_ADDRINFO 1
257 #define HAVE_GETADDRINFO 1
258 #define HAVE_GETNAMEINFO 1
259 #define HAVE_FREENAMEINFO 1
260 #define HAVE_FREEADDRINFO 1
261 #define HAVE_GAI_STRERROR 1
262 #define HAVE_STRERROR 1
263 #define HAVE_STRLWR 1
264 #define HAVE_STRDUP 1
265 #define HAVE_GETHOSTNAME 1
266 #define HAVE_STRFTIME 1
267 #define HAVE_GETCWD 1
268 #define HAVE_STRUPR 1
269 #define HAVE_UINTPTR_T 1
270 #define HAVE_TIMEGM 1
271
272 /* Build against Heimdal */
273 #define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
274 #define HAVE_KRB5_CREDS_SESSION 1
275
276 /* Build afsroken.dll as a dynamic library */
277 #define ROKEN_LIB_DYNAMIC 1
278
279 #define MAX(a,b) (((a) > (b)) ? (a) : (b))
280 #define MIN(a,b) (((a) < (b)) ? (a) : (b))