1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
/*
* config.h --- configuration file for MacOS
* Handbuilt for MetroWerks CodeWarrier 7 and GUSI 1.6.4
*
* MDLadwig <mike@twinpeaks.prc.com> --- Nov 1995
*/
/* This file lives in the CVSHOME/macos directory */
#include <GUSI.h>
#include <compat.h>
#include <sys/errno.h>
/* MetroWerks provides alloca, but only for PPC Macs - try CVS 'alloca' */
#if !__POWERPC__
#undef REGEX_MALLOC
#undef HAVE_ALLOCA
#undef ALLOCA_IN_STDLIB
#undef HAVE_ALLOCA_H
#else
#undef REGEX_MALLOC
#define HAVE_ALLOCA 1
#undef ALLOCA_IN_STDLIB
#define HAVE_ALLOCA_H 1
#endif
/* Define if files are crlf terminated. */
#define LINES_CRLF_TERMINATED 1
/* Define if you support file names longer than 14 characters. */
#define HAVE_LONG_FILE_NAMES 1
/* Define if utime(file, NULL) sets file's timestamp to the present. */
#define HAVE_UTIME_NULL 1
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
#define STAT_MACROS_BROKEN 1
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if you want CVS to be able to be a remote repository client. */
#define CLIENT_SUPPORT 1
/* The number of bytes in a int. */
#define SIZEOF_INT 4
/* The number of bytes in a long. */
#define SIZEOF_LONG 4
/* Define if you have the connect function. */
#define HAVE_CONNECT
/* Define if you have the ftime function. */
#define HAVE_FTIME 1
/* Define if you have the ftruncate function. */
#undef HAVE_FTRUNCATE
/* Define if you have the setvbuf function. */
#define HAVE_SETVBUF 1
/* Define if you have the vprintf function. */
#define HAVE_VPRINTF 1
/* Define if you have the <dirent.h> header file. */
#define HAVE_DIRENT_H 1
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define if you have the <utime.h> header file. */
#define HAVE_UTIME_H 1
/* GUSI filesystem stuff doesn't take the last parameter (permissions). */
#define CVS_MKDIR macos_mkdir
#define CVS_OPEN macos_open
#define CVS_CREAT macos_creat
#define CVS_FOPEN macos_fopen
#define CVS_CHDIR macos_chdir
#define CVS_ACCESS macos_access
#define CVS_OPENDIR macos_opendir
#define CVS_STAT macos_stat
#define CVS_RENAME macos_rename
#define CVS_UNLINK macos_unlink
#define CVS_CHMOD macos_chmod
extern int macos_rename (const char *, const char *);
extern int macos_stat (const char *, struct stat *);
extern DIR * macos_opendir (const char *);
extern int macos_access(const char *, int);
extern int macos_chdir( const char *path );
extern FILE * macos_fopen( const char *path, const char *mode );
extern int macos_creat( const char *path, mode_t mode );
extern int macos_open( const char *path, int oflag, ... );
extern int macos_mkdir( const char *path, int oflag );
extern int macos_unlink (const char *);
extern int macos_chmod( const char *path, mode_t mode );
/* Kludges from pwd.c */
extern struct passwd *getpwnam (char *name);
extern pid_t getpid (void);
/* We have prototypes. */
#define USE_PROTOTYPES 1
/* Compare filenames */
#define fncmp strcmp
/* Don't use rsh */
#define RSH_NOT_TRANSPARENT 1
#define START_SERVER macos_start_server
#define SHUTDOWN_SERVER macos_shutdown_server
extern void macos_start_server (int *tofd, int *fromfd,
char *client_user,
char *server_user,
char *server_host,
char *server_cvsroot);
extern void macos_shutdown_server (int to);
|