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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
|
/* config.h --- configuration file for OS/2 EMX
Thomas Epting <tepting@swol.de> --- Feb 1997 */
/* This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. */
/* This file lives in the emx/ subdirectory, which is only included
* in your header search path if you use emx/Makefile (with GNU make
* for OS/2). Thus, this is the right place to put configuration
* information for OS/2.
*/
#include <io.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Define if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message. */
#ifndef _ALL_SOURCE
/* #undef _ALL_SOURCE */
#endif
/* Define to empty if the keyword does not work. */
#undef const
/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef gid_t */
/* Define if you support file names longer than 14 characters. */
#define HAVE_LONG_FILE_NAMES 1
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
/* Define if utime(file, NULL) sets file's timestamp to the present. */
#define HAVE_UTIME_NULL 1
/* Define if on MINIX. */
/* #undef _MINIX */
/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef mode_t */
/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef pid_t */
/* Define if the system does not provide POSIX.1 features except
with this defined. */
/* #undef _POSIX_1_SOURCE */
/* Define if you need to in order for stat and other things to work. */
/* #undef _POSIX_SOURCE */
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
/* #undef STAT_MACROS_BROKEN */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef uid_t */
/* Define if you have MIT Kerberos version 4 available. */
#undef HAVE_KERBEROS
/* Define if you want CVS to be able to be a remote repository client. */
#define CLIENT_SUPPORT 1
#if 0
/* This doesn't work yet, and I'm sure I don't want the hassles of seeing
whether it will compile. */
/* Define if you want CVS to be able to serve repositories to remote
clients. */
#define SERVER_SUPPORT 1
/* Define if you want to use the password authenticated server. */
#define AUTH_SERVER_SUPPORT
#endif /* 0 */
/* Define if you want encryption support. */
/* #undef ENCRYPTION */
/* Define if you have the connect function. */
#define HAVE_CONNECT 1
/* Define if you have the crypt function. */
#define HAVE_CRYPT 1
/* Define if you have the fchdir function. */
/* #define HAVE_FCHDIR */
/* Define if you have the fchmod function. */
/* #define HAVE_FCHMOD */
/* Define if you have the fsync function. */
#define HAVE_FSYNC 1
/* Define if you have the ftime function. */
#define HAVE_FTIME 1
/* Define if you have the ftruncate function. */
#define HAVE_FTRUNCATE 1
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the getspnam function. */
/* #define HAVE_GETSPNAM */
/* Define if you have the initgroups function. */
/* #define HAVE_INITGROUPS */
/* Define if you have the krb_get_err_text function. */
/* #undef HAVE_KRB_GET_ERR_TEXT */
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* Define if you have the readlink function. */
/* #define HAVE_READLINK */
/* Define if you have the sigaction function. */
#define HAVE_SIGACTION 1
/* Define if you have the sigblock function. */
/* #undef HAVE_SIGBLOCK */
/* Define if you have the sigprocmask function. */
#define HAVE_SIGPROCMASK 1
/* Define if you have the sigsetmask function. */
/* #undef HAVE_SIGSETMASK */
/* Define if you have the sigvec function. */
/* #undef HAVE_SIGVEC */
/* Define if you have the timezone function. */
#define HAVE_TIMEZONE 1
/* Define if you have the tzset function. */
#define HAVE_TZSET 1
/* Define if you have the vfork function. */
/* #undef HAVE_VFORK */
/* Define if you have the vprintf function. */
#define HAVE_VPRINTF 1
/* Define if you have the <direct.h> header file. */
/* #undef HAVE_DIRECT_H */
/* Define if you have the <dirent.h> header file. */
#define HAVE_DIRENT_H 1
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define if you have the <io.h> header file. */
#define HAVE_IO_H 1
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <ndbm.h> header file. */
/* #undef HAVE_NDBM_H 1 */
/* Define if you have the <ndir.h> header file. */
/* #undef HAVE_NDIR_H */
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <sys/bsdtypes.h> header file. */
/* #undef HAVE_SYS_BSDTYPES_H */
/* Define if you have the <sys/dir.h> header file. */
#define HAVE_SYS_DIR_H 1
/* Define if you have the <sys/ndir.h> header file. */
/* #undef HAVE_SYS_NDIR_H */
/* Define if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define if you have the <sys/resource.h> header file. */
#define HAVE_SYS_RESOURCE_H 1
/* Define if you have the <sys/select.h> header file. */
#define HAVE_SYS_SELECT_H 1
/* Define if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define if you have the <sys/timeb.h> header file. */
#define HAVE_SYS_TIMEB_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
/* Define if you have the crypt library (-lcrypt). */
#define HAVE_LIBCRYPT 1
/* Define if you have the inet library (-linet). */
/* #undef HAVE_LIBINET */
/* Define if you have the nsl library (-lnsl). */
#define HAVE_LIBNSL 1
/* Define if you have the nsl_s library (-lnsl_s). */
/* #undef HAVE_LIBNSL_S */
/* Define if you have the sec library (-lsec). */
/* #undef HAVE_LIBSEC 1 */
/* Define if you have the socket library (-lsocket). */
#define HAVE_LIBSOCKET 1
/* Under OS/2, filenames are case-insensitive, and both / and \
are path component separators. */
#define FOLD_FN_CHAR(c) (OS2_filename_classes[(unsigned char) (c)])
extern unsigned char OS2_filename_classes[];
/* Is the character C a path name separator? Under OS/2, you can use
either / or \. */
#define ISDIRSEP(c) (FOLD_FN_CHAR(c) == '/')
/* Like strcmp, but with the appropriate tweaks for file names.
Under OS/2, filenames are case-insensitive but case-preserving,
and both \ and / are path element separators. */
extern int fncmp (const char *n1, const char *n2);
/* Fold characters in FILENAME to their canonical forms.
If FOLD_FN_CHAR is not #defined, the system provides a default
definition for this. */
extern void fnfold (char *FILENAME);
/* #define this if your system terminates lines in text files with
CRLF instead of plain LF, and your I/O functions automatically
translate between using LF in memory and CRLF on disk, unless you
specifically tell them not to. */
#define LINES_CRLF_TERMINATED 1
/* Read data from INFILE, and copy it to OUTFILE.
Open INFILE using INFLAGS, and OUTFILE using OUTFLAGS.
This is useful for converting between CRLF and LF line formats. */
extern void convert_file (char *INFILE, int INFLAGS,
char *OUTFILE, int OUTFLAGS);
/* This is where old bits go to die under OS/2 as well as WinNT. */
#define DEVNULL "nul"
/* We actually do have a transparent rsh, whew. */
#undef RSH_NOT_TRANSPARENT
/* But it won't be transparent unless we ask it nicely! */
#define RSH_NEEDS_BINARY_FLAG 1
#define START_SERVER os2_start_server
#define SHUTDOWN_SERVER os2_shutdown_server
extern void START_SERVER (int *tofd, int *fromfd,
char *client_user,
char *server_user,
char *server_host,
char *server_cvsroot);
extern void SHUTDOWN_SERVER (int fd);
/* Call our own os2_initialize function */
#define SYSTEM_INITIALIZE(pargc,pargv) os2_initialize (pargc, pargv)
extern void os2_initialize (int *pargc, char ***pargv);
/* Under EMX, we already have popen() and pclose()... */
/* #undef USE_OWN_POPEN */
/* ... and we too have no need for popenRW to start the rsh server. */
/* #define START_RSH_WITH_POPEN_RW */
/* Socket handles and file handles share a command handle space under EMX. */
/* #undef NO_SOCKET_TO_FD */
#define CVS_STAT os2_stat
#define CVS_CHDIR os2_chdir
#define CVS_FNMATCH os2_fnmatch
extern int os2_stat(const char *name, struct stat *buffer);
extern int os2_chdir(const char *name);
extern int os2_fnmatch(const char *pattern, const char *name, int flags);
/* Pipes need to be put into binary mode using setmode (). */
#define USE_SETMODE_BINARY 1
/* The reason for this is that we don't know whether to pass -b to
rsh. The system-supplied rsh on OS/2 wants it. Some other rsh
replacement might not accept it. Historically, the NT port of CVS
has not passed -b, and the OS/2 port has. What a mess. If we can
get away with just not accepting :ext: until we can figure out how
we should deal with this, then it will avoid having people rely on
behaviors which will need to change. */
#define NO_EXT_METHOD 1
/* See above; we can't use rsh without -b. */
#define RSH_NOT_TRANSPARENT 1
|