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 / macintosh / config.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  5KB  |  174 lines

  1. /*
  2.  * config.h --- configuration file for MacOS
  3.  * Handbuilt for MetroWerks CodeWarrier 7 and GUSI 1.6.4
  4.  *
  5.  * This file lives in the CVSHOME/macintosh directory
  6.  *
  7.  * MDLadwig <mike@twinpeaks.prc.com> --- Nov 1995
  8.  */
  9.  
  10. #ifdef MSL_LIBRARY
  11. #include <sys/types.h>
  12. #include <sys/cdefs.h>
  13. #include <compat.h>
  14. #include <sys/ioctl.h>
  15. #include <sys/fcntl.h>
  16. #include <sys/stat.h>
  17. #include <dirent.h>
  18. #include <stdio.h>
  19. #else
  20. #include <GUSI.h>
  21. #include <sys/errno.h>
  22. #endif
  23.  
  24. /* Enumerated values can be trouble on 68K machines.  */
  25. #if !__POWERPC__
  26. #define ENUMS_CAN_BE_TROUBLE 1
  27. #endif
  28.  
  29. /* Don't offer user (or server) the ability to try client-side gzip subprocessing */
  30. #define NO_CLIENT_GZIP_PROCESS 1
  31.  
  32. /* Don't support signals on the mac */
  33. #define DONT_USE_SIGNALS 1
  34.  
  35. /* Define if CR-LF conversion is broken.  */
  36. #define BROKEN_READWRITE_CONVERSION 1
  37.  
  38. /* Define if 'patch' is not to be used.  */
  39. #define DONT_USE_PATCH 1
  40.  
  41. /* Define if 'errno.h' is missing.  */
  42. #define ERRNO_H_MISSING 1
  43.  
  44. /* Define if files are crlf terminated.  */
  45. #define LINES_CRLF_TERMINATED 1
  46.  
  47. /* Define if you support file names longer than 14 characters.  */
  48. #define HAVE_LONG_FILE_NAMES 1
  49.  
  50. /* Define if utime(file, NULL) sets file's timestamp to the present.  */
  51. #define HAVE_UTIME_NULL 1
  52.  
  53. /* Define as the return type of signal handlers (int or void).  */
  54. #define RETSIGTYPE void
  55.  
  56. /* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
  57. #define STAT_MACROS_BROKEN 1
  58.  
  59. /* Define if you have the ANSI C header files.  */
  60. #define STDC_HEADERS 1
  61.  
  62. /* Define if you want CVS to be able to be a remote repository client.  */
  63. #define CLIENT_SUPPORT 1
  64.  
  65. /* The number of bytes in a int.  */
  66. #define SIZEOF_INT 4
  67.  
  68. /* The number of bytes in a long.  */
  69. #define SIZEOF_LONG 4
  70.  
  71. /* Define if you have the connect function.  */
  72. #define HAVE_CONNECT
  73.  
  74. /* Define if you have the ftime function.  */
  75. #define HAVE_FTIME 1
  76.  
  77. /* Define if you have the ftruncate function.  */
  78. #undef HAVE_FTRUNCATE
  79.  
  80. /* Define if you have the setvbuf function.  */
  81. //#define HAVE_SETVBUF 1
  82.  
  83. /* Define if you have the vprintf function.  */
  84. #define HAVE_VPRINTF 1
  85.  
  86. /* Define if you have the <dirent.h> header file.  */
  87. #define HAVE_DIRENT_H 1
  88.  
  89. /* Define if you have the <errno.h> header file */
  90. #define HAVE_ERRNO_H 1
  91.  
  92. /* Define if you have the <fcntl.h> header file.  */
  93. #define HAVE_FCNTL_H 1
  94.  
  95. /* Define if you have the <memory.h> header file.  */
  96. #define HAVE_MEMORY_H 1
  97.  
  98. /* Define if you have the <string.h> header file.  */
  99. #define HAVE_STRING_H 1
  100.  
  101. /* Define if you have the <unistd.h> header file.  */
  102. #define HAVE_UNISTD_H 1
  103.  
  104. /* Define if you have the <utime.h> header file.  */
  105. #define HAVE_UTIME_H 1
  106.  
  107. /* GUSI filesystem stuff doesn't take the last parameter (permissions).  */
  108. #define CVS_MKDIR macos_mkdir
  109. #define CVS_OPEN macos_open
  110. #define CVS_CREAT macos_creat
  111. #define CVS_FOPEN macos_fopen
  112. #define CVS_CHDIR macos_chdir
  113. #define CVS_ACCESS macos_access
  114. #define CVS_OPENDIR macos_opendir
  115. #define CVS_STAT macos_stat
  116. #define CVS_RENAME macos_rename
  117. #define CVS_RMDIR macos_rmdir
  118. #define CVS_UNLINK macos_unlink
  119. #define CVS_CHMOD macos_chmod
  120.  
  121. extern int macos_rmdir (const char *);
  122. extern int macos_rename (const char *, const char *);
  123. extern int macos_stat (const char *, struct stat *);
  124. extern DIR * macos_opendir (const char *);
  125. extern int macos_access(const char *, int);
  126. extern int macos_chdir( const char *path );
  127. extern FILE * macos_fopen( const char *path, const char *mode );
  128. extern int macos_creat( const char *path, mode_t mode );
  129. extern int macos_open( const char *path, int oflag, ... );
  130. extern int macos_mkdir( const char *path, int oflag );
  131. extern int macos_unlink (const char *);
  132. extern int macos_chmod( const char *path, mode_t mode );
  133.  
  134. /* Initialize and cleanup routines */
  135. #define SYSTEM_INITIALIZE MacOS_Initialize
  136. #define SYSTEM_CLEANUP MacOS_Cleanup
  137.  
  138. extern void MacOS_Initialize ( int *, char *** );
  139. extern void MacOS_Cleanup ( void );
  140.  
  141. /* Kludges from pwd.c  */
  142. extern struct passwd *getpwnam (char *name);
  143. extern pid_t getpid (void);
  144.  
  145. /* We have prototypes.  */
  146. #define USE_PROTOTYPES 1
  147.  
  148. /* Compare filenames */
  149. #define fncmp strcmp
  150.  
  151. /* Don't use rsh */
  152. #define RSH_NOT_TRANSPARENT 1
  153.  
  154. #define START_SERVER macos_start_server
  155. #define SHUTDOWN_SERVER macos_shutdown_server
  156.  
  157. extern void macos_start_server (int *tofd, int *fromfd,
  158.                   char *client_user,
  159.                   char *server_user,
  160.                   char *server_host,
  161.                   char *server_cvsroot);
  162. extern void macos_shutdown_server (int to);
  163.  
  164. #ifdef MSL_LIBRARY
  165.  
  166. FILE *  fdopen(int fd, const char *type);
  167. #define ENOTDIR                -1
  168. #define EINVAL                    -1
  169. #define EEXIST                    -1
  170. #define ENOTEMPTY                -1
  171. #define ENOSPC                    -1
  172.  
  173. #endif /* MSL_LIBRARY */
  174.