]> git.sur5r.net Git - openldap/blob - portable.h.nt
18efd3ee026250f5268707a75f136c9a73741307
[openldap] / portable.h.nt
1 /* include/portable.h.nt -- manually updated of MS NT (MS VC5) */
2 /* synced with portable.h.in 1.21 */
3 /*
4 Copyright 1998 The OpenLDAP Foundation, Redwood City, California, USA
5 All rights reserved.
6
7 Redistribution and use in source and binary forms are permitted only
8 as authorized by the OpenLDAP Public License.  A copy of this
9 license is available at http://www.OpenLDAP.org/license.html or
10 in file LICENSE in the top-level directory of the distribution.
11
12 This work is derived from the University of Michigan LDAP v3.3
13 distribution.  Information concerning is available at
14     http://www.umich.edu/~dirsvcs/ldap/ldap.html.
15
16 This work also contains materials derived from public sources.
17
18 ---
19
20 Portions Copyright (c) 1992-1996 Regents of the University of Michigan.
21 All rights reserved.
22
23 Redistribution and use in source and binary forms are permitted
24 provided that this notice is preserved and that due credit is given
25 to the University of Michigan at Ann Arbor. The name of the University
26 may not be used to endorse or promote products derived from this 
27 software without specific prior written permission. This software
28 is provided ``as is'' without express or implied warranty.
29  
30 */
31
32 #ifndef _LDAP_PORTABLE_H
33 #define _LDAP_PORTABLE_H
34
35 /* MSVC5 doesn't define _STDC_ but supports _STDC_ features */
36 #define __NEED_PROTOTYPES 1
37 #define HAVE_STDARG 1
38
39 /* we installed Henry Spencer's REGEX */
40 #define HAVE_REGEX_H 1
41
42 /* win32 specific stuff */
43 #define strcasecmp      stricmp
44 #define strncasecmp     strnicmp
45 #define strdup          _strdup
46
47 /* define type for caddr_t */
48 typedef char * caddr_t;
49
50 /* we have spawnlp instead of fork/execlp */
51 #define HAVE_SPAWNLP 1
52
53 /* we have winsock2 */
54 #define HAVE_WINSOCK2 1
55
56 /* we have winsock */
57 #define HAVE_WINSOCK 1
58
59 /* we have <conio.h> */
60 #define HAVE_CONIO_H 1
61
62 /* we have <io.h> */
63 #define HAVE_IO_H 1
64
65 /* we have <process.h> */
66 #define HAVE_PROCESS_H 1
67
68 /* --------------------------------------------------- */
69
70 /* Define if on AIX 3.
71    System headers sometimes define this.
72    We just want to avoid a redefinition error message.  */
73 #ifndef _ALL_SOURCE
74 /* #undef _ALL_SOURCE */
75 #endif
76
77 /* Define to empty if the keyword does not work.  */
78 /* #undef const */
79
80 /* Define to the type of elements in the array set by `getgroups'.
81    Usually this is either `int' or `gid_t'.  */
82 /* #undef GETGROUPS_T */
83
84 /* Define to `int' if <sys/types.h> doesn't define.  */
85 #define gid_t long
86
87 /* Define if you don't have vprintf but do have _doprnt.  */
88 /* #undef HAVE_DOPRNT */
89
90 /* Define if your struct stat has st_blksize.  */
91 /* #undef HAVE_ST_BLKSIZE */
92
93 /* Define if you have the strftime function.  */
94 #define HAVE_STRFTIME 1
95
96 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
97 /* #undef HAVE_SYS_WAIT_H */
98
99 /* Define if you have the vprintf function.  */
100 #define HAVE_VPRINTF 1
101
102 /* Define if you have the wait3 system call.  */
103 /* #undef HAVE_WAIT3 */
104
105 /* Define if on MINIX.  */
106 /* #undef _MINIX */
107
108 /* Define to `int' if <sys/types.h> doesn't define.  */
109 #define mode_t int
110
111 /* Define to `long' if <sys/types.h> doesn't define.  */
112 /* #undef off_t */
113
114 /* Define to `int' if <sys/types.h> doesn't define.  */
115 #define pid_t int
116
117 /* Define if the system does not provide POSIX.1 features except
118    with this defined.  */
119 /* #undef _POSIX_1_SOURCE */
120
121 /* Define if you need to in order for stat and other things to work.  */
122 /* #undef _POSIX_SOURCE */
123
124 /* Define as the return type of signal handlers (int or void).  */
125 #define RETSIGTYPE void
126
127 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
128 /* #undef size_t */
129
130 /* Define if you have the ANSI C header files.  */
131 #define STDC_HEADERS 1
132
133 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
134 /* #undef TIME_WITH_SYS_TIME */
135
136 /* Define if your <sys/time.h> declares struct tm.  */
137 /* #undef TM_IN_SYS_TIME */
138
139 /* Define to `int' if <sys/types.h> doesn't define.  */
140 #define uid_t long
141
142 /* define this if needed to get reentrant functions */
143 /* #undef _REENTRANT */
144
145 /* define this if needed to get threadsafe functions */
146 /* #undef _THREAD_SAFE */
147
148 /* define this if needed to get threadsafe functions */
149 /* #undef _THREADSAFE */
150
151 /* define this if toupper() requires tolower() */
152 #define C_UPPER_LOWER
153
154 /* define this if sys_errlist is not defined in stdio.h or errno.h */
155 /* #undef DECL_SYS_ERRLIST */
156
157 /* define if you have berkeley db */
158 /* #undef HAVE_BERKELEY_DB */
159
160 /* define if you have berkeley db2 */
161 /* #undef HAVE_BERKELEY_DB2 */
162
163 /* define if you have crypt */
164 /* #undef HAVE_CRYPT */
165
166 /* define if you have DSAP */
167 /* #undef HAVE_DSAP */
168
169 /* define if you have GDBM */
170 /* #undef HAVE_GDBM */
171
172 /* define if you have ISODE */
173 /* #undef HAVE_ISODE */
174
175 /* define if you have Kerberos */
176 /* #undef HAVE_KERBEROS */
177
178 /* define if you have LinuxThreads */
179 /* #undef HAVE_LINUX_THREADS */
180
181 /* define if you have Sun LWP (SunOS style) */
182 /* #undef HAVE_LWP */
183
184 /* define if you have -lncurses */
185 /* #undef HAVE_NCURSES */
186
187 /* define if you have NDBM */
188 /* #undef HAVE_NDBM */
189
190 /* define if you have Mach CThreads */
191 /* #undef HAVE_MACH_CTHREADS */
192
193 /* define if you have PP */
194 /* #undef HAVE_PP */
195
196 /* define if you have a preemptive POSIX Threads implementation */
197 /* #undef HAVE_PREEMPTIVE_PTHREADS */
198
199 /* define if you have POSIX Threads */
200 /* #undef HAVE_PTHREADS */
201
202 /* define if your POSIX Threads implementatin is circa Final Draft */
203 /* #undef HAVE_PTHREADS_FINAL */
204
205 /* define if your POSIX Threads implementatin is circa Draft 4 */
206 /* #undef HAVE_PTHREADS_D4 */
207
208 /* define if you have sched_yield() */
209 #ifdef __notdef__
210 /* see second sched_yield define */
211 /* #undef HAVE_SCHED_YIELD */
212 #endif
213
214 /* define if you have setproctitle() */
215 #undef HAVE_SETPROCTITLE
216
217 /* define if you have -lwrap */
218 /* #undef HAVE_TCPD */
219
220 /* define if you have -ltermcap */
221 /* #undef HAVE_TERMCAP */
222
223 /* define if you have Solaris LWP Threads */
224 /* #undef HAVE_THR */
225
226 /* define if you have XTPP */
227 /* #undef HAVE_XTPP */
228
229 /* define this for connectionless LDAP support */
230 /* #undef LDAP_CONNECTIONLESS */
231
232 /* define this to add debugging code */
233 #define LDAP_DEBUG 1
234
235 /* define this to remove -lldap cache support */
236 /* #undef LDAP_NOCACHE */
237
238 /* define this for LDAP process title support */
239 /* #undef LDAP_PROCTITLE */
240
241 /* define this for LDAP User Interface support */
242 /* #undef LDAP_LIBUI */
243
244 /* define this to use DBBTREE w/ LDBM backend */
245 /* #undef LDBM_USE_DBBTREE */
246
247 /* define this to use DBHASH w/ LDBM backend */
248 /* #undef LDBM_USE_DBHASH */
249
250 /* define this if you want no termcap support */
251 #define NO_TERMCAP 1
252
253 /* define this if you want no thread support */
254 #define NO_THREADS 1
255
256 /* define this if the thread package is preemptive */
257 #define PREEMPTIVE_THREADS 1
258
259 /* define this for ACL Group support */
260 #define SLAPD_ACLGROUPS
261
262 /* define this for crypt(3) password support */
263 /* #undef SLAPD_CRYPT */
264
265 /* define this to use SLAPD LDBM backend */
266 /* #undef SLAPD_LDBM */
267
268 /* define this for MD5 password support */
269 #define SLAPD_MD5 1
270
271 /* define this to use SLAPD passwd backend */
272 /* #undef SLAPD_PASSWD */
273
274 /* define this for phonetic support */
275 /* #undef SLAPD_PHONETIC */
276
277 /* define this for Reverse Lookup support */
278 #define SLAPD_RLOOKUPS 1
279
280 /* define this for SHA1 password support */
281 #define SLAPD_SHA1 1
282
283 /* define this to use SLAPD shell backend */
284 /* #undef SLAPD_SHELL */
285
286 /* These are defined in ldap_features.h */
287 /*
288  LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
289  LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
290 */
291
292 /* The number of bytes in a int.  */ 
293 #define SIZEOF_INT 4
294
295 /* The number of bytes in a long.  */ 
296 #define SIZEOF_LONG 4
297   
298 /* The number of bytes in a short.  */
299 #define SIZEOF_SHORT 2
300
301 /* Define if you have the bcopy function.  */
302 /* #undef HAVE_BCOPY */
303
304 /* Define if you have the flock function.  */
305 /* #undef HAVE_FLOCK */
306
307 /* Define if you have the getdtablesize function.  */
308 /* #undef HAVE_GETDTABLESIZE */
309
310 /* Define if you have the gethostname function.  */
311 #define HAVE_GETHOSTNAME 1
312
313 /* define if you have the getopt function */
314 /* #undef HAVE_GETOPT */
315
316 /* Define if you have the getpwuid function.  */
317 /* #undef HAVE_GETPWUID */
318
319 /* Define if you have the gettimeofday function.  */
320 /* #undef HAVE_GETTIMEOFDAY */
321
322 /* Define if you have the lockf function.  */
323 /* #undef HAVE_LOCKF */
324
325 /* Define if you have the memcpy function.  */
326 #define HAVE_MEMCPY 1
327
328 /* Define if you have the memmove function.  */
329 #define HAVE_MEMMOVE 1
330
331 /* Define if you have the mkstemp function.  */
332 /* #undef HAVE_MKSTEMP */
333
334 /* Define if you have the mktime function.  */
335 #define HAVE_MKTIME 1
336
337 /* Define if you have the pthread_attr_create function.  */
338 /* #undef HAVE_PTHREAD_ATTR_CREATE */
339
340 /* Define if you have the pthread_attr_delete function.  */
341 /* #undef HAVE_PTHREAD_ATTR_DELETE */
342
343 /* Define if you have the pthread_attr_destroy function.  */
344 /* #undef HAVE_PTHREAD_ATTR_DESTROY */
345
346 /* Define if you have the pthread_attr_init function.  */
347 /* #undef HAVE_PTHREAD_ATTR_INIT */
348
349 /* Define if you have the pthread_attr_setdetach_np function.  */
350 /* #undef HAVE_PTHREAD_ATTR_SETDETACH_NP */
351
352 /* Define if you have the pthread_attr_setdetachstate function.  */
353 /* #undef HAVE_PTHREAD_ATTR_SETDETACHSTATE */
354
355 /* Define if you have the pthread_kill function.  */
356 /* #undef HAVE_PTHREAD_KILL */
357
358 /* Define if you have the pthread_setconcurrency function.  */
359 /* #undef HAVE_PTHREAD_SETCONCURRENCY */
360
361 /* Define if you have the pthread_yield function.  */
362 /* #undef HAVE_PTHREAD_YIELD */
363
364 /* Define if you have the res_search function.  */
365 /* #undef HAVE_RES_SEARCH */
366
367 /* Define if you have the sched_yield function.  */
368 /* #undef HAVE_SCHED_YIELD */
369
370 /* Define if you have the select function.  */
371 #define HAVE_SELECT 1
372
373 /* Define if you have the setpwfile function.  */
374 /* #undef HAVE_SETPWFILE */
375
376 /* Define if you have the setsid function.  */
377 /* #undef HAVE_SETSID */
378
379 /* Define if you have the signal function.  */
380 #define HAVE_SIGNAL 1
381
382 /* Define if you have the sigset function.  */
383 /* #undef HAVE_SIGSET */
384
385 /* Define if you have the snprintf function.  */
386 /* #undef HAVE_SNPRINTF */
387
388 /* Define if you have the socket function.  */
389 #define HAVE_SOCKET 1
390
391 /* Define if you have the strdup function.  */
392 #define HAVE_STRDUP 1
393
394 /* Define if you have the strerror function.  */
395 #define HAVE_STRERROR 1
396
397 /* Define if you have the strpbrk function.  */
398 #define HAVE_STRPBRK 1
399
400 /* Define if you have the strrchr function.  */
401 #define HAVE_STRRCHR 1
402
403 /* Define if you have the strsep function.  */
404 /* #undef HAVE_STRSEP */
405
406 /* Define if you have the strstr function.  */
407 #define HAVE_STRSTR 1
408
409 /* Define if you have the strtod function.  */
410 #define HAVE_STRTOD 1
411
412 /* Define if you have the strtok function.  */
413 #define HAVE_STRTOK 1
414
415 /* Define if you have the strtol function.  */
416 #define HAVE_STRTOL 1
417
418 /* Define if you have the strtoul function.  */
419 #define HAVE_STRTOUL 1
420
421 /* Define if you have the sysconf function.  */
422 /* #undef HAVE_SYSCONF */
423
424 /* Define if you have the tempnam function.  */
425 /* #undef HAVE_TEMPNAM */
426
427 /* Define if you have the thr_setconcurrency function.  */
428 /* #undef HAVE_THR_SETCONCURRENCY */
429
430 /* Define if you have the vsnprintf function.  */
431 /* #undef HAVE_VSNPRINTF */
432
433 /* Define if you have the waitpid function.  */
434 #define HAVE_WAITPID 1
435
436 /* Define if you have the <crypt.h> header file.  */
437 /* #undef HAVE_CRYPT_H */
438
439 /* Define if you have the <db.h> header file.  */
440 /* #undef HAVE_DB_H */
441
442 /* Define if you have the <db_185.h> header file.  */
443 /* #undef HAVE_DB_185_H */
444
445 /* Define if you have the <des.h> header file.  */
446 /* #undef HAVE_DES_H */
447
448 /* Define if you have the <dirent.h> header file.  */
449 /* #undef HAVE_DIRENT_H */
450
451 /* Define if you have the <errno.h> header file.  */
452 #define HAVE_ERRNO_H 1
453
454 /* Define if you have the <fcntl.h> header file.  */
455 #define HAVE_FCNTL_H 1
456
457 /* Define if you have the <filio.h> header file.  */
458 /* #undef HAVE_FILIO_H */
459
460 /* Define if you have the <gdbm.h> header file.  */
461 /* #undef HAVE_GDBM_H */
462
463 /* Define if you have the <getopt.h> header file.  */
464 /* #undef HAVE_GETOPT_H */
465
466 /* Define if you have the <kerberosIV/des.h> header file.  */
467 /* #undef HAVE_KERBEROSIV_DES_H */
468
469 /* Define if you have the <kerberosIV/krb.h> header file.  */
470 /* #undef HAVE_KERBEROSIV_KRB_H */
471
472 /* Define if you have the <krb.h> header file.  */
473 /* #undef HAVE_KRB_H */
474
475 /* Define if you have the <libutil.h> header file.  */
476 /* #undef HAVE_LIBUTIL_H */
477
478 /* Define if you have the <limits.h> header file.  */
479 #define HAVE_LIMITS_H 1
480
481 /* Define if you have the <lwp/lwp.h> header file.  */
482 /* #undef HAVE_LWP_LWP_H */
483
484 /* Define if you have the <mach/cthreads.h> header file.  */
485 /* #undef HAVE_MACH_CTHREADS_H */
486
487 /* Define if you have the <malloc.h> header file.  */
488 #define HAVE_MALLOC_H 1
489
490 /* Define if you have the <memory.h> header file.  */
491 /* #define HAVE_MEMORY_H */
492
493 /* Define if you have the <ncurses.h> header file.  */
494 /* #undef HAVE_NCURSES_H */
495
496 /* Define if you have the <ndbm.h> header file.  */
497 /* #undef HAVE_NDBM_H */
498
499 /* Define if you have the <ndir.h> header file.  */
500 /* #undef HAVE_NDIR_H */
501
502 /* Define if you have the <pthread.h> header file.  */
503 /* #undef HAVE_PTHREAD_H */
504
505 /* Define if you have the <pwd.h> header file.  */
506 /* #undef HAVE_PWD_H */
507
508 /* Define if you have the <regex.h> header file.  */
509 /* #undef HAVE_REGEX_H */
510
511 /* Define if you have the <sched.h> header file.  */
512 /* #undef HAVE_SCHED_H */
513
514 /* Define if you have the <sgtty.h> header file.  */
515 /* #undef HAVE_SGTTY_H */
516
517 /* Define if you have the <stdarg.h> header file.  */
518 #define HAVE_STDARG_H 1
519
520 /* Define if you have the <stddef.h> header file.  */
521 #define HAVE_STDDEF_H 1
522
523 /* Define if you have the <string.h> header file.  */
524 #define HAVE_STRING_H 1
525
526 /* Define if you have the <strings.h> header file.  */
527 /* #undef HAVE_STRINGS_H */
528
529 /* Define if you have the <synch.h> header file.  */
530 /* #undef HAVE_SYNCH_H */
531
532 /* Define if you have the <sys/dir.h> header file.  */
533 /* #undef HAVE_SYS_DIR_H */
534
535 /* Define if you have the <sys/errno.h> header file.  */
536 /* #undef HAVE_SYS_ERRNO_H */
537
538 /* Define if you have the <sys/file.h> header file.  */
539 /* #undef HAVE_SYS_FILE_H */
540
541 /* Define if you have the <sys/filio.h> header file.  */
542 /* #undef HAVE_SYS_FILIO_H */
543
544 /* Define if you have the <sys/ioctl.h> header file.  */
545 /* #undef HAVE_SYS_IOCTL_H */
546
547 /* Define if you have the <sys/ndir.h> header file.  */
548 /* #undef HAVE_SYS_NDIR_H */
549
550 /* Define if you have the <sys/param.h> header file.  */
551 /* #undef HAVE_SYS_PARAM_H */
552
553 /* Define if you have the <sys/resource.h> header file.  */
554 /* #undef HAVE_SYS_RESOURCE_H */
555
556 /* Define if you have the <sys/socket.h> header file.  */
557 /* #undef HAVE_SYS_SOCKET_H */
558
559 /* Define if you have the <sys/syslog.h> header file.  */
560 /* #undef HAVE_SYS_SYSLOG_H */
561
562 /* Define if you have the <sys/time.h> header file.  */
563 /* #undef HAVE_SYS_TIME_H */
564
565 /* Define if you have the <sys/types.h> header file.  */
566 #define HAVE_SYS_TYPES_H 1
567
568 /* Define if you have the <syslog.h> header file.  */
569 /* #undef HAVE_SYSLOG_H */
570
571 /* Define if you have the <termcap.h> header file.  */
572 /* #undef HAVE_TERMCAP_H */
573
574 /* Define if you have the <termios.h> header file.  */
575 /* #undef HAVE_TERMIOS_H */
576
577 /* Define if you have the <thread.h> header file.  */
578 /* #undef HAVE_THREAD_H */
579
580 /* Define if you have the <unistd.h> header file.  */
581 /* #undef HAVE_UNISTD_H */
582
583 /* Define if you have the V3 library (-lV3).  */
584 /* #undef HAVE_LIBV3 */
585
586 /* Define if you have the gen library (-lgen).  */
587 /* #undef HAVE_LIBGEN */
588
589 /* Define if you have the inet library (-linet).  */
590 /* #undef HAVE_LIBINET */
591
592 /* Define if you have the net library (-lnet).  */
593 /* #undef HAVE_LIBNET */
594
595 /* Define if you have the nsl library (-lnsl).  */
596 /* #undef HAVE_LIBNSL */
597
598 /* Define if you have the nsl_s library (-lnsl_s).  */
599 /* #undef HAVE_LIBNSL_S */
600
601 /* Define if you have the resolv library (-lresolv).  */
602 /* #undef HAVE_LIBRESOLV */
603
604 /* Define if you have the socket library (-lsocket).  */
605 /* #undef HAVE_LIBSOCKET */
606
607 #ifdef HAVE_STDDEF_H
608 #       include <stddef.h>
609 #endif
610
611 #include "ldap_cdefs.h"
612 #include "ldap_features.h"
613
614 #endif /* _LDAP_PORTABLE_H */