"Fossies" - the Fresh Open Source Software Archive

Member "cvs-1.11.23/windows-NT/config.h.in" (7 May 2008, 16414 Bytes) of package /linux/misc/old/cvs-1.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

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