1/*** 2 *** config.h.in, generated by mkconfig.pl: 3 *** 4 *** (config.h.in.in 5 *** + ../config.h.in) 6 *** . config.h.in.footer 7 *** --> config.h.in 8 *** 9 *** ***** DO NOT ALTER THIS FILE!!! ***** 10 *** 11 *** Changes to this file will be overwritten by automatic script runs. 12 *** Changes should be made to the config.h.in.in & config.h.in.footer 13 *** files instead. 14 ***/ 15 16/* config.h.in. Generated from configure.in by autoheader. */ 17 18/* Define this to a NULL terminated list of allowed path prefixes (for 19 directories) and paths to files the CVS server will allow configuration to 20 be read from when specified from the command line. */ 21#undef ALLOW_CONFIG_OVERRIDE 22 23/* Enable AUTH_CLIENT_SUPPORT to enable pserver as a remote access method in 24 the CVS client (default) */ 25#define AUTH_CLIENT_SUPPORT 1 26 27/* Define if you want to use the password authenticated server. */ 28#undef AUTH_SERVER_SUPPORT 29 30/* Define if you want CVS to be able to be a remote repository client. */ 31#define CLIENT_SUPPORT 32 33/* Define to 1 if the `closedir' function returns void instead of `int'. */ 34#undef CLOSEDIR_VOID 35 36/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP 37 systems. This function is required for `alloca.c' support on those systems. 38 */ 39#undef CRAY_STACKSEG_END 40 41/* define if cross compiling */ 42#undef CROSS_COMPILING 43 44/* The CVS admin command is restricted to the members of the group 45 CVS_ADMIN_GROUP. If this group does not exist, all users are allowed to run 46 CVS admin. To disable the CVS admin command for all users, create an empty 47 CVS_ADMIN_GROUP by running configure with the --with-cvs-admin-group= 48 option. To disable access control for CVS admin, run configure with the 49 --without-cvs-admin-group option in order to comment out the define below. 50 */ 51#undef CVS_ADMIN_GROUP 52 53/* When committing a permanent change, CVS and RCS make a log entry of who 54 committed the change. If you are committing the change logged in as "root" 55 (not under "su" or other root-priv giving program), CVS/RCS cannot 56 determine who is actually making the change. As such, by default, CVS 57 prohibits changes committed by users logged in as "root". You can disable 58 checking by passing the "--enable-rootcommit" option to configure or by 59 commenting out the lines below. */ 60#undef CVS_BADROOT 61 62/* Define to 1 if using `alloca.c'. */ 63#undef C_ALLOCA 64 65/* Define if there is a member named d_ino in the struct describing directory 66 headers. */ 67#undef D_INO_IN_DIRENT 68 69/* The default editor to use, if one does not specify the "-e" option to cvs, 70 or does not have an EDITOR environment variable. If this is not set to an 71 absolute path to an executable, use the shell to find where the editor 72 actually is. This allows sites with /usr/bin/vi or /usr/ucb/vi to work 73 equally well (assuming that their PATH is reasonable). */ 74#define EDITOR_DFLT "notepad" 75 76/* Define to 1 if translation of program messages to the user's native 77 language is requested. */ 78#undef ENABLE_NLS 79 80/* Define to enable encryption support. */ 81#undef ENCRYPTION 82 83/* Define as good substitute value for EOVERFLOW. */ 84#define EOVERFLOW EINVAL 85 86/* Define if this executable will be running on case insensitive file systems. 87 In the client case, this means that it will request that the server pretend 88 to be case insensitive if it isn't already. */ 89#define FILENAMES_CASE_INSENSITIVE 1 90 91/* Define on systems for which file names may have a so-called `drive letter' 92 prefix, define this to compute the length of that prefix, including the 93 colon. */ 94#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX 1 95 96/* Define if the backslash character may also serve as a file name component 97 separator. */ 98#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR 1 99 100#if FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX 101# define FILE_SYSTEM_PREFIX_LEN(Filename) \ 102 ((Filename)[0] && (Filename)[1] == ':' ? 2 : 0) 103#else 104# define FILE_SYSTEM_PREFIX_LEN(Filename) 0 105#endif 106 107/* When committing or importing files, you must enter a log message. Normally, 108 you can do this either via the -m flag on the command line, the -F flag on 109 the command line, or an editor will be started for you. If you like to use 110 logging templates (the rcsinfo file within the $CVSROOT/CVSROOT directory), 111 you might want to force people to use the editor even if they specify a 112 message with -m or -F. Enabling FORCE_USE_EDITOR will cause the -m or -F 113 message to be appended to the temp file when the editor is started. */ 114#undef FORCE_USE_EDITOR 115 116/* Define to an alternative value if GSS_C_NT_HOSTBASED_SERVICE isn't defined 117 in the gssapi.h header file. MIT Kerberos 1.2.1 requires this. Only 118 relevant when using GSSAPI. */ 119#undef GSS_C_NT_HOSTBASED_SERVICE 120 121/* Define to 1 if you have the `alarm' function. */ 122#undef HAVE_ALARM 123 124/* Define to 1 if you have `alloca' after including <alloca.h>, a header that 125 may be supplied by this distribution. */ 126#undef HAVE_ALLOCA 127 128/* Define HAVE_ALLOCA_H for backward compatibility with older code that 129 includes <alloca.h> only if HAVE_ALLOCA_H is defined. */ 130#define HAVE_ALLOCA_H 1 131 132/* Define to 1 if you have the `atexit' function. */ 133#define HAVE_ATEXIT 1 134 135/* Define to 1 if you have the <bp-sym.h> header file. */ 136#undef HAVE_BP_SYM_H 137 138/* Define to 1 if you have the `btowc' function. */ 139#undef HAVE_BTOWC 140 141/* Define to 1 if you have the `canonicalize_file_name' function. */ 142#undef HAVE_CANONICALIZE_FILE_NAME 143 144/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the 145 CoreFoundation framework. */ 146#undef HAVE_CFLOCALECOPYCURRENT 147 148/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in 149 the CoreFoundation framework. */ 150#undef HAVE_CFPREFERENCESCOPYAPPVALUE 151 152/* Define to 1 if you have the `chsize' function. */ 153#define HAVE_CHSIZE 1 154 155/* Define to 1 if you have the `clock_gettime' function. */ 156#undef HAVE_CLOCK_GETTIME 157 158/* Define to 1 if you have the `clock_settime' function. */ 159#undef HAVE_CLOCK_SETTIME 160 161/* Define if you have the connect function. */ 162#define HAVE_CONNECT 163 164/* Define if you have the crypt function. */ 165#undef HAVE_CRYPT 166 167/* Define if the GNU dcgettext() function is already present or preinstalled. 168 */ 169#undef HAVE_DCGETTEXT 170 171/* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if 172 you don't. */ 173#undef HAVE_DECL_CLEARERR_UNLOCKED 174 175/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you 176 don't. */ 177#undef HAVE_DECL_FEOF_UNLOCKED 178 179/* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if 180 you don't. */ 181#undef HAVE_DECL_FERROR_UNLOCKED 182 183/* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if 184 you don't. */ 185#undef HAVE_DECL_FFLUSH_UNLOCKED 186 187/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if 188 you don't. */ 189#undef HAVE_DECL_FGETS_UNLOCKED 190 191/* Define to 1 if you have the declaration of `flockfile', and to 0 if you 192 don't. */ 193#undef HAVE_DECL_FLOCKFILE 194 195/* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if 196 you don't. */ 197#undef HAVE_DECL_FPUTC_UNLOCKED 198 199/* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if 200 you don't. */ 201#undef HAVE_DECL_FPUTS_UNLOCKED 202 203/* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if 204 you don't. */ 205#undef HAVE_DECL_FREAD_UNLOCKED 206 207/* Define to 1 if you have the declaration of `funlockfile', and to 0 if you 208 don't. */ 209#undef HAVE_DECL_FUNLOCKFILE 210 211/* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if 212 you don't. */ 213#undef HAVE_DECL_FWRITE_UNLOCKED 214 215/* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if 216 you don't. */ 217#undef HAVE_DECL_GETCHAR_UNLOCKED 218 219/* Define to 1 if you have the declaration of `getcwd', and to 0 if you don't. 220 */ 221#define HAVE_DECL_GETCWD 1 222 223/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you 224 don't. */ 225#undef HAVE_DECL_GETC_UNLOCKED 226 227/* Define to 1 if you have the declaration of `getdelim', and to 0 if you 228 don't. */ 229#undef HAVE_DECL_GETDELIM 230 231/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. 232 */ 233#define HAVE_DECL_GETENV 1 234 235/* Define to 1 if you have the declaration of `getline', and to 0 if you 236 don't. */ 237#undef HAVE_DECL_GETLINE 238 239/* Define to 1 if you have the declaration of `getlogin', and to 0 if you 240 don't. */ 241#undef HAVE_DECL_GETLOGIN 242 243/* Define to 1 if you have the declaration of `getlogin_r', and to 0 if you 244 don't. */ 245#undef HAVE_DECL_GETLOGIN_R 246 247/* Define to 1 if you have the declaration of `getpass', and to 0 if you 248 don't. */ 249#define HAVE_DECL_GETPASS 1 250 251/* Define to 1 if you have the declaration of `memrchr', and to 0 if you 252 don't. */ 253#undef HAVE_DECL_MEMRCHR 254 255/* Define to 1 if you have the declaration of `nanosleep', and to 0 if you 256 don't. */ 257#define HAVE_DECL_NANOSLEEP 1 258 259/* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if 260 you don't. */ 261#undef HAVE_DECL_PUTCHAR_UNLOCKED 262 263/* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you 264 don't. */ 265#undef HAVE_DECL_PUTC_UNLOCKED 266 267/* Define to 1 if you have the declaration of `strdup', and to 0 if you don't. 268 */ 269#define HAVE_DECL_STRDUP 1 270 271/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you 272 don't. */ 273#undef HAVE_DECL_STRERROR_R 274 275/* Define to 1 if you have the declaration of `__fpending', and to 0 if you 276 don't. */ 277#define HAVE_DECL___FPENDING 0 278 279/* Define to 1 if you have the <direct.h> header file. */ 280#undef HAVE_DIRECT_H 281 282/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. 283 */ 284#undef HAVE_DIRENT_H 285 286/* Define to 1 if you have the `dup2' function. */ 287#define HAVE_DUP2 1 288 289/* Define if you have the declaration of environ. */ 290#define HAVE_ENVIRON_DECL 1 291 292/* Define if you have the declaration of errno. */ 293#define HAVE_ERRNO_DECL 1 294 295/* Define to 1 if you have the `fchdir' function. */ 296#undef HAVE_FCHDIR 297 298/* Define to 1 if you have the `fchmod' function. */ 299#undef HAVE_FCHMOD 300 301/* Define to 1 if you have the <fcntl.h> header file. */ 302#define HAVE_FCNTL_H 1 303 304/* Define to 1 if you have the `flockfile' function. */ 305#undef HAVE_FLOCKFILE 306 307/* Define to 1 if you have the `fork' function. */ 308#undef HAVE_FORK 309 310/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ 311#undef HAVE_FSEEKO 312 313/* Define to 1 if you have the `fsync' function. */ 314#undef HAVE_FSYNC 315 316/* Define to 1 if you have the `ftime' function. */ 317#define HAVE_FTIME 1 318 319/* Define to 1 if you have the `ftruncate' function. */ 320#undef HAVE_FTRUNCATE 321 322/* Define to 1 if you have the `funlockfile' function. */ 323#undef HAVE_FUNLOCKFILE 324 325/* Define to 1 if you have the `gai_strerror' function. */ 326#undef HAVE_GAI_STRERROR 327 328/* Define to 1 if you have the `getaddrinfo' function. */ 329#undef HAVE_GETADDRINFO 330 331/* Define to 1 if you have the `getdelim' function. */ 332#undef HAVE_GETDELIM 333 334/* Define to 1 if you have the `geteuid' function. */ 335#undef HAVE_GETEUID 336 337/* Define to 1 if you have the `getgroups' function. */ 338#undef HAVE_GETGROUPS 339 340/* Define to 1 if you have the `gethostname' function. */ 341#define HAVE_GETHOSTNAME 1 342 343/* Define to 1 if you have the `getlogin_r' function. */ 344#undef HAVE_GETLOGIN_R 345 346/* Define to 1 if you have the <getopt.h> header file. */ 347#undef HAVE_GETOPT_H 348 349/* Define to 1 if you have the `getopt_long_only' function. */ 350#undef HAVE_GETOPT_LONG_ONLY 351 352/* Define to 1 if you have the `getpagesize' function. */ 353#undef HAVE_GETPAGESIZE 354 355/* Define to 1 if you have the `getpwnam_r' function. */ 356#undef HAVE_GETPWNAM_R 357 358/* Define if you have the getspnam function. */ 359#undef HAVE_GETSPNAM 360 361/* Define if the GNU gettext() function is already present or preinstalled. */ 362#undef HAVE_GETTEXT 363 364/* Define to 1 if you have the `gettimeofday' function. */ 365#undef HAVE_GETTIMEOFDAY 366 367/* Define to 1 if you have the <glob.h> header file. */ 368#define HAVE_GLOB_H 1 369 370/* Define if you have GSSAPI with Kerberos version 5 available. */ 371#undef HAVE_GSSAPI 372 373/* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */ 374#undef HAVE_GSSAPI_GSSAPI_GENERIC_H 375 376/* Define to 1 if you have the <gssapi/gssapi.h> header file. */ 377#undef HAVE_GSSAPI_GSSAPI_H 378 379/* Define to 1 if you have the <gssapi.h> header file. */ 380#undef HAVE_GSSAPI_H 381 382/* Define if you have the iconv() function. */ 383#undef HAVE_ICONV 384 385/* Define to 1 if you have the `initgroups' function. */ 386#undef HAVE_INITGROUPS 387 388/* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */ 389#undef HAVE_INTMAX_T 390 391/* Define if <inttypes.h> exists and doesn't clash with <sys/types.h>. */ 392#undef HAVE_INTTYPES_H 393 394/* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and 395 declares uintmax_t. */ 396#undef HAVE_INTTYPES_H_WITH_UINTMAX 397 398/* Define to 1 if you have the <io.h> header file. */ 399#define HAVE_IO_H 1 400 401/* Define to 1 if <sys/socket.h> defines AF_INET. */ 402#define HAVE_IPV4 1 403 404/* Define to 1 if <sys/socket.h> defines AF_INET6. */ 405#undef HAVE_IPV6 406 407/* Define to 1 if you have the `isascii' function. */ 408#define HAVE_ISASCII 1 409 410/* Define to 1 if you have the `isblank' function. */ 411#undef HAVE_ISBLANK 412 413/* Define to 1 if you have the `iswprint' function. */ 414#define HAVE_ISWPRINT 1 415 416/* Define if you have MIT Kerberos version 4 available. */ 417#undef HAVE_KERBEROS 418 419/* Define to 1 if you have the <krb5.h> header file. */ 420#undef HAVE_KRB5_H 421 422/* Define to 1 if you have the `krb_get_err_text' function. */ 423#undef HAVE_KRB_GET_ERR_TEXT 424 425/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */ 426#undef HAVE_LANGINFO_CODESET 427 428/* Define to 1 if you have the `krb' library (-lkrb). */ 429#undef HAVE_LIBKRB 430 431/* Define to 1 if you have the `krb4' library (-lkrb4). */ 432#undef HAVE_LIBKRB4 433 434/* Define to 1 if you have the `nsl' library (-lnsl). */ 435#undef HAVE_LIBNSL 436 437/* Define to 1 if you have the <locale.h> header file. */ 438#define HAVE_LOCALE_H 1 439 440/* Define to 1 if you have the `login' function. */ 441#undef HAVE_LOGIN 442 443/* Define to 1 if you have the `logout' function. */ 444#undef HAVE_LOGOUT 445 446/* Define if you have the 'long double' type. */ 447#undef HAVE_LONG_DOUBLE 448 449/* Define to 1 if you support file names longer than 14 characters. */ 450#define HAVE_LONG_FILE_NAMES 1 451 452/* Define if you have the 'long long' type. */ 453#undef HAVE_LONG_LONG 454 455/* Define to 1 if your system has a GNU libc compatible `malloc' function, and 456 to 0 otherwise. */ 457#define HAVE_MALLOC 1 458 459/* Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including 460 config.h and <sys/mman.h>. */ 461#undef HAVE_MAP_ANONYMOUS 462 463/* Define to 1 if you have the `mblen' function. */ 464#define HAVE_MBLEN 1 465 466/* Define to 1 if you have the `mbrlen' function. */ 467#define HAVE_MBRLEN 1 468 469/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ 470#define HAVE_MBRTOWC 1 471 472/* Define to 1 if you have the `mbsinit' function. */ 473#undef HAVE_MBSINIT 474 475/* Define to 1 if you have the `mbsrtowcs' function. */ 476#define HAVE_MBSRTOWCS 1 477 478/* Define to 1 if <wchar.h> declares mbstate_t. */ 479#define HAVE_MBSTATE_T 1 480 481/* Define if you have memchr (always for CVS). */ 482#define HAVE_MEMCHR 1 483 484/* Define to 1 if you have the `memmove' function. */ 485#define HAVE_MEMMOVE 1 486 487/* Define to 1 if you have the <memory.h> header file. */ 488#define HAVE_MEMORY_H 1 489 490/* Define to 1 if you have the `mempcpy' function. */ 491#undef HAVE_MEMPCPY 492 493/* Define to 1 if you have the `memrchr' function. */ 494#undef HAVE_MEMRCHR 495 496/* Define to 1 if <limits.h> defines the MIN and MAX macros. */ 497#define HAVE_MINMAX_IN_LIMITS_H 1 498 499/* Define to 1 if <sys/param.h> defines the MIN and MAX macros. */ 500#undef HAVE_MINMAX_IN_SYS_PARAM_H 501 502/* Define to 1 if you have the `mknod' function. */ 503#undef HAVE_MKNOD 504 505/* Define to 1 if you have the `mkstemp' function. */ 506#undef HAVE_MKSTEMP 507 508/* Define to 1 if you have a working `mmap' system call. */ 509#undef HAVE_MMAP 510 511/* Define to 1 if you have the `nanotime' function. */ 512#undef HAVE_NANOTIME 513 514/* Define to 1 if you have the <ndbm.h> header file. */ 515#undef HAVE_NDBM_H 516 517/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ 518#define HAVE_NDIR_H 1 519 520/* Define to 1 if you have the `openat' function. */ 521#undef HAVE_OPENAT 522 523/* Define to 1 if you have the <OS.h> header file. */ 524#undef HAVE_OS_H 525 526/* Define to enable system authentication with PAM instead of using the simple 527 getpwnam interface. This allows authentication (in theory) with any PAM 528 module, e.g. on systems with shadow passwords or via LDAP */ 529#undef HAVE_PAM 530 531/* Define to 1 if pam/pam_appl.h is available */ 532#undef HAVE_PAM_PAM_APPL_H 533 534/* Define to 1 if getcwd works, except it sometimes fails when it shouldn't, 535 setting errno to ERANGE, ENAMETOOLONG, or ENOENT. If __GETCWD_PREFIX is not 536 defined, it doesn't matter whether HAVE_PARTLY_WORKING_GETCWD is defined. 537 */ 538#undef HAVE_PARTLY_WORKING_GETCWD 539 540/* Define to 1 if you have the `posix_memalign' function. */ 541#undef HAVE_POSIX_MEMALIGN 542 543/* Define to 1 if the `printf' function supports the %p format for printing 544 pointers. */ 545#define HAVE_PRINTF_PTR 1 546 547/* Define to 1 if the system has the type `ptrdiff_t'. */ 548#define HAVE_PTRDIFF_T 1 549 550/* Define to 1 if you have the `readlink' function. */ 551#undef HAVE_READLINK 552 553/* Define to 1 if your system has a GNU libc compatible `realloc' function, 554 and to 0 otherwise. */ 555#define HAVE_REALLOC 1 556 557/* Define to 1 if you have the `regcomp' function. */ 558#undef HAVE_REGCOMP 559 560/* Define to 1 if you have the `regerror' function. */ 561#undef HAVE_REGERROR 562 563/* Define to 1 if you have the `regexec' function. */ 564#undef HAVE_REGEXEC 565 566/* Define to 1 if you have the `regfree' function. */ 567#undef HAVE_REGFREE 568 569/* Define to 1 if you have the `resolvepath' function. */ 570#undef HAVE_RESOLVEPATH 571 572/* Define to 1 if you have the `rpmatch' function. */ 573#undef HAVE_RPMATCH 574 575/* Define to 1 if you have run the test for working tzset. */ 576#define HAVE_RUN_TZSET_TEST 1 577 578/* Define to 1 if you have the <search.h> header file. */ 579#define HAVE_SEARCH_H 1 580 581/* Define to 1 if security/pam_appl.h is available */ 582#undef HAVE_SECURITY_PAM_APPL_H 583 584/* Define to 1 if you have the `setenv' function. */ 585#undef HAVE_SETENV 586 587/* Define if the diff library should use setmode for binary files. */ 588#define HAVE_SETMODE 1 589 590/* Define to 1 if you have the `sigaction' function. */ 591#undef HAVE_SIGACTION 592 593/* Define to 1 if you have the `sigblock' function. */ 594#undef HAVE_SIGBLOCK 595 596/* Define to 1 if you have the `siginterrupt' function. */ 597#undef HAVE_SIGINTERRUPT 598 599/* Define to 1 if you have the `sigprocmask' function. */ 600#undef HAVE_SIGPROCMASK 601 602/* Define to 1 if you have the `sigsetmask' function. */ 603#undef HAVE_SIGSETMASK 604 605/* Define to 1 if you have the `sigvec' function. */ 606#undef HAVE_SIGVEC 607 608/* Define to 1 if you have the `snprintf' function. */ 609#undef HAVE_SNPRINTF 610 611/* Define to 1 if stdbool.h conforms to C99. */ 612#undef HAVE_STDBOOL_H 613 614/* Define to 1 if you have the <stdint.h> header file. */ 615#define HAVE_STDINT_H 1 616 617/* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares 618 uintmax_t. */ 619#define HAVE_STDINT_H_WITH_UINTMAX 1 620 621/* Define to 1 if you have the <stdio_ext.h> header file. */ 622#undef HAVE_STDIO_EXT_H 623 624/* Define to 1 if you have the <stdlib.h> header file. */ 625#define HAVE_STDLIB_H 1 626 627/* Define if you have strchr (always for CVS). */ 628#define HAVE_STRCHR 1 629 630/* Define to 1 if you have the `strdup' function. */ 631#define HAVE_STRDUP 1 632 633/* Define to 1 if you have the `strerror' function. */ 634#define HAVE_STRERROR 1 635 636/* Define to 1 if you have the `strerror_r' function. */ 637#undef HAVE_STRERROR_R 638 639/* Define to 1 if you have the `strftime' function. */ 640#define HAVE_STRFTIME 1 641 642/* Define to 1 if you have the <strings.h> header file. */ 643#undef HAVE_STRINGS_H 644 645/* Define to 1 if you have the <string.h> header file. */ 646#define HAVE_STRING_H 1 647 648/* Define to 1 if you have the `strncasecmp' function. */ 649#undef HAVE_STRNCASECMP 650 651/* Define to 1 if you have the `strtol' function. */ 652#define HAVE_STRTOL 1 653 654/* Define to 1 if you have the `strtoul' function. */ 655#define HAVE_STRTOUL 1 656 657/* Define if there is a member named d_type in the struct describing directory 658 headers. */ 659#undef HAVE_STRUCT_DIRENT_D_TYPE 660 661/* Define to 1 if `st_blksize' is member of `struct stat'. */ 662#undef HAVE_STRUCT_STAT_ST_BLKSIZE 663 664/* Define to 1 if `st_rdev' is member of `struct stat'. */ 665#define HAVE_STRUCT_STAT_ST_RDEV 1 666 667/* Define if struct timespec is declared in <time.h>. */ 668#undef HAVE_STRUCT_TIMESPEC 669 670/* Define to 1 if `tm_zone' is member of `struct tm'. */ 671#undef HAVE_STRUCT_TM_TM_ZONE 672 673/* Define to 1 if you have the <syslog.h> header file. */ 674#undef HAVE_SYSLOG_H 675 676/* Define to 1 if you have the <sys/bsdtypes.h> header file. */ 677#undef HAVE_SYS_BSDTYPES_H 678 679/* Define to 1 if you have the <sys/cdefs.h> header file. */ 680#undef HAVE_SYS_CDEFS_H 681 682/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. 683 */ 684#undef HAVE_SYS_DIR_H 685 686/* Define to 1 if you have the <sys/file.h> header file. */ 687#undef HAVE_SYS_FILE_H 688 689/* Define to 1 if you have the <sys/inttypes.h> header file. */ 690#undef HAVE_SYS_INTTYPES_H 691 692/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. 693 */ 694#undef HAVE_SYS_NDIR_H 695 696/* Define to 1 if you have the <sys/param.h> header file. */ 697#undef HAVE_SYS_PARAM_H 698 699/* Define to 1 if you have the <sys/resource.h> header file. */ 700#undef HAVE_SYS_RESOURCE_H 701 702/* Define to 1 if you have the <sys/select.h> header file. */ 703#undef HAVE_SYS_SELECT_H 704 705/* Define to 1 if you have the <sys/stat.h> header file. */ 706#define HAVE_SYS_STAT_H 1 707 708/* Define to 1 if you have the <sys/time.h> header file. */ 709#undef HAVE_SYS_TIME_H 710 711/* Define to 1 if you have the <sys/types.h> header file. */ 712#define HAVE_SYS_TYPES_H 1 713 714/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ 715#undef HAVE_SYS_WAIT_H 716 717/* Define to 1 if you have the `tcgetattr' function. */ 718#undef HAVE_TCGETATTR 719 720/* Define to 1 if you have the `tcsetattr' function. */ 721#undef HAVE_TCSETATTR 722 723/* Define to 1 if you have the <termios.h> header file. */ 724#undef HAVE_TERMIOS_H 725 726/* Define to 1 if you have the `timezone' function. */ 727#undef HAVE_TIMEZONE 728 729/* Define to 1 if localtime_r, etc. have the type signatures that POSIX 730 requires. */ 731#undef HAVE_TIME_R_POSIX 732 733/* Define if struct tm has the tm_gmtoff member. */ 734#undef HAVE_TM_GMTOFF 735 736/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use 737 `HAVE_STRUCT_TM_TM_ZONE' instead. */ 738#undef HAVE_TM_ZONE 739 740/* Define to 1 if you have the `tsearch' function. */ 741#undef HAVE_TSEARCH 742 743/* Define to 1 if you don't have `tm_zone' but do have the external array 744 `tzname'. */ 745#define HAVE_TZNAME 1 746 747/* Define to 1 if you have the `tzset' function. */ 748#define HAVE_TZSET 1 749 750/* Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>. */ 751#undef HAVE_UINTMAX_T 752 753/* Define to 1 if you have the `uname' function. */ 754#undef HAVE_UNAME 755 756/* Define to 1 if you have the <unistd.h> header file. */ 757#define HAVE_UNISTD_H 1 758 759/* Define to 1 if you have the `unsetenv' function. */ 760#undef HAVE_UNSETENV 761 762/* Define if you have the 'unsigned long long' type. */ 763#undef HAVE_UNSIGNED_LONG_LONG 764 765/* Define to 1 if you have the <utime.h> header file. */ 766#undef HAVE_UTIME_H 767 768/* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */ 769#define HAVE_UTIME_NULL 1 770 771/* Define to 1 if you have the `vasnprintf' function. */ 772#undef HAVE_VASNPRINTF 773 774/* Define to 1 if you have the `vasprintf' function. */ 775#undef HAVE_VASPRINTF 776 777/* Define to 1 if you have the `vfork' function. */ 778#undef HAVE_VFORK 779 780/* Define to 1 if you have the <vfork.h> header file. */ 781#undef HAVE_VFORK_H 782 783/* Define to 1 if you have the `vprintf' function. */ 784#define HAVE_VPRINTF 1 785 786/* Define to 1 if you have the `wait3' function. */ 787#undef HAVE_WAIT3 788 789/* Define to 1 if you have the `waitpid' function. */ 790#undef HAVE_WAITPID 791 792/* Define to 1 if you have the <wchar.h> header file. */ 793#define HAVE_WCHAR_H 1 794 795/* Define if you have the 'wchar_t' type. */ 796#define HAVE_WCHAR_T 1 797 798/* Define to 1 if you have the `wcrtomb' function. */ 799#define HAVE_WCRTOMB 1 800 801/* Define to 1 if you have the `wcscoll' function. */ 802#define HAVE_WCSCOLL 1 803 804/* Define to 1 if you have the `wcslen' function. */ 805#define HAVE_WCSLEN 1 806 807/* Define to 1 if you have the <wctype.h> header file. */ 808#define HAVE_WCTYPE_H 1 809 810/* Define if you have the 'wint_t' type. */ 811#define HAVE_WINT_T 1 812 813/* Define to 1 if you have the `wmemchr' function. */ 814#define HAVE_WMEMCHR 1 815 816/* Define to 1 if you have the `wmemcpy' function. */ 817#define HAVE_WMEMCPY 1 818 819/* Define to 1 if you have the `wmempcpy' function. */ 820#undef HAVE_WMEMPCPY 821 822/* Define to 1 if `fork' works. */ 823#undef HAVE_WORKING_FORK 824 825/* Define to 1 if `vfork' works. */ 826#undef HAVE_WORKING_VFORK 827 828/* Define to 1 if you have the <zlib.h> header file. */ 829#undef HAVE_ZLIB_H 830 831/* Define to 1 if the system has the type `_Bool'. */ 832#undef HAVE__BOOL 833 834/* Define to 1 if you have the `__fpending' function. */ 835#undef HAVE___FPENDING 836 837/* Define to 1 if you have the `__fsetlocking' function. */ 838#undef HAVE___FSETLOCKING 839 840/* Define to 1 if you have the `__secure_getenv' function. */ 841#undef HAVE___SECURE_GETENV 842 843#if FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR 844# define ISSLASH(C) ((C) == '/' || (C) == '\\') 845#else 846# define ISSLASH(C) ((C) == '/') 847#endif 848 849/* Define to include locking code which prevents versions of CVS earlier than 850 1.12.4 directly accessing the same repositiory as this executable from 851 ignoring this executable's promotable read locks. If only CVS versions 852 1.12.4 and later will be accessing your repository directly (as a server or 853 locally), you can safely disable this option in return for fewer disk 854 accesses and a small speed increase. Disabling this option when versions of 855 CVS earlier than 1,12,4 _will_ be accessing your repository, however, is 856 *VERY* *VERY* *VERY* dangerous and could result in data loss. As such, by 857 default, CVS is compiled with this code enabled. If you are sure you would 858 like this code disabled, you can disable it by passing the 859 "--disable-lock-compatibility" option to configure or by commenting out the 860 lines below. */ 861#define LOCK_COMPATIBILITY 862 863/* Define to 1 if `lstat' dereferences a symlink specified with a trailing 864 slash. */ 865#undef LSTAT_FOLLOWS_SLASHED_SYMLINK 866 867/* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */ 868#undef MALLOC_0_IS_NONNULL 869 870/* Define to a substitute value for mmap()'s MAP_ANONYMOUS flag. */ 871#undef MAP_ANONYMOUS 872 873/* By default, CVS stores its modules and other such items in flat text files 874 (MY_NDBM enables this). Turning off MY_NDBM causes CVS to look for a 875 system-supplied ndbm database library and use it instead. That may speed 876 things up, but the default setting generally works fine too. */ 877#define MY_NDBM 878 879/* Define to 1 if your C compiler doesn't accept -c and -o together. */ 880#undef NO_MINUS_C_MINUS_O 881 882/* Define to the address where bug reports for this package should be sent. */ 883#define PACKAGE_BUGREPORT "%PACKAGE_BUGREPORT%" 884 885/* Define to the full name of this package. */ 886#undef PACKAGE_NAME 887 888/* Define to the full name and version of this package. */ 889#define PACKAGE_STRING "%PACKAGE_STRING%" 890 891/* Define to the one symbol short name of this package. */ 892#undef PACKAGE_TARNAME 893 894/* Define to the version of this package. */ 895#undef PACKAGE_VERSION 896 897/* Define to set a service name for PAM. This must be defined. Define to 898 `program_name', without the quotes, to use whatever name CVS was invoked 899 as. Otherwise, define to a double-quoted literal string, such as `"cvs"'. 900 */ 901#undef PAM_SERVICE_NAME 902 903/* the number of pending output bytes on stream `fp' */ 904#define PENDING_OUTPUT_N_BYTES ( fp ? fp->_ptr - fp->_base : 0 ) 905 906/* Define if you want CVS to be able to serve as a transparent proxy for write 907 operations. Disabling this may produce a slight performance gain on some 908 systems, at the expense of write proxy support. */ 909#undef PROXY_SUPPORT 910 911/* Path to the pr utility */ 912#undef PR_PROGRAM 913 914/* Define to force lib/regex.c to use malloc instead of alloca. */ 915#define REGEX_MALLOC 1 916 917/* Define if rename does not work for source file names with a trailing slash, 918 like the one from SunOS 4.1.1_U1. */ 919#undef RENAME_TRAILING_SLASH_BUG 920 921/* Define as the return type of signal handlers (`int' or `void'). */ 922#define RETSIGTYPE void 923 924/* The default remote shell to use, if one does not specify the CVS_RSH 925 environment variable. */ 926#define RSH_DFLT "rsh" 927 928/* If you are working with a large remote repository and a 'cvs checkout' is 929 swamping your network and memory, define these to enable flow control. You 930 will end up with even less probability of a consistent checkout (see 931 Concurrency in cvs.texinfo), but CVS doesn't try to guarantee that anyway. 932 The master server process will monitor how far it is getting behind, if it 933 reaches the high water mark, it will signal the child process to stop 934 generating data when convenient (ie: no locks are held, currently at the 935 beginning of a new directory). Once the buffer has drained sufficiently to 936 reach the low water mark, it will be signalled to start again. */ 937#undef SERVER_FLOWCONTROL 938 939/* The high water mark in bytes for server flow control. Required if 940 SERVER_FLOWCONTROL is defined, and useless otherwise. */ 941#undef SERVER_HI_WATER 942 943/* The low water mark in bytes for server flow control. Required if 944 SERVER_FLOWCONTROL is defined, and useless otherwise. */ 945#undef SERVER_LO_WATER 946 947/* Define if you want CVS to be able to serve repositories to remote clients. 948 */ 949#undef SERVER_SUPPORT 950 951/* The size of a `char', as computed by sizeof. */ 952#define SIZEOF_CHAR 1 953 954/* The size of a `double', as computed by sizeof. */ 955#define SIZEOF_DOUBLE 8 956 957/* The size of a `float', as computed by sizeof. */ 958#define SIZEOF_FLOAT 4 959 960/* The size of a `int', as computed by sizeof. */ 961#define SIZEOF_INT 4 962 963/* The size of a `intmax_t', as computed by sizeof. */ 964#undef SIZEOF_INTMAX_T 965 966/* The size of a `long', as computed by sizeof. */ 967#define SIZEOF_LONG 4 968 969/* The size of a `long double', as computed by sizeof. */ 970#define SIZEOF_LONG_DOUBLE 8 971 972/* The size of a `long long', as computed by sizeof. */ 973#undef SIZEOF_LONG_LONG 974 975/* The size of a `ptrdiff_t', as computed by sizeof. */ 976#define SIZEOF_PTRDIFF_T 4 977 978/* The size of a `short', as computed by sizeof. */ 979#define SIZEOF_SHORT 2 980 981/* The size of a `size_t', as computed by sizeof. */ 982#define SIZEOF_SIZE_T 4 983 984/* The size of a `wint_t', as computed by sizeof. */ 985#define SIZEOF_WINT_T 2 986 987/* Define as the maximum value of type 'size_t', if the system doesn't define 988 it. */ 989#define SIZE_MAX (~(size_t)0) 990 991/* If using the C implementation of alloca, define if you know the 992 direction of stack growth for your system; otherwise it will be 993 automatically deduced at run-time. 994 STACK_DIRECTION > 0 => grows toward higher addresses 995 STACK_DIRECTION < 0 => grows toward lower addresses 996 STACK_DIRECTION = 0 => direction of growth unknown */ 997#undef STACK_DIRECTION 998 999/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ 1000#define STAT_MACROS_BROKEN 1 1001 1002/* Define to 1 if you have the ANSI C header files. */ 1003#define STDC_HEADERS 1 1004 1005/* Define to 1 if strerror_r returns char *. */ 1006#undef STRERROR_R_CHAR_P 1007 1008/* Enable support for the pre 1.12.1 *info scripting hook format strings. 1009 Disable this option for a smaller executable once your scripting hooks have 1010 been updated to use the new *info format strings by passing 1011 "--disable-old-info-format-support" option to configure or by commenting 1012 out the line below. */ 1013#undef SUPPORT_OLD_INFO_FMT_STRINGS 1014 1015/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 1016#undef TIME_WITH_SYS_TIME 1017 1018/* Directory used for storing temporary files, if not overridden by 1019 environment variables or the -T global option. There should be little need 1020 to change this (-T is a better mechanism if you need to use a different 1021 directory for temporary files). */ 1022#define TMPDIR_DFLT "c:\\temp" 1023 1024/* Define to 1 if your <sys/time.h> declares `struct tm'. */ 1025#undef TM_IN_SYS_TIME 1026 1027/* Define if tzset clobbers localtime's static buffer. */ 1028#undef TZSET_CLOBBERS_LOCALTIME_BUFFER 1029 1030/* Define to its maximum value if an unsigned integer type of width exactly 32 1031 bits exists and the standard includes do not define UINT32_MAX. */ 1032#undef UINT32_MAX 1033 1034/* The default umask to use when creating or otherwise setting file or 1035 directory permissions in the repository. Must be a value in the range of 0 1036 through 0777. For example, a value of 002 allows group rwx access and world 1037 rx access; a value of 007 allows group rwx access but no world access. This 1038 value is overridden by the value of the CVSUMASK environment variable, 1039 which is interpreted as an octal number. */ 1040#define UMASK_DFLT 002 1041 1042/* Define if double is the first floating point type detected with its size. 1043 */ 1044#undef UNIQUE_FLOAT_TYPE_DOUBLE 1045 1046/* Define if float is the first floating point type detected with its size. */ 1047#undef UNIQUE_FLOAT_TYPE_FLOAT 1048 1049/* Define if long double is the first floating point type detected with its 1050 size. */ 1051#undef UNIQUE_FLOAT_TYPE_LONG_DOUBLE 1052 1053/* Define if char is the first integer type detected with its size. */ 1054#undef UNIQUE_INT_TYPE_CHAR 1055 1056/* Define if int is the first integer type detected with its size. */ 1057#undef UNIQUE_INT_TYPE_INT 1058 1059/* Define if intmax_t is the first integer type detected with its size. */ 1060#undef UNIQUE_INT_TYPE_INTMAX_T 1061 1062/* Define if long int is the first integer type detected with its size. */ 1063#undef UNIQUE_INT_TYPE_LONG 1064 1065/* Define if long long is the first integer type detected with its size. */ 1066#undef UNIQUE_INT_TYPE_LONG_LONG 1067 1068/* Define if ptrdiff_t is the first integer type detected with its size. */ 1069#undef UNIQUE_INT_TYPE_PTRDIFF_T 1070 1071/* Define if short is the first integer type detected with its size. */ 1072#undef UNIQUE_INT_TYPE_SHORT 1073 1074/* Define if size_t is the first integer type detected with its size. */ 1075#undef UNIQUE_INT_TYPE_SIZE_T 1076 1077/* Define if wint_t is the first integer type detected with its size. */ 1078#undef UNIQUE_INT_TYPE_WINT_T 1079 1080/* Define if setmode is required when writing binary data to stdout. */ 1081#define USE_SETMODE_STDOUT 1 1082 1083/* Define to 1 if you want getc etc. to use unlocked I/O if available. 1084 Unlocked I/O can improve performance in unithreaded apps, but it is not 1085 safe for multithreaded apps. */ 1086#undef USE_UNLOCKED_IO 1087 1088/* Define if utime requires write access to the file (true on Windows, but not 1089 Unix). */ 1090#define UTIME_EXPECTS_WRITABLE 1091 1092/* Define if unsetenv() returns void, not int. */ 1093#undef VOID_UNSETENV 1094 1095/* Define to 1 if your processor stores words with the most significant byte 1096 first (like Motorola and SPARC, unlike Intel and VAX). */ 1097#undef WORDS_BIGENDIAN 1098 1099/* Define to 1 if on AIX 3. 1100 System headers sometimes define this. 1101 We just want to avoid a redefinition error message. */ 1102#ifndef _ALL_SOURCE 1103# undef _ALL_SOURCE 1104#endif 1105 1106/* Number of bits in a file offset, on hosts where this is settable. */ 1107#undef _FILE_OFFSET_BITS 1108 1109/* Enable GNU extensions on systems that have them. */ 1110#ifndef _GNU_SOURCE 1111# undef _GNU_SOURCE 1112#endif 1113 1114/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ 1115#undef _LARGEFILE_SOURCE 1116 1117/* Define for large files, on AIX-style hosts. */ 1118#undef _LARGE_FILES 1119 1120/* Define to 1 if on MINIX. */ 1121#undef _MINIX 1122 1123/* Define to 2 if the system does not provide POSIX.1 features except with 1124 this defined. */ 1125#undef _POSIX_1_SOURCE 1126 1127/* Define to 1 if you need to in order for `stat' and other things to work. */ 1128#undef _POSIX_SOURCE 1129 1130/* Define if you want regoff_t to be at least as wide POSIX requires. */ 1131#undef _REGEX_LARGE_OFFSETS 1132 1133/* Define to force lib/regex.c to define re_comp et al. */ 1134#define _REGEX_RE_COMP 1 1135 1136/* Define for Solaris 2.5.1 so uint32_t typedef from <sys/synch.h>, 1137 <pthread.h>, or <semaphore.h> is not used. If the typedef was allowed, the 1138 #define below would cause a syntax error. */ 1139#undef _UINT32_T 1140 1141/* Enable extensions on Solaris. */ 1142#ifndef __EXTENSIONS__ 1143# undef __EXTENSIONS__ 1144#endif 1145#ifndef _POSIX_PTHREAD_SEMANTICS 1146# undef _POSIX_PTHREAD_SEMANTICS 1147#endif 1148 1149/* Define to rpl_ if the getcwd replacement function should be used. */ 1150#undef __GETCWD_PREFIX 1151 1152/* Define to rpl_ if the getopt replacement functions and variables should be 1153 used. */ 1154#define __GETOPT_PREFIX rpl_ 1155 1156/* Define to rpl_ if the openat replacement function should be used. */ 1157#undef __OPENAT_PREFIX 1158 1159/* Define to empty if `const' does not conform to ANSI C. */ 1160#undef const 1161 1162/* Define to a replacement function name for fnmatch(). */ 1163#undef fnmatch 1164 1165/* Define to a replacement function name for getline(). */ 1166#undef getline 1167 1168/* Define to a replacement function name for getpass(). */ 1169#undef getpass 1170 1171/* Define to rpl_gettimeofday if the replacement function should be used. */ 1172#undef gettimeofday 1173 1174/* Define to `int' if <sys/types.h> doesn't define. */ 1175#undef gid_t 1176 1177/* Define to rpl_gmtime if the replacement function should be used. */ 1178#undef gmtime 1179 1180/* Define to `__inline__' or `__inline' if that's what the C compiler 1181 calls it, or to nothing if 'inline' is not supported under any name. */ 1182#ifndef __cplusplus 1183#define inline __inline 1184#endif 1185 1186/* Define to long or long long if <inttypes.h> and <stdint.h> don't define. */ 1187#undef intmax_t 1188 1189/* Define to rpl_localtime if the replacement function should be used. */ 1190#undef localtime 1191 1192/* Define to rpl_malloc if the replacement function should be used. */ 1193#undef malloc 1194 1195/* Define to a type if <wchar.h> does not define. */ 1196#undef mbstate_t 1197 1198/* Define to rpl_mkdir if the replacement function should be used. */ 1199#undef mkdir 1200 1201/* Define to rpl_mkstemp if the replacement function should be used. */ 1202#undef mkstemp 1203 1204/* Define to rpl_mktime if the replacement function should be used. */ 1205#undef mktime 1206 1207/* Define to `int' if <sys/types.h> does not define. */ 1208#define mode_t int 1209 1210/* Define to the name of the strftime replacement function. */ 1211#define my_strftime nstrftime 1212 1213/* Define to rpl_nanosleep if the replacement function should be used. */ 1214#define nanosleep woe32_nanosleep 1215 1216/* Define to `int' if <sys/types.h> does not define. */ 1217#undef pid_t 1218 1219/* Define to rpl_realloc if the replacement function should be used. */ 1220#define realloc rpl_realloc 1221 1222/* Define to rpl_rename if the replacement function should be used. */ 1223#undef rename 1224 1225/* Define to equivalent of C99 restrict keyword, or to nothing if this is not 1226 supported. Do not define if restrict is supported directly. */ 1227#define restrict 1228 1229/* Define to rpl_select if the replacement function should be used. */ 1230#undef select 1231 1232/* Define to empty if the C compiler doesn't support this keyword. */ 1233#undef signed 1234 1235/* Define to `unsigned' if <sys/types.h> does not define. */ 1236#undef size_t 1237 1238/* Define as a signed type of the same size as size_t. */ 1239#define ssize_t int 1240 1241/* Define to rpl_strcasecmp always. */ 1242#define strcasecmp rpl_strcasecmp 1243 1244/* Define to rpl_tzset if the wrapper function should be used. */ 1245#undef tzset 1246 1247/* Define to `int' if <sys/types.h> doesn't define. */ 1248#undef uid_t 1249 1250/* Define to the type of a unsigned integer type of width exactly 32 bits if 1251 such a type exists and the standard includes do not define it. */ 1252#undef uint32_t 1253 1254/* Define to unsigned long or unsigned long long if <stdint.h> and 1255 <inttypes.h> don't define. */ 1256#undef uintmax_t 1257 1258/* Define as `fork' if `vfork' does not work. */ 1259#undef vfork 1260/*============================================================================*/ 1261/* config.h.in.footer: configuration file for Windows NT 1262 Conrad T. Pino <Conrad@Pino.com> --- May 2004 */ 1263 1264/* This file lives in the windows-NT subdirectory, which is only included 1265 in your header search path if you're working under Microsoft Visual C++, 1266 and use ../cvsnt.mak for your project. Thus, this is the right place to 1267 put configuration information for Windows NT. */ 1268 1269/* This file is getting chaotic and will be organized as follows: 1270 1271 Macros appears first alphabetized in case sensitive order. 1272 Typedefs appear next alphabetized in case sensitive order. 1273 Function prototypes alphabetized in case sensitive order. 1274 1275 Reorgnized by Conrad T. Pino <Conrad@Pino.com> May 25, 2005 */ 1276 1277/* just one time please */ 1278#ifdef _MSC_VER 1279#pragma once 1280#endif 1281 1282/* ======================= Macro Definnitions Follow ====================== */ 1283 1284/* Under Windows NT, mkdir only takes one argument. */ 1285#define CVS_MKDIR wnt_mkdir 1286 1287#define CVS_RENAME wnt_rename 1288 1289/* This is where old bits go to die under Windows NT. */ 1290#define DEVNULL "nul" 1291 1292/* Windows has no ELOOP value in errno.h */ 1293#define ELOOP EMLINK 1294 1295/* Windows has _snprintf function. 1296 HAVE_DECL__SNPRINTF used in ../lib/vasnprintf.c */ 1297#define HAVE_DECL__SNPRINTF 1 1298 1299#define HAVE_WINSOCK_H 1300 1301/* This tells the client that it must use send()/recv() to talk to the 1302 server if it is connected to the server via a socket; Win95 needs 1303 it because _open_osfhandle doesn't work. */ 1304#define NO_SOCKET_TO_FD 1 1305 1306/* Is this true on NT? Seems like I remember reports that NT 3.51 has 1307 problems with 200K writes (of course, the issue of large writes is 1308 moot since the use of buffer.c ensures that writes will only be as big 1309 as the buffers). */ 1310#define SEND_NEVER_PARTIAL 1 1311 1312/* Stop server macro */ 1313#define SHUTDOWN_SERVER wnt_shutdown_server 1314 1315/* This tells the client that, in addition to needing to use 1316 send()/recv() to do socket I/O, the error codes for send()/recv() 1317 and other socket operations are not available through errno. 1318 Instead, this macro should be used to obtain an error code. */ 1319#define SOCK_ERRNO (WSAGetLastError ()) 1320 1321/* This tells the client that, in addition to needing to use 1322 send()/recv() to do socket I/O, the error codes for send()/recv() 1323 and other socket operations are not known to strerror. Instead, 1324 this macro should be used to convert the error codes to strings. */ 1325#define SOCK_STRERROR sock_strerror 1326 1327/* Start server macro */ 1328#define START_SERVER wnt_start_server 1329 1330/* The internal rsh client uses sockets not file descriptors. Note 1331 that as the code stands now, it often takes values from a SOCKET and 1332 puts them in an int. This is ugly but it seems like sizeof 1333 (SOCKET) <= sizeof (int) on win32, even the 64-bit variants. */ 1334#define START_SERVER_RETURNS_SOCKET 1 1335 1336/* Macro name tells the story */ 1337#define SYSTEM_CLEANUP woe32_cleanup 1338 1339/* Macro name tells the story */ 1340#define SYSTEM_INITIALIZE(pargc,pargv) woe32_init_winsock() 1341 1342/* 1343 * According to GNU conventions, we should avoid referencing any macro 1344 * containing "WIN" as a reference to Microsoft Windows, as we would like to 1345 * avoid any implication that we consider Microsoft Windows any sort of "win". 1346 * 1347 * FIXME: As of 2003-06-09, folks on the GNULIB project were discussing 1348 * defining a configure macro to define WOE32 appropriately. If they ever do 1349 * write such a beast, we should use it, though in most cases it would be 1350 * preferable to avoid referencing any OS or compiler anyhow, per Autoconf 1351 * convention, and reference only tested features of the system. 1352 * 1353 * re FIXME: This definition would still be necessary since systems which run 1354 * configure do not use this config.h and vice-versa. 1355 */ 1356#define WOE32 1 1357 1358/* Define POSIX name to Microsoft name */ 1359#define dup _dup 1360 1361/* getpagesize is missing on Windows, 4096 does the right thing. */ 1362#define getpagesize() 4096 1363 1364/* Define to a substitute for the `lstat' function. */ 1365#define lstat stat 1366 1367/* Define POSIX name to Microsoft name */ 1368#define popen _popen 1369 1370/* Define POSIX name to Microsoft name */ 1371#define pclose _pclose 1372 1373/* Diff needs us to define this. I think it could always be 1374 -1 for CVS, because we pass temporary files to diff, but 1375 config.h seems like the easiest place to put this, so for 1376 now we put it here. */ 1377#define same_file(s,t) (-1) 1378 1379/* Define to a substitute for the stat function. */ 1380#define stat wnt_stat 1381 1382/* ====================== Typedef Declarations Follow ===================== */ 1383 1384/* ====================== Function Prototypes Follow ====================== */ 1385 1386#include <woe32.h> 1387 1388/* #define SOCK_STRERROR sock_strerror */ 1389char *sock_strerror (int errnum); 1390 1391/* #define CVS_MKDIR wnt_mkdir */ 1392int wnt_mkdir (const char *PATH, int MODE); 1393 1394/* #define CVS_RENAME wnt_rename */ 1395int wnt_rename (const char *, const char *); 1396 1397/* #define SHUTDOWN_SERVER wnt_shutdown_server */ 1398void wnt_shutdown_server (int fd); 1399 1400/* #define START_SERVER wnt_start_server */ 1401void wnt_start_server (int *tofd, int *fromfd, 1402 char *client_user, 1403 char *server_user, 1404 char *server_host, 1405 char *server_cvsroot); 1406 1407/* #define stat wnt_stat and #define lstat wnt_stat */ 1408int wnt_stat (const char *file, struct wnt_stat *sb); 1409 1410/* =============== Special mkdir Prototype Handling Follows =============== */ 1411 1412#include <direct.h> 1413#define mkdir wnt_mkdir 1414 1415/* ===================== Special Function Definitions ===================== */ 1416 1417/* 1418 Microsoft defines "mbinit" in <wchar.h> for C++ code only. 1419 1420 Expect link errors for versions: 1421 1422 earlier than Visual C++ 5.0 1423 1424 later than Visual C++ .NET 2003 1425 1426 and Visual C++ .NET is just a guess which might be wrong. 1427*/ 1428 1429#if _MSC_VER >= 1100 && _MSC_VER <= 1200 1430 1431/* If within Visual C++ 5.0 to Visual C++ 6.0 */ 1432 1433inline int mbsinit (const void * arg) 1434 { return 1; } 1435 1436#elif _MSC_VER >= 1300 && _MSC_VER <= 1310 1437 1438/* If within Visual C++ .NET to Visual C++ .NET 2003 */ 1439 1440inline int mbsinit (const int * arg) 1441 { return arg == NULL || ! *arg; } 1442 1443#endif 1444 1445/* =========================== End Of This File =========================== */ 1446