]> git.sur5r.net Git - openldap/blob - include/portable.h.nt
Make sure that four characters, rather than only the first three,
[openldap] / include / portable.h.nt
1 /* include/portable.h.nt -- manually updated of MS NT (MS VC5) */
2 /* synced with portable.h.in 1.24 */
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 this if TIOCGWINSZ is defined in sys/ioctl.h */
158 /* #undef GWINSZ_IN_SYS_IOCTL */
159
160 /* define if you have berkeley db */
161 /* #undef HAVE_BERKELEY_DB */
162
163 /* define if you have berkeley db2 */
164 /* #undef HAVE_BERKELEY_DB2 */
165
166 /* define if you have crypt */
167 /* #undef HAVE_CRYPT */
168
169 /* define if you have DSAP */
170 /* #undef HAVE_DSAP */
171
172 /* define if you have GDBM */
173 /* #undef HAVE_GDBM */
174
175 /* define if you have ISODE */
176 /* #undef HAVE_ISODE */
177
178 /* define if you have Kerberos */
179 /* #undef HAVE_KERBEROS */
180
181 /* define if you have LinuxThreads */
182 /* #undef HAVE_LINUX_THREADS */
183
184 /* define if you have Sun LWP (SunOS style) */
185 /* #undef HAVE_LWP */
186
187 /* define if you have -lncurses */
188 /* #undef HAVE_NCURSES */
189
190 /* define if you have NDBM */
191 /* #undef HAVE_NDBM */
192
193 /* define if you have Mach CThreads */
194 /* #undef HAVE_MACH_CTHREADS */
195
196 /* define if you have POSIX termios */
197 /* #undef HAVE_POSIX_TERMIOS */
198
199 /* define if you have PP */
200 /* #undef HAVE_PP */
201
202 /* define if you have POSIX Threads */
203 /* #undef HAVE_PTHREADS */
204
205 /* define if your POSIX Threads implementatin is circa Final Draft */
206 /* #undef HAVE_PTHREADS_FINAL */
207
208 /* define if your POSIX Threads implementatin is circa Draft 4 */
209 /* #undef HAVE_PTHREADS_D4 */
210
211 /* define if you have ptrdiff_t */
212 #define HAVE_PTRDIFF_T
213
214 /* define if you have sched_yield() */
215 #ifdef __notdef__
216 /* see second sched_yield define */
217 /* #undef HAVE_SCHED_YIELD */
218 #endif
219
220 /* define if you have setproctitle() */
221 #undef HAVE_SETPROCTITLE
222
223 /* define if you have -lwrap */
224 /* #undef HAVE_TCPD */
225
226 /* define if you have -ltermcap */
227 /* #undef HAVE_TERMCAP */
228
229 /* define if you have Solaris LWP Threads */
230 /* #undef HAVE_THR */
231
232 /* define if you have XTPP */
233 /* #undef HAVE_XTPP */
234
235 /* define this if select() implicitly yields in thread environments */
236 #define HAVE_YIELDING_SELECT 1
237
238 /* define this for connectionless LDAP support */
239 /* #undef LDAP_CONNECTIONLESS */
240
241 /* define this to add debugging code */
242 #define LDAP_DEBUG 1
243
244 /* define this to remove -lldap cache support */
245 /* #undef LDAP_NOCACHE */
246
247 /* define this for LDAP process title support */
248 /* #undef LDAP_PROCTITLE */
249
250 /* define this for LDAP User Interface support */
251 /* #undef LDAP_LIBUI */
252
253 /* define this to use DBBTREE w/ LDBM backend */
254 /* #undef LDBM_USE_DBBTREE */
255
256 /* define this to use DBHASH w/ LDBM backend */
257 /* #undef LDBM_USE_DBHASH */
258
259 /* define this if you want no termcap support */
260 #define NO_TERMCAP 1
261
262 /* define this if you want no thread support */
263 #define NO_THREADS 1
264
265 /* define this for ACL Group support */
266 #define SLAPD_ACLGROUPS
267
268 /* define this for crypt(3) password support */
269 /* #undef SLAPD_CRYPT */
270
271 /* define this to use SLAPD LDBM backend */
272 /* #undef SLAPD_LDBM */
273
274 /* define this for MD5 password support */
275 #define SLAPD_MD5 1
276
277 /* define this to use SLAPD passwd backend */
278 /* #undef SLAPD_PASSWD */
279
280 /* define this for phonetic support */
281 /* #undef SLAPD_PHONETIC */
282
283 /* define this for Reverse Lookup support */
284 #define SLAPD_RLOOKUPS 1
285
286 /* define this for SHA1 password support */
287 #define SLAPD_SHA1 1
288
289 /* define this to use SLAPD shell backend */
290 /* #undef SLAPD_SHELL */
291
292 /* These are defined in ldap_features.h */
293 /*
294  LDAP_API_FEATURE_X_OPENLDAP_V2_DNS
295  LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
296 */
297
298 /* The number of bytes in a int.  */ 
299 #define SIZEOF_INT 4
300
301 /* The number of bytes in a long.  */ 
302 #define SIZEOF_LONG 4
303   
304 /* The number of bytes in a short.  */
305 #define SIZEOF_SHORT 2
306
307 /* Define if you have the alarm function.  */
308 /* #undef HAVE_ALARM */
309
310 /* Define if you have the bcopy function.  */
311 /* #undef HAVE_BCOPY */
312
313 /* Define if you have the flock function.  */
314 /* #undef HAVE_FLOCK */
315
316 /* Define if you have the getdtablesize function.  */
317 /* #undef HAVE_GETDTABLESIZE */
318
319 /* Define if you have the gethostname function.  */
320 #define HAVE_GETHOSTNAME 1
321
322 /* define if you have the getopt function */
323 /* #undef HAVE_GETOPT */
324
325 /* Define if you have the getpwuid function.  */
326 /* #undef HAVE_GETPWUID */
327
328 /* Define if you have the gettimeofday function.  */
329 /* #undef HAVE_GETTIMEOFDAY */
330
331 /* Define if you have the lockf function.  */
332 /* #undef HAVE_LOCKF */
333
334 /* Define if you have the memcpy function.  */
335 #define HAVE_MEMCPY 1
336
337 /* Define if you have the memmove function.  */
338 #define HAVE_MEMMOVE 1
339
340 /* Define if you have the mkstemp function.  */
341 /* #undef HAVE_MKSTEMP */
342
343 /* Define if you have the pow function.  */
344 /* #undef HAVE_POW */
345
346 /* Define if you have the pthread_attr_create function.  */
347 /* #undef HAVE_PTHREAD_ATTR_CREATE */
348
349 /* Define if you have the pthread_attr_delete function.  */
350 /* #undef HAVE_PTHREAD_ATTR_DELETE */
351
352 /* Define if you have the pthread_attr_destroy function.  */
353 /* #undef HAVE_PTHREAD_ATTR_DESTROY */
354
355 /* Define if you have the pthread_attr_init function.  */
356 /* #undef HAVE_PTHREAD_ATTR_INIT */
357
358 /* Define if you have the pthread_attr_setdetach_np function.  */
359 /* #undef HAVE_PTHREAD_ATTR_SETDETACH_NP */
360
361 /* Define if you have the pthread_attr_setdetachstate function.  */
362 /* #undef HAVE_PTHREAD_ATTR_SETDETACHSTATE */
363
364 /* Define if you have the pthread_kill function.  */
365 /* #undef HAVE_PTHREAD_KILL */
366
367 /* Define if you have the pthread_setconcurrency function.  */
368 /* #undef HAVE_PTHREAD_SETCONCURRENCY */
369
370 /* Define if you have the pthread_yield function.  */
371 /* #undef HAVE_PTHREAD_YIELD */
372
373 /* Define if you have the res_search function.  */
374 /* #undef HAVE_RES_SEARCH */
375
376 /* Define if you have the sched_yield function.  */
377 /* #undef HAVE_SCHED_YIELD */
378
379 /* Define if you have the select function.  */
380 #define HAVE_SELECT 1
381
382 /* Define if you have the setpwfile function.  */
383 /* #undef HAVE_SETPWFILE */
384
385 /* Define if you have the setsid function.  */
386 /* #undef HAVE_SETSID */
387
388 /* Define if you have the signal function.  */
389 #define HAVE_SIGNAL 1
390
391 /* Define if you have the sigset function.  */
392 /* #undef HAVE_SIGSET */
393
394 /* Define if you have the snprintf function.  */
395 /* #undef HAVE_SNPRINTF */
396
397 /* Define if you have the socket function.  */
398 #define HAVE_SOCKET 1
399
400 /* Define if you have the strdup function.  */
401 #define HAVE_STRDUP 1
402
403 /* Define if you have the strerror function.  */
404 #define HAVE_STRERROR 1
405
406 /* Define if you have the strpbrk function.  */
407 #define HAVE_STRPBRK 1
408
409 /* Define if you have the strrchr function.  */
410 #define HAVE_STRRCHR 1
411
412 /* Define if you have the strsep function.  */
413 /* #undef HAVE_STRSEP */
414
415 /* Define if you have the strstr function.  */
416 #define HAVE_STRSTR 1
417
418 /* Define if you have the strtok function.  */
419 #define HAVE_STRTOK 1
420
421 /* Define if you have the strtol function.  */
422 #define HAVE_STRTOL 1
423
424 /* Define if you have the strtoul function.  */
425 #define HAVE_STRTOUL 1
426
427 /* Define if you have the sysconf function.  */
428 /* #undef HAVE_SYSCONF */
429
430 /* Define if you have the tempnam function.  */
431 /* #undef HAVE_TEMPNAM */
432
433 /* Define if you have the thr_setconcurrency function.  */
434 /* #undef HAVE_THR_SETCONCURRENCY */
435
436 /* Define if you have the vsnprintf function.  */
437 /* #undef HAVE_VSNPRINTF */
438
439 /* Define if you have the waitpid function.  */
440 #define HAVE_WAITPID 1
441
442 /* Define if you have the <crypt.h> header file.  */
443 /* #undef HAVE_CRYPT_H */
444
445 /* Define if you have the <db.h> header file.  */
446 /* #undef HAVE_DB_H */
447
448 /* Define if you have the <db_185.h> header file.  */
449 /* #undef HAVE_DB_185_H */
450
451 /* Define if you have the <des.h> header file.  */
452 /* #undef HAVE_DES_H */
453
454 /* Define if you have the <dirent.h> header file.  */
455 /* #undef HAVE_DIRENT_H */
456
457 /* Define if you have the <errno.h> header file.  */
458 #define HAVE_ERRNO_H 1
459
460 /* Define if you have the <fcntl.h> header file.  */
461 #define HAVE_FCNTL_H 1
462
463 /* Define if you have the <filio.h> header file.  */
464 /* #undef HAVE_FILIO_H */
465
466 /* Define if you have the <gdbm.h> header file.  */
467 /* #undef HAVE_GDBM_H */
468
469 /* Define if you have the <getopt.h> header file.  */
470 /* #undef HAVE_GETOPT_H */
471
472 /* Define if you have the <kerberosIV/des.h> header file.  */
473 /* #undef HAVE_KERBEROSIV_DES_H */
474
475 /* Define if you have the <kerberosIV/krb.h> header file.  */
476 /* #undef HAVE_KERBEROSIV_KRB_H */
477
478 /* Define if you have the <krb.h> header file.  */
479 /* #undef HAVE_KRB_H */
480
481 /* Define if you have the <libutil.h> header file.  */
482 /* #undef HAVE_LIBUTIL_H */
483
484 /* Define if you have the <limits.h> header file.  */
485 #define HAVE_LIMITS_H 1
486
487 /* Define if you have the <lwp/lwp.h> header file.  */
488 /* #undef HAVE_LWP_LWP_H */
489
490 /* Define if you have the <mach/cthreads.h> header file.  */
491 /* #undef HAVE_MACH_CTHREADS_H */
492
493 /* Define if you have the <malloc.h> header file.  */
494 #define HAVE_MALLOC_H 1
495
496 /* Define if you have the <memory.h> header file.  */
497 /* #define HAVE_MEMORY_H */
498
499 /* Define if you have the <ncurses.h> header file.  */
500 /* #undef HAVE_NCURSES_H */
501
502 /* Define if you have the <ndbm.h> header file.  */
503 /* #undef HAVE_NDBM_H */
504
505 /* Define if you have the <ndir.h> header file.  */
506 /* #undef HAVE_NDIR_H */
507
508 /* Define if you have the <psap.h> header file.  */
509 /* #undef HAVE_PSAP_H */
510
511 /* Define if you have the <pthread.h> header file.  */
512 /* #undef HAVE_PTHREAD_H */
513
514 /* Define if you have the <pwd.h> header file.  */
515 /* #undef HAVE_PWD_H */
516
517 /* Define if you have the <regex.h> header file.  */
518 /* #undef HAVE_REGEX_H */
519
520 /* Define if you have the <sched.h> header file.  */
521 /* #undef HAVE_SCHED_H */
522
523 /* Define if you have the <sgtty.h> header file.  */
524 /* #undef HAVE_SGTTY_H */
525
526 /* Define if you have the <stdarg.h> header file.  */
527 #define HAVE_STDARG_H 1
528
529 /* Define if you have the <stddef.h> header file.  */
530 #define HAVE_STDDEF_H 1
531
532 /* Define if you have the <string.h> header file.  */
533 #define HAVE_STRING_H 1
534
535 /* Define if you have the <strings.h> header file.  */
536 /* #undef HAVE_STRINGS_H */
537
538 /* Define if you have the <synch.h> header file.  */
539 /* #undef HAVE_SYNCH_H */
540
541 /* Define if you have the <sys/dir.h> header file.  */
542 /* #undef HAVE_SYS_DIR_H */
543
544 /* Define if you have the <sys/errno.h> header file.  */
545 /* #undef HAVE_SYS_ERRNO_H */
546
547 /* Define if you have the <sys/file.h> header file.  */
548 /* #undef HAVE_SYS_FILE_H */
549
550 /* Define if you have the <sys/filio.h> header file.  */
551 /* #undef HAVE_SYS_FILIO_H */
552
553 /* Define if you have the <sys/ioctl.h> header file.  */
554 /* #undef HAVE_SYS_IOCTL_H */
555
556 /* Define if you have the <sys/ndir.h> header file.  */
557 /* #undef HAVE_SYS_NDIR_H */
558
559 /* Define if you have the <sys/param.h> header file.  */
560 /* #undef HAVE_SYS_PARAM_H */
561
562 /* Define if you have the <sys/resource.h> header file.  */
563 /* #undef HAVE_SYS_RESOURCE_H */
564
565 /* Define if you have the <sys/socket.h> header file.  */
566 /* #undef HAVE_SYS_SOCKET_H */
567
568 /* Define if you have the <sys/syslog.h> header file.  */
569 /* #undef HAVE_SYS_SYSLOG_H */
570
571 /* Define if you have the <sys/time.h> header file.  */
572 /* #undef HAVE_SYS_TIME_H */
573
574 /* Define if you have the <sys/types.h> header file.  */
575 #define HAVE_SYS_TYPES_H 1
576
577 /* Define if you have the <syslog.h> header file.  */
578 /* #undef HAVE_SYSLOG_H */
579
580 /* Define if you have the <termcap.h> header file.  */
581 /* #undef HAVE_TERMCAP_H */
582
583 /* Define if you have the <termios.h> header file.  */
584 /* #undef HAVE_TERMIOS_H */
585
586 /* Define if you have the <thread.h> header file.  */
587 /* #undef HAVE_THREAD_H */
588
589 /* Define if you have the <unistd.h> header file.  */
590 /* #undef HAVE_UNISTD_H */
591
592 /* Define if you have the V3 library (-lV3).  */
593 /* #undef HAVE_LIBV3 */
594
595 /* Define if you have the gen library (-lgen).  */
596 /* #undef HAVE_LIBGEN */
597
598 /* Define if you have the inet library (-linet).  */
599 /* #undef HAVE_LIBINET */
600
601 /* Define if you have the net library (-lnet).  */
602 /* #undef HAVE_LIBNET */
603
604 /* Define if you have the nsl library (-lnsl).  */
605 /* #undef HAVE_LIBNSL */
606
607 /* Define if you have the nsl_s library (-lnsl_s).  */
608 /* #undef HAVE_LIBNSL_S */
609
610 /* Define if you have the resolv library (-lresolv).  */
611 /* #undef HAVE_LIBRESOLV */
612
613 /* Define if you have the socket library (-lsocket).  */
614 /* #undef HAVE_LIBSOCKET */
615
616 #ifdef HAVE_STDDEF_H
617 #       include <stddef.h>
618 #endif
619
620 #include "ldap_cdefs.h"
621 #include "ldap_features.h"
622
623 #endif /* _LDAP_PORTABLE_H */