home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / cvs-1.8.7-src.tgz / tar.out / fsf / cvs / windows-NT / config.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  10KB  |  324 lines

  1. /* config.h --- configuration file for Windows NT
  2.    Jim Blandy <jimb@cyclic.com> --- July 1995  */
  3.  
  4. /* This file lives in the windows-NT subdirectory, which is only included
  5.    in your header search path if you're working under Microsoft Visual C++,
  6.    and use ../cvsnt.mak for your project.  Thus, this is the right place to
  7.    put configuration information for Windows NT.  */
  8.  
  9. /* Define if on AIX 3.
  10.    System headers sometimes define this.
  11.    We just want to avoid a redefinition error message.  */
  12. #undef _ALL_SOURCE
  13.  
  14. /* Define to empty if the keyword does not work.  */
  15. /* Const is working.  */
  16. #undef const
  17.  
  18. /* Define to `int' if <sys/types.h> doesn't define.  */
  19. /* Windows NT doesn't have gid_t.  It doesn't even really have group
  20.    numbers, I think.  This will take more thought to get right, but
  21.    let's get it running first.  */
  22. #define gid_t int
  23.  
  24. /* Define if you support file names longer than 14 characters.  */
  25. /* Yes.  Woo.  */
  26. #define HAVE_LONG_FILE_NAMES 1
  27.  
  28. /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
  29. /* If POSIX.1 requires this, why doesn't WNT have it?  */
  30. #undef HAVE_SYS_WAIT_H
  31.  
  32. /* Define if utime(file, NULL) sets file's timestamp to the present.  */
  33. /* Experimentation says yes.  Wish I had the full documentation, but
  34.    I have neither the CD-ROM nor a CD-ROM drive to put it in.  */
  35. #define HAVE_UTIME_NULL 1
  36.  
  37. /* Define if on MINIX.  */
  38. /* Hah.  */
  39. #undef _MINIX
  40.  
  41. /* Define to `int' if <sys/types.h> doesn't define.  */
  42. #define mode_t int
  43.  
  44. /* Define to `int' if <sys/types.h> doesn't define.  */
  45. /* Under Windows NT, we use the process handle as the pid.
  46.    We could #define pid_t to be HANDLE, but that would require
  47.    us to #include <windows.h>, which I don't trust, and HANDLE
  48.    is a pointer type anyway.  */
  49. #define pid_t int
  50.  
  51. /* Define if the system does not provide POSIX.1 features except
  52.    with this defined.  */
  53. /* This string doesn't appear anywhere in the system header files,
  54.    so I assume it's irrelevant.  */
  55. #undef _POSIX_1_SOURCE
  56.  
  57. /* Define if you need to in order for stat and other things to work.  */
  58. /* Same as for _POSIX_1_SOURCE, above.  */
  59. #undef _POSIX_SOURCE
  60.  
  61. /* Define as the return type of signal handlers (int or void).  */
  62. /* The manual says they return void.  */
  63. #define RETSIGTYPE void
  64.  
  65. /* Define to `unsigned' if <sys/types.h> doesn't define.  */
  66. /* sys/types.h doesn't define it, but stdio.h does, which cvs.h
  67.    #includes, so things should be okay.  */
  68. /* #undef size_t */
  69.  
  70. /* Define if the `S_IS*' macros in <sys/stat.h> do not work properly.  */
  71. /* We don't seem to have them at all; let ../lib/system.h define them.  */
  72. #define STAT_MACROS_BROKEN 1
  73.  
  74. /* Define if you have the ANSI C header files.  */
  75. /* We'd damn well better.  */
  76. #define STDC_HEADERS 1
  77.  
  78. /* Define if you can safely include both <sys/time.h> and <time.h>.  */
  79. /* We don't have <sys/time.h> at all.  Why isn't there a definition
  80.    for HAVE_SYS_TIME_H anywhere in config.h.in?  */
  81. #undef TIME_WITH_SYS_TIME
  82.  
  83. /* Define to `int' if <sys/types.h> doesn't define.  */
  84. #define uid_t int
  85.  
  86. /* Define if you have MIT Kerberos version 4 available.  */
  87. /* We don't.  Cygnus says they've ported it to Windows 3.1, but
  88.    I don't know if that means that it works under Windows NT as
  89.    well.  */
  90. #undef HAVE_KERBEROS
  91.  
  92. /* Define if you want CVS to be able to be a remote repository client.  */
  93. /* We just want the client stuff.  */
  94. #define CLIENT_SUPPORT
  95.  
  96. /* Define if you want CVS to be able to serve repositories to remote
  97.    clients.  */
  98. /* No server support yet.  Note that you don't have to define
  99.    CLIENT_SUPPORT or SERVER_SUPPORT to enable the non-remote code;
  100.    that's always there.  */
  101. #undef SERVER_SUPPORT
  102.  
  103. /* the path to the gnu diff program on your system  */
  104. /* We don't need this for CLIENT side.  */
  105. #undef DIFF
  106.  
  107. /* the path to the gnu grep program on your system  */
  108. /* We don't need this for CLIENT side.  */
  109. #undef GREP
  110.  
  111. /* The number of bytes in a int.  */
  112. #define SIZEOF_INT 4
  113.  
  114. /* The number of bytes in a long.  */
  115. #define SIZEOF_LONG 4
  116.  
  117. /* Define if you have the connect function.  */
  118. /* Not used?  */
  119. #define HAVE_CONNECT
  120.  
  121. /* Define if you have the fchdir function.  */
  122. #undef HAVE_FCHDIR
  123.  
  124. /* Define if you have the fchmod function.  */
  125. #undef HAVE_FCHMOD
  126.  
  127. /* Define if you have the fsync function.  */
  128. #undef HAVE_FSYNC
  129.  
  130. /* Define if you have the ftime function.  */
  131. #define HAVE_FTIME 1
  132.  
  133. /* Define if you have the ftruncate function.  */
  134. #undef HAVE_FTRUNCATE
  135.  
  136. /* Define if you have the getpagesize function.  */
  137. #undef HAVE_GETPAGESIZE
  138.  
  139. /* Define if you have the krb_get_err_text function.  */
  140. #undef HAVE_KRB_GET_ERR_TEXT
  141.  
  142. /* Define if you have the mkfifo function.  */
  143. #undef HAVE_MKFIFO
  144.  
  145. /* Define if you have the putenv function.  */
  146. #define HAVE_PUTENV 1
  147.  
  148. /* Define if you have the setvbuf function.  */
  149. #define HAVE_SETVBUF 1
  150.  
  151. /* Define if you have the sigaction function.  */
  152. #undef HAVE_SIGACTION
  153.  
  154. /* Define if you have the sigblock function.  */
  155. #undef HAVE_SIGBLOCK
  156.  
  157. /* Define if you have the sigprocmask function.  */
  158. #undef HAVE_SIGPROCMASK
  159.  
  160. /* Define if you have the sigsetmask function.  */
  161. #undef HAVE_SIGSETMASK
  162.  
  163. /* Define if you have the sigvec function.  */
  164. #undef HAVE_SIGVEC
  165.  
  166. /* Define if you have the timezone function.  */
  167. /* Hmm, I actually rather think it's an extern long
  168.    variable; that message was mechanically generated
  169.    by autoconf.  And I don't see any actual uses of
  170.    this function in the code anyway, hmm.  */
  171. #undef HAVE_TIMEZONE
  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 if you have the <memory.h> header file.  */
  199. #define HAVE_MEMORY_H 1
  200.  
  201. /* Define if you have the <ndbm.h> header file.  */
  202. #undef HAVE_NDBM_H
  203.  
  204. /* Define if you have the <ndir.h> header file.  */
  205. #define HAVE_NDIR_H 1
  206.  
  207. /* Define if you have the <string.h> header file.  */
  208. #define HAVE_STRING_H 1
  209.  
  210. /* Define if you have the <sys/bsdtypes.h> header file.  */
  211. #undef HAVE_SYS_BSDTYPES_H
  212.  
  213. /* Define if you have the <sys/dir.h> header file.  */
  214. #undef HAVE_SYS_DIR_H
  215.  
  216. /* Define if you have the <sys/ndir.h> header file.  */
  217. #undef HAVE_SYS_NDIR_H
  218.  
  219. /* Define if you have the <sys/param.h> header file.  */    
  220. #undef HAVE_SYS_PARAM_H
  221.  
  222. /* Define if you have the <sys/select.h> header file.  */
  223. #undef HAVE_SYS_SELECT_H
  224.  
  225. /* Define if you have the <sys/time.h> header file.  */
  226. #undef HAVE_SYS_TIME_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 <unistd.h> header file.  */
  232. #undef HAVE_UNISTD_H
  233.  
  234. /* Define if you have the <utime.h> header file.  */
  235. #undef HAVE_UTIME_H
  236.  
  237. /* Define if you have the inet library (-linet).  */
  238. #undef HAVE_LIBINET
  239.  
  240. /* Define if you have the nsl library (-lnsl).  */
  241. /* This is not used anywhere in the source code.  */
  242. #undef HAVE_LIBNSL
  243.  
  244. /* Define if you have the nsl_s library (-lnsl_s).  */
  245. #undef HAVE_LIBNSL_S
  246.  
  247. /* Define if you have the socket library (-lsocket).  */
  248. /* This isn't ever used either.  */
  249. #undef HAVE_LIBSOCKET
  250.  
  251. /* Under Windows NT, mkdir only takes one argument.  */
  252. #define CVS_MKDIR wnt_mkdir
  253. extern int wnt_mkdir (const char *PATH, int MODE);
  254.  
  255. /* This function doesn't exist under Windows NT; we
  256.    provide a stub.  */
  257. extern int readlink (char *path, char *buf, int buf_size);
  258.  
  259. /* This is just a call to GetCurrentProcessID.  */
  260. extern pid_t getpid (void);
  261.  
  262. /* We definitely have prototypes.  */
  263. #define USE_PROTOTYPES 1
  264.  
  265. /* This is just a call to the Win32 Sleep function.  */
  266. unsigned int sleep (unsigned int);
  267.  
  268. /* Don't worry, Microsoft, it's okay for these functions to
  269.    be in our namespace.  */
  270. #define popen _popen
  271. #define pclose _pclose
  272.  
  273. /* Under Windows NT, filenames are case-insensitive, and both / and \
  274.    are path component separators.  */
  275. #define FOLD_FN_CHAR(c) (WNT_filename_classes[(unsigned char) (c)])
  276. extern unsigned char WNT_filename_classes[];
  277. #define FILENAMES_CASE_INSENSITIVE 1
  278.  
  279. /* Is the character C a path name separator?  Under
  280.    Windows NT, you can use either / or \.  */
  281. #define ISDIRSEP(c) (FOLD_FN_CHAR(c) == '/')
  282.  
  283. /* Like strcmp, but with the appropriate tweaks for file names.
  284.    Under Windows NT, filenames are case-insensitive but case-preserving,
  285.    and both \ and / are path element separators.  */
  286. extern int fncmp (const char *n1, const char *n2);
  287.  
  288. /* Fold characters in FILENAME to their canonical forms.  
  289.    If FOLD_FN_CHAR is not #defined, the system provides a default
  290.    definition for this.  */
  291. extern void fnfold (char *FILENAME);
  292.  
  293. /* #define this if your system terminates lines in text files with
  294.    CRLF instead of plain LF, and your I/O functions automatically
  295.    translate between using LF in memory and CRLF on disk, unless you
  296.    specifically tell them not to.  */
  297. #define LINES_CRLF_TERMINATED 1
  298.  
  299. /* Read data from INFILE, and copy it to OUTFILE. 
  300.    Open INFILE using INFLAGS, and OUTFILE using OUTFLAGS.
  301.    This is useful for converting between CRLF and LF line formats.  */
  302. extern void convert_file (char *INFILE,  int INFLAGS,
  303.               char *OUTFILE, int OUTFLAGS);
  304.  
  305. /* This is where old bits go to die under Windows NT.  */
  306. #define DEVNULL "nul"
  307.  
  308. /* Don't use an rsh subprocess to connect to the server, because
  309.    the rsh does inappropriate translations on the data (CR-LF/LF).  */
  310. #define RSH_NOT_TRANSPARENT 1
  311. extern void wnt_start_server (int *tofd, int *fromfd,
  312.                   char *client_user,
  313.                   char *server_user,
  314.                   char *server_host,
  315.                   char *server_cvsroot);
  316. extern void wnt_shutdown_server (int fd);
  317. #define START_SERVER wnt_start_server
  318. #define SHUTDOWN_SERVER wnt_shutdown_server
  319.  
  320. #define SYSTEM_INITIALIZE(pargc,pargv) init_winsock()
  321. extern void init_winsock();
  322.  
  323. #define HAVE_WINSOCK_H
  324.