"Fossies" - the Fresh Open Source Software Archive

Member "cvs-1.11.23/vms/config.h" (7 May 2008, 10960 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. For more information about "config.h" see the Fossies "Dox" file reference documentation.

    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 - OpenVMS/AXP specific configuration
    9               June 1995 - <benjamin@cyclic.com> */
   10 
   11 /* The following macro are defined by running ./configure under UNIX OSs.  */
   12 #define PACKAGE_BUGREPORT "bug-cvs@nongnu.org"
   13 #define PACKAGE_STRING "Concurrent Versions System (CVS) 1.11.23"
   14 
   15 /* We only want to build the client */
   16 #define CLIENT_SUPPORT 1
   17 #undef SERVER_SUPPORT
   18 
   19 /* Define as the maximum value of type 'size_t', if the system doesn't define
   20    it. */
   21 #define SIZE_MAX SSIZE_MAX
   22 
   23 /* Set up for other #if's which follow */
   24 #ifndef __DECC_VER
   25 #define __DECC_VER  0
   26 #endif
   27 #ifndef __VMS_VER
   28 #define __VMS_VER   0
   29 #endif
   30 
   31 /* VMS is case insensitive */
   32 /* #define FOLD_FN_CHAR(c) tolower(c) */
   33 
   34 /* Temporary files named "#booger.3.6~" aren't legal under VMS,
   35    Define this if you want to use names which are legal for VMS */
   36 #define USE_VMS_FILENAMES 1
   37 
   38 /* Define to empty if the keyword does not work.  */
   39 /* #undef const */
   40 
   41 /* Define if you have <dirent.h>.  */
   42 /* #undef DIRENT */
   43 
   44 /* Define if you have <sys/param.h> */
   45 /* #undef HAVE_SYS_PARAM_H */
   46 
   47 /* Define to `int' if <sys/types.h> doesn't define.  */
   48 /* #undef gid_t */
   49 
   50 /* Define to `__inline__' or `__inline' if that's what the C compiler
   51    calls it, or to nothing if 'inline' is not supported under any name.  */
   52 #ifndef __cplusplus
   53 #define inline
   54 #endif
   55 
   56 /* Define if you support file names longer than 14 characters.  */
   57 /* #undef HAVE_LONG_FILE_NAMES */
   58 
   59 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
   60 /* #define HAVE_SYS_WAIT_H 1 OpenVMS POSIX has it, but VMS does not. */
   61 #undef POSIX
   62 
   63 /* Define if utime(file, NULL) sets file's timestamp to the present.  */
   64 /* #undef HAVE_UTIME_NULL */
   65 
   66 /* Define if on MINIX.  */
   67 /* #undef _MINIX */
   68 
   69 /* Define to `int' if <sys/types.h> doesn't define.  */
   70 /* #undef mode_t */
   71 
   72 /* Define if you don't have <dirent.h>, but have <ndir.h>.  */
   73 #define HAVE_NDIR_H 1
   74 
   75 /* Define to `int' if <sys/types.h> doesn't define.  */
   76 /* #undef pid_t */
   77 
   78 /* Define if the system does not provide POSIX.1 features except
   79    with this defined.  */
   80 /* #undef _POSIX_1_SOURCE */
   81 
   82 /* Define if you need to in order for stat and other things to work.  */
   83 /* #undef _POSIX_SOURCE */
   84 
   85 /* Define as the return type of signal handlers (int or void).  */
   86 #define RETSIGTYPE void
   87 
   88 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
   89 /* #undef size_t */
   90 
   91 /* Define if you have the ANSI C header files.  */
   92 #define STDC_HEADERS 1
   93 
   94 /* Define if you don't have <dirent.h>, but have <sys/dir.h>.  */
   95 /* #undef SYSDIR */
   96 
   97 /* Define if you don't have <dirent.h>, but have <sys/ndir.h>.  */
   98 /* #undef SYSNDIR */
   99 
  100 /* Define if your <sys/time.h> declares struct tm.  */
  101 /* #undef TM_IN_SYS_TIME */
  102 
  103 /* Define to `int' if <sys/types.h> doesn't define.  */
  104 /* #undef uid_t */
  105 
  106 /* Define if the closedir function returns void instead of int.  */
  107 /* #undef VOID_CLOSEDIR */
  108 
  109 /* Define if you have MIT Kerberos version 4 available.  */
  110 /* #undef HAVE_KERBEROS */
  111 
  112 /* Define if you have the fchmod function.  */
  113 /* #undef HAVE_FCHMOD */
  114 
  115 /* Define if you have the fsync function.  */
  116 /* #undef HAVE_FSYNC */
  117 
  118 /* Define if you have the ftime function.  */
  119 /* #undef HAVE_FTIME */
  120 
  121 /* Define if you have the ftruncate function.  */
  122 /* #undef HAVE_FTRUNCATE */
  123 
  124 /* Define if you have the getpagesize function.  */
  125 /* #undef HAVE_GETPAGESIZE */
  126 
  127 /* Define if you have the krb_get_err_text function.  */
  128 /* #undef HAVE_KRB_GET_ERR_TEXT */
  129 
  130 /* Define if you have the mkdir function */
  131 #define HAVE_MKDIR 1
  132 
  133 /* Define if you have the rmdir function */
  134 #define HAVE_RMDIR 1
  135 
  136 /* Define if you have the rename function */
  137 #define HAVE_RENAME 1
  138 
  139 /* Define if you have the putenv function.  */
  140 /* #undef HAVE_PUTENV */
  141 
  142 /* Define if you have the timezone function.  */
  143 /* #undef HAVE_TIMEZONE */
  144 
  145 /* Define if you have the vfork function.  */
  146 #define HAVE_VFORK
  147 
  148 /* Define if you have the vprintf function.  */
  149 #define HAVE_VPRINTF
  150 
  151 /* Define if you have the <errno.h> header file.  */
  152 /* #undef HAVE_ERRNO_H */
  153 
  154 /* Define if you have the <fcntl.h> header file.  */
  155 #if __DECC_VER >= 50700000
  156 # define HAVE_FCNTL_H 1
  157 #endif
  158 
  159 /* Define if you have the <memory.h> header file.  */
  160 /* #undef HAVE_MEMORY_H */
  161 
  162 /* Define if you have the <ndbm.h> header file.  */
  163 /* #undef HAVE_NDBM_H */
  164 
  165 /* Define if you have the <string.h> header file.  */
  166 #define HAVE_STRING_H 1
  167 
  168 /* Define to force lib/regex.c to use malloc instead of alloca.  */
  169 #define REGEX_MALLOC 1
  170 
  171 /* Define to force lib/regex.c to define re_comp et al.  */
  172 #define _REGEX_RE_COMP 1
  173 
  174 /* Define if you have the <sys/select.h> header file.  */
  175 /* #undef HAVE_SYS_SELECT_H */
  176 
  177 /* Define this if your <sys/socket.h> defines select() */
  178 #define SYS_SOCKET_H_DEFINES_SELECT 1
  179 
  180 /* Define if you have the <sys/timeb.h> header file.  */
  181 #define HAVE_SYS_TIMEB_H 1
  182 #define HAVE_TIMEB_H 1
  183 
  184 /* Define if you have the <unistd.h> header file.  */
  185 #define HAVE_UNISTD_H 1
  186 
  187 /* Define if you have the <utime.h> header file.  */
  188 /* #undef HAVE_UTIME_H */
  189 
  190 /* Define if you have the nsl library (-lnsl).  */
  191 /* #undef HAVE_LIBNSL */
  192 
  193 /* Define if you have the socket library (-lsocket).  */
  194 /* #undef HAVE_LIBSOCKET */
  195 
  196 /* Under VMS, filenames are case-insensitive.  */
  197 #define FILENAMES_CASE_INSENSITIVE 1
  198 
  199 #define RSH_NOT_TRANSPARENT 1
  200 #define START_SERVER vms_start_server
  201 #define NO_SOCKET_TO_FD 1
  202 #define START_SERVER_RETURNS_SOCKET 1
  203 #define SEND_NEVER_PARTIAL 1
  204 #define SYSTEM_GETCALLER() getlogin ()
  205 #define GETPWNAM_MISSING 1
  206 
  207 /* Avoid name conflicts with VMS libraries.  */
  208 #define getopt cvs_getopt
  209 #define optind cvs_optind
  210 #define optopt cvs_optopt
  211 #define optarg cvs_optarg
  212 #define opterr cvs_opterr
  213 
  214 /* Avoid open/read/closedir name conflicts with DEC C 5.7 libraries,
  215    and fix the problem with readdir() retaining the trailing period.  */
  216 #define CVS_OPENDIR  vms_opendir
  217 #define CVS_READDIR  vms_readdir
  218 #define CVS_CLOSEDIR vms_closedir
  219 
  220 /* argv[0] in VMS is the full pathname which would look really ugly in error
  221    messages.  Even if we stripped out the directory and ".EXE;5", it would
  222    still be misleading, as if one has used "OLDCVS :== ...CVS-JULY.EXE",
  223    then argv[0] does not contain the name of the command which the user
  224    invokes CVS with.  If there is a way for VMS to find the latter, that
  225    might be worth messing with, but it also seems fine to just always call
  226    it "cvs".  */
  227 #define ARGV0_NOT_PROGRAM_NAME
  228 
  229 #define CVS_UNLINK vms_unlink
  230 
  231 /* There is some pretty unixy code in src/commit.c which tries to
  232    prevent people from commiting changes as "root" (which would prevent
  233    CVS from making a log entry with the actual user).  On VMS, I suppose
  234    one could say that SYSTEM is equivalent, but I would think that it
  235    actually is not necessary; at least at the VMS sites I've worked at
  236    people just used their own accounts (turning privileges on and off
  237    as desired).  */
  238 #undef  CVS_BADROOT
  239 
  240 #define NO_SOCKET_TO_FD 1
  241 
  242 /*
  243  * The following configuration options used to be defined in options.h.
  244  */
  245 
  246 /*
  247  * For portability and heterogeneity reasons, CVS is shipped by default using
  248  * my own text-file version of the ndbm database library in the src/myndbm.c
  249  * file.  If you want better performance and are not concerned about
  250  * heterogeneous hosts accessing your modules file, turn this option off.
  251  */
  252 #ifndef MY_NDBM
  253 #define MY_NDBM
  254 #endif
  255 
  256 /* Directory used for storing temporary files, if not overridden by
  257    environment variables or the -T global option.  There should be little
  258    need to change this (-T is a better mechanism if you need to use a
  259    different directory for temporary files).  */
  260 #ifndef TMPDIR_DFLT
  261 #define TMPDIR_DFLT "sys$scratch"
  262 #endif
  263 
  264 /*
  265  * The default editor to use, if one does not specify the "-e" option to cvs,
  266  * or does not have an EDITOR environment variable.  I set this to just "vi",
  267  * and use the shell to find where "vi" actually is.  This allows sites with
  268  * /usr/bin/vi or /usr/ucb/vi to work equally well (assuming that your PATH
  269  * is reasonable).
  270  */
  271 #ifndef EDITOR_DFLT
  272 #define EDITOR_DFLT ""
  273 #endif
  274 
  275 /*
  276  * The default umask to use when creating or otherwise setting file or
  277  * directory permissions in the repository.  Must be a value in the
  278  * range of 0 through 0777.  For example, a value of 002 allows group
  279  * rwx access and world rx access; a value of 007 allows group rwx
  280  * access but no world access.  This value is overridden by the value
  281  * of the CVSUMASK environment variable, which is interpreted as an
  282  * octal number.
  283  */
  284 #ifndef UMASK_DFLT
  285 #define UMASK_DFLT  002
  286 #endif
  287 
  288 /*
  289  * The cvs admin command is restricted to the members of the group
  290  * CVS_ADMIN_GROUP.  If this group does not exist, all users are
  291  * allowed to run cvs admin.  To disable the cvs admin for all users,
  292  * create an empty group CVS_ADMIN_GROUP.  To disable access control for
  293  * cvs admin, comment out the define below.
  294  */
  295 #ifndef CVS_ADMIN_GROUP
  296 /* #define CVS_ADMIN_GROUP "cvsadmin" */
  297 #endif
  298 
  299 /*
  300  * When committing or importing files, you must enter a log message.
  301  * Normally, you can do this either via the -m flag on the command line or an
  302  * editor will be started for you.  If you like to use logging templates (the
  303  * rcsinfo file within the $CVSROOT/CVSROOT directory), you might want to
  304  * force people to use the editor even if they specify a message with -m.
  305  * Enabling FORCE_USE_EDITOR will cause the -m message to be appended to the
  306  * temp file when the editor is started.
  307  */
  308 #ifndef FORCE_USE_EDITOR
  309 /* #define  FORCE_USE_EDITOR */
  310 #endif
  311 
  312 /*
  313  * Yes, we can do the authenticated client.
  314  */
  315 #define AUTH_CLIENT_SUPPORT 1
  316 
  317 /*
  318  * If you are working with a large remote repository and a 'cvs checkout' is
  319  * swamping your network and memory, define these to enable flow control.
  320  * You will end up with even less guarantees of a consistant checkout,
  321  * but that may be better than no checkout at all.  The master server process
  322  * will monitor how far it is getting behind, if it reaches the high water
  323  * mark, it will signal the child process to stop generating data when
  324  * convenient (ie: no locks are held, currently at the beginning of a 
  325  * new directory).  Once the buffer has drained sufficiently to reach the
  326  * low water mark, it will be signalled to start again.
  327  * -- EXPERIMENTAL! --  A better solution may be in the works.
  328  * You may override the default hi/low watermarks here too.
  329  */
  330 #ifndef SERVER_FLOWCONTROL
  331 /* #define SERVER_FLOWCONTROL */
  332 /* #define SERVER_HI_WATER (2 * 1024 * 1024) */
  333 /* #define SERVER_LO_WATER (1 * 1024 * 1024) */
  334 #endif
  335 
  336 /* End of CVS options.h section */
  337 
  338 /* Return non-zero iff FILENAME is absolute.
  339    Trivial under Unix, but more complicated under other systems.  */
  340 #define ISABSOLUTE(filename) (filename[0] == '/' || filename[0] == '[' || filename[0] == '<' || strchr(filename, ':'))
  341 
  342 #include "vms.h"