"Fossies" - the Fresh Open Source Software Archive

Member "cvs-1.11.23/windows-NT/stamp-ch" (7 May 2008, 16600 Bytes) of package /linux/misc/old/cvs-1.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /* This file is generated via a rule in Makefile.am from the
    2  * config.h.in file.
    3  *
    4  * *** DO NOT EDIT THIS FILE DIRECTLY ***
    5  *
    6  * Edit config.h.in instead.
    7  */
    8 /* config.h --- configuration file for Windows NT
    9    Jim Blandy <jimb@cyclic.com> --- July 1995  */
   10 
   11 /* The following macros are usually defined by running ./configure under UNIX
   12  * OSs.  The configure script won't run there, so encode what we know about
   13  * Windows here.
   14  */
   15 
   16 /* This file lives in the windows-NT subdirectory, which is only included
   17    in your header search path if you're working under Microsoft Visual C++,
   18    and use ../cvsnt.mak for your project.  Thus, this is the right place to
   19    put configuration information for Windows NT.  */
   20 
   21 /* Define if on AIX 3.
   22    System headers sometimes define this.
   23    We just want to avoid a redefinition error message.  */
   24 #undef _ALL_SOURCE
   25 
   26 /* Define to empty if the keyword does not work.  */
   27 /* Const is working.  */
   28 #undef const
   29 
   30 /* Define to `int' if <sys/types.h> doesn't define.  */
   31 /* Windows NT doesn't have gid_t.  It doesn't even really have group
   32    numbers, I think.  This will take more thought to get right, but
   33    let's get it running first.  */
   34 #define gid_t int
   35 
   36 /* Define if you support file names longer than 14 characters.  */
   37 /* Yes.  Woo.  */
   38 #define HAVE_LONG_FILE_NAMES 1
   39 
   40 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
   41 /* If POSIX.1 requires this, why doesn't WNT have it?  */
   42 #undef HAVE_SYS_WAIT_H
   43 
   44 /* Define if utime(file, NULL) sets file's timestamp to the present.  */
   45 /* Experimentation says yes.  Wish I had the full documentation, but
   46    I have neither the CD-ROM nor a CD-ROM drive to put it in.  */
   47 #define HAVE_UTIME_NULL 1
   48 
   49 /* On Windows NT, when a file is being watched, utime expects a file
   50    to be writable */
   51 #define UTIME_EXPECTS_WRITABLE
   52 
   53 /* Define if on MINIX.  */
   54 /* Hah.  */
   55 #undef _MINIX
   56 
   57 /* Define to `int' if <sys/types.h> doesn't define.  */
   58 #define mode_t int
   59 
   60 /* Define to `int' if <sys/types.h> doesn't define.  */
   61 /* Under Windows NT, we use the process handle as the pid.
   62    We could #define pid_t to be HANDLE, but that would require
   63    us to #include <windows.h>, which I don't trust, and HANDLE
   64    is a pointer type anyway.  */
   65 #define pid_t int
   66 
   67 /* Define if the system does not provide POSIX.1 features except
   68    with this defined.  */
   69 /* This string doesn't appear anywhere in the system header files,
   70    so I assume it's irrelevant.  */
   71 #undef _POSIX_1_SOURCE
   72 
   73 /* Define if you need to in order for stat and other things to work.  */
   74 /* Same as for _POSIX_1_SOURCE, above.  */
   75 #undef _POSIX_SOURCE
   76 
   77 /* Define as the return type of signal handlers (int or void).  */
   78 /* The manual says they return void.  */
   79 #define RETSIGTYPE void
   80 
   81 /* The default remote shell to use, if one does not specify the CVS_RSH
   82    environment variable. */
   83 #define RSH_DFLT "rsh"
   84 
   85 /* The default remote shell to use, if one does not specify the CVS_SSH
   86    environment variable. */
   87 #define SSH_DFLT "putty"
   88 
   89 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
   90 /* sys/types.h doesn't define it, but stdio.h does, which cvs.h
   91    #includes, so things should be okay.  */
   92 /* #undef size_t */
   93 
   94 /* Define if the `S_IS*' macros in <sys/stat.h> do not work properly.  */
   95 /* We don't seem to have them at all; let ../lib/system.h define them.  */
   96 #define STAT_MACROS_BROKEN 1
   97  
   98 /* Define if you have the ANSI C header files.  */
   99 /* We'd damn well better.  */
  100 #define STDC_HEADERS 1
  101 
  102 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
  103 /* We don't have <sys/time.h> at all.  Why isn't there a definition
  104    for HAVE_SYS_TIME_H anywhere in config.h.in?  */
  105 #undef TIME_WITH_SYS_TIME
  106 
  107 /* Define to `int' if <sys/types.h> doesn't define.  */
  108 #define uid_t int
  109 
  110 /* Define if you have MIT Kerberos version 4 available.  */
  111 /* We don't.  Cygnus says they've ported it to Windows 3.1, but
  112    I don't know if that means that it works under Windows NT as
  113    well.  */
  114 #undef HAVE_KERBEROS
  115 
  116 /* Define if you want CVS to be able to be a remote repository client.  */
  117 /* We just want the client stuff.  */
  118 #define CLIENT_SUPPORT
  119 
  120 /* Define if you want CVS to be able to serve repositories to remote
  121    clients.  */
  122 /* No server support yet.  Note that you don't have to define
  123    CLIENT_SUPPORT or SERVER_SUPPORT to enable the non-remote code;
  124    that's always there.  */
  125 #undef SERVER_SUPPORT
  126 
  127 /* Define if you have the connect function.  */
  128 /* Not used?  */
  129 #define HAVE_CONNECT
  130 
  131 /* Define if you have the fchdir function.  */
  132 #undef HAVE_FCHDIR
  133 
  134 /* Define if you have the fchmod function.  */
  135 #undef HAVE_FCHMOD
  136 
  137 /* Define if you have the fsync function.  */
  138 #undef HAVE_FSYNC
  139 
  140 /* Define if you have the ftime function.  */
  141 #define HAVE_FTIME 1
  142 
  143 /* Define if you have the ftruncate function.  */
  144 #undef HAVE_FTRUNCATE
  145 
  146 /* Define if you have the getpagesize function.  */
  147 #undef HAVE_GETPAGESIZE
  148 
  149 /* Define if you have the krb_get_err_text function.  */
  150 #undef HAVE_KRB_GET_ERR_TEXT
  151 
  152 /* Define if you have the putenv function.  */
  153 #define HAVE_PUTENV 1
  154 
  155 /* Define if you have the sigaction function.  */
  156 #undef HAVE_SIGACTION
  157 
  158 /* Define if you have the sigblock function.  */
  159 #undef HAVE_SIGBLOCK
  160 
  161 /* Define if you have the sigprocmask function.  */
  162 #undef HAVE_SIGPROCMASK
  163 
  164 /* Define if you have the sigsetmask function.  */
  165 #undef HAVE_SIGSETMASK
  166 
  167 /* Define if you have the sigvec function.  */
  168 #undef HAVE_SIGVEC
  169 
  170 /* Define if you have the timezone function.  */
  171 /* Hmm, I actually rather think it's an extern long
  172    variable; that message was mechanically generated
  173    by autoconf.  And I don't see any actual uses of
  174    this function in the code anyway, hmm.  */
  175 #undef HAVE_TIMEZONE
  176 
  177 /* Define if you have the usleep function.  */
  178 #define HAVE_USLEEP 1
  179 
  180 /* Define if you have the vfork function.  */
  181 #undef HAVE_VFORK
  182 
  183 /* Define if you have the vprintf function.  */
  184 #define HAVE_VPRINTF 1
  185 
  186 /* Define if you have the <direct.h> header file.  */
  187 /* Windows NT wants this for mkdir and friends.  */
  188 #define HAVE_DIRECT_H 1
  189 
  190 /* Define if you have the <dirent.h> header file.  */
  191 /* No, but we have the <direct.h> header file...  */
  192 #undef HAVE_DIRENT_H
  193 
  194 /* Define if you have the <errno.h> header file.  */
  195 #define HAVE_ERRNO_H 1
  196 
  197 /* Define if you have the <fcntl.h> header file.  */
  198 #define HAVE_FCNTL_H 1
  199 
  200 /* Define if you have the <io.h> header file.  */
  201 /* Apparently this is where Windows NT declares all the low-level
  202    Unix I/O routines like open and creat and stuff.  */
  203 #define HAVE_IO_H 1
  204 
  205 /* Define to 1 if you have the <limits.h> header file. */
  206 #define HAVE_LIMITS_H 1
  207 
  208 /* Define if you have the <memory.h> header file.  */
  209 #define HAVE_MEMORY_H 1
  210 
  211 /* Define if you have the <ndbm.h> header file.  */
  212 #undef HAVE_NDBM_H
  213 
  214 /* Define if you have the <ndir.h> header file.  */
  215 #define HAVE_NDIR_H 1
  216 
  217 /* Define if you have the <string.h> header file.  */
  218 #define HAVE_STRING_H 1
  219 
  220 /* Define if you have the <sys/bsdtypes.h> header file.  */
  221 #undef HAVE_SYS_BSDTYPES_H
  222 
  223 /* Define if you have the <sys/dir.h> header file.  */
  224 #undef HAVE_SYS_DIR_H
  225 
  226 /* Define if you have the <sys/ndir.h> header file.  */
  227 #undef HAVE_SYS_NDIR_H
  228 
  229 /* Define if you have the <sys/param.h> header file.  */	
  230 #undef HAVE_SYS_PARAM_H
  231 
  232 /* Define if you have the <sys/select.h> header file.  */
  233 #undef HAVE_SYS_SELECT_H
  234 
  235 /* Define if you have the <sys/timeb.h> header file.  */
  236 #define HAVE_SYS_TIMEB_H 1
  237 
  238 /* Define if you have the <sys/time.h> header file.  */
  239 #undef HAVE_SYS_TIME_H
  240 
  241 /* Define if you have the <sys/utime.h> header file.  */
  242 #define HAVE_SYS_UTIME_H 1
  243 
  244 /* Define if you have the <unistd.h> header file.  */
  245 #undef HAVE_UNISTD_H
  246 
  247 /* Define if you have the <utime.h> header file.  */
  248 #undef HAVE_UTIME_H
  249 
  250 /* Define if you have the inet library (-linet).  */
  251 #undef HAVE_LIBINET
  252 
  253 /* Define if you have the nsl library (-lnsl).  */
  254 /* This is not used anywhere in the source code.  */
  255 #undef HAVE_LIBNSL
  256 
  257 /* Define if you have the nsl_s library (-lnsl_s).  */
  258 #undef HAVE_LIBNSL_S
  259 
  260 /* Define if you have the socket library (-lsocket).  */
  261 /* This isn't ever used either.  */
  262 #undef HAVE_LIBSOCKET
  263 
  264 #define CVS_FSTAT wnt_fstat
  265 extern int wnt_fstat (int fd, struct stat *sb);
  266 /* Under Windows NT, mkdir only takes one argument.  */
  267 #define CVS_MKDIR wnt_mkdir
  268 extern int wnt_mkdir (const char *PATH, int MODE);
  269 #define CVS_STAT wnt_stat
  270 extern int wnt_stat ();
  271 #define CVS_LSTAT wnt_lstat
  272 extern int wnt_lstat ();
  273 #define CVS_UTIME wnt_utime
  274 extern int wnt_utime();
  275 
  276 #define CVS_RENAME wnt_rename
  277 extern int wnt_rename (const char *, const char *);
  278 
  279 /* This function doesn't exist under Windows NT; we
  280    provide a stub.  */
  281 extern int readlink (char *path, char *buf, int buf_size);
  282 
  283 /* Define to 1 if you have the <process.h> header file. */
  284 #define HAVE_PROCESS_H 1
  285 
  286 /* This is just a call to GetCurrentProcessID.
  287    However, it is defined in <process.h> as
  288    __declspec(dllimport) int __cdecl getpid(void);
  289   On UNIX systems, expect a declaration in <unitstd.h>
  290   for getpid().
  291  */
  292 #ifdef HAVE_PROCESS_H
  293 # define HAVE_GETPID 1
  294 #endif
  295 
  296 #ifndef HAVE_GETPID
  297 extern pid_t getpid (void);
  298 #endif
  299 
  300 /* We definitely have prototypes.  */
  301 #define USE_PROTOTYPES 1
  302 
  303 /* This is just a call to the Win32 Sleep function.  */
  304 unsigned int sleep (unsigned int);
  305 /* So is this */
  306 int usleep (unsigned long);
  307 
  308 /* Don't worry, Microsoft, it's okay for these functions to
  309    be in our namespace.  */
  310 #define popen _popen
  311 #define pclose _pclose
  312 
  313 /* When writing binary data to stdout, we better set
  314    stdout to binary mode using setmode.  */
  315 #define USE_SETMODE_STDOUT 1
  316 
  317 /* Diff also has an ifdef for setmode, and it is HAVE_SETMODE.  */
  318 #define HAVE_SETMODE 1
  319 
  320 /* Diff needs us to define this.  I think it could always be
  321    -1 for CVS, because we pass temporary files to diff, but
  322    config.h seems like the easiest place to put this, so for
  323    now we put it here.  */
  324 #define same_file(s,t) (-1)
  325 
  326 /* This is where old bits go to die under Windows NT.  */
  327 #define DEVNULL "nul"
  328 
  329 /* Don't use an rsh subprocess to connect to the server, because
  330    the rsh does inappropriate translations on the data (CR-LF/LF).  */
  331 #define RSH_NOT_TRANSPARENT 1
  332 extern void wnt_start_server (int *tofd, int *fromfd,
  333 			      char *client_user,
  334 			      char *server_user,
  335 			      char *server_host,
  336 			      char *server_cvsroot);
  337 extern void wnt_shutdown_server (int fd);
  338 #define START_SERVER wnt_start_server
  339 #define SHUTDOWN_SERVER wnt_shutdown_server
  340 
  341 #define SYSTEM_INITIALIZE(pargc,pargv) init_winsock()
  342 extern void init_winsock();
  343 #define SYSTEM_CLEANUP() wnt_cleanup()
  344 extern void wnt_cleanup (void);
  345 
  346 #define HAVE_WINSOCK_H
  347 
  348 /* This tells the client that it must use send()/recv() to talk to the
  349    server if it is connected to the server via a socket; Win95 needs
  350    it because _open_osfhandle doesn't work.  */
  351 #define NO_SOCKET_TO_FD 1
  352 
  353 /* This tells the client that, in addition to needing to use
  354    send()/recv() to do socket I/O, the error codes for send()/recv()
  355    and other socket operations are not available through errno.
  356    Instead, this macro should be used to obtain an error code. */
  357 #define SOCK_ERRNO (WSAGetLastError ())
  358 
  359 /* This tells the client that, in addition to needing to use
  360    send()/recv() to do socket I/O, the error codes for send()/recv()
  361    and other socket operations are not known to strerror.  Instead,
  362    this macro should be used to convert the error codes to strings. */
  363 #define SOCK_STRERROR sock_strerror
  364 extern char *sock_strerror (int errnum);
  365 
  366 /* The internal rsh client uses sockets not file descriptors.  Note
  367    that as the code stands now, it often takes values from a SOCKET and
  368    puts them in an int.  This is ugly but it seems like sizeof
  369    (SOCKET) <= sizeof (int) on win32, even the 64-bit variants.  */
  370 #define START_SERVER_RETURNS_SOCKET 1
  371 
  372 /* Is this true on NT?  Seems like I remember reports that NT 3.51 has
  373    problems with 200K writes (of course, the issue of large writes is
  374    moot since the use of buffer.c ensures that writes will only be as big
  375    as the buffers).  */
  376 #define SEND_NEVER_PARTIAL 1
  377 
  378 /* Force lib/regex.c to use malloc instead of messing around with alloca
  379    and define the old re_comp routines that we use.  */
  380 #define REGEX_MALLOC 1
  381 #define _REGEX_RE_COMP 1
  382 
  383 /* ssize_t not available under Windows */
  384 typedef int ssize_t;
  385 
  386 /*
  387  * When committing a permanent change, CVS and RCS make a log entry of
  388  * who committed the change.  If you are committing the change logged in
  389  * as "root" (not under "su" or other root-priv giving program), CVS/RCS
  390  * cannot determine who is actually making the change.
  391  *
  392  * As such, by default, CVS disallows changes to be committed by users
  393  * logged in as "root".  You can disable this option by commenting
  394  * out the lines below.
  395  *
  396  * Under Windows NT, privileges are associated with groups, not users,
  397  * so the case in which someone has logged in as root does not occur.
  398  * Thus, there is no need for this hack.
  399  *
  400  * Are we sure this doesn't happen with Administrator? -DRP
  401  */
  402 #undef CVS_BADROOT
  403 
  404 /*
  405  * The following configuration options used to be defined in options.h.
  406  */
  407 
  408 /*
  409  * For portability and heterogeneity reasons, CVS is shipped by default using
  410  * my own text-file version of the ndbm database library in the src/myndbm.c
  411  * file.  If you want better performance and are not concerned about
  412  * heterogeneous hosts accessing your modules file, turn this option off.
  413  */
  414 #ifndef MY_NDBM
  415 #define	MY_NDBM
  416 #endif
  417 
  418 /* Directory used for storing temporary files, if not overridden by
  419    environment variables or the -T global option.  There should be little
  420    need to change this (-T is a better mechanism if you need to use a
  421    different directory for temporary files).  */
  422 #ifndef TMPDIR_DFLT
  423 #define	TMPDIR_DFLT	"c:\\temp"
  424 #endif
  425 
  426 /*
  427  * The default editor to use, if one does not specify the "-e" option to cvs,
  428  * or does not have an EDITOR environment variable.  I set this to just "vi",
  429  * and use the shell to find where "vi" actually is.  This allows sites with
  430  * /usr/bin/vi or /usr/ucb/vi to work equally well (assuming that your PATH
  431  * is reasonable).
  432  *
  433  * The notepad program seems to be Windows NT's bare-bones text editor.
  434  */
  435 #ifndef EDITOR_DFLT
  436 #define	EDITOR_DFLT	"notepad"
  437 #endif
  438 
  439 /*
  440  * The default umask to use when creating or otherwise setting file or
  441  * directory permissions in the repository.  Must be a value in the
  442  * range of 0 through 0777.  For example, a value of 002 allows group
  443  * rwx access and world rx access; a value of 007 allows group rwx
  444  * access but no world access.  This value is overridden by the value
  445  * of the CVSUMASK environment variable, which is interpreted as an
  446  * octal number.
  447  */
  448 #ifndef UMASK_DFLT
  449 #define	UMASK_DFLT	002
  450 #endif
  451 
  452 /*
  453  * The cvs admin command is restricted to the members of the group
  454  * CVS_ADMIN_GROUP.  If this group does not exist, all users are
  455  * allowed to run cvs admin.  To disable the cvs admin for all users,
  456  * create an empty group CVS_ADMIN_GROUP.  To disable access control for
  457  * cvs admin, comment out the define below.
  458  *
  459  * Under Windows NT, this must not be used because it tries to include
  460  * <grp.h>
  461  */
  462 #ifdef CVS_ADMIN_GROUP
  463 /* #define CVS_ADMIN_GROUP "cvsadmin" */
  464 #endif
  465 
  466 /*
  467  * When committing or importing files, you must enter a log message.
  468  * Normally, you can do this either via the -m flag on the command line or an
  469  * editor will be started for you.  If you like to use logging templates (the
  470  * rcsinfo file within the $CVSROOT/CVSROOT directory), you might want to
  471  * force people to use the editor even if they specify a message with -m.
  472  * Enabling FORCE_USE_EDITOR will cause the -m message to be appended to the
  473  * temp file when the editor is started.
  474  */
  475 #ifndef FORCE_USE_EDITOR
  476 /* #define 	FORCE_USE_EDITOR */
  477 #endif
  478 
  479 /*
  480  * Yes, we can do the authenticated client.
  481  */
  482 #define AUTH_CLIENT_SUPPORT 1
  483 
  484 /* End of CVS options.h section */
  485 
  486 /* The following two macros are defined by running ./configure and then make
  487  * under UNIX OSs.
  488  */
  489 #define PACKAGE_BUGREPORT "bug-cvs@nongnu.org"
  490 #define PACKAGE_STRING "Concurrent Versions System (CVS) 1.11.23"
  491 
  492 /* The following were added to make #include "xsize.h" work. */
  493 
  494 /* Define to `__inline__' or `__inline' if that's what the C compiler
  495    calls it, or to nothing if 'inline' is not supported under any name.  */
  496 #define inline __inline
  497 
  498 /* Define as the maximum value of type 'size_t', if the system doesn't define
  499    it. */
  500 /* Windows has a '#define SIZE_MAX UINT_MAX' in <limits.h> now. */
  501 #ifdef HAVE_LIMITS_H
  502 # include <limits.h>
  503 #endif
  504 #ifndef SIZE_MAX
  505 # define SIZE_MAX ((size_t) -1)
  506 #endif
  507 
  508 /* End of #include "xsize.h" fix. */