File: config.h

package info (click to toggle)
seyon 2.20c-36
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,456 kB
  • sloc: ansic: 18,424; yacc: 184; sh: 183; makefile: 9
file content (373 lines) | stat: -rw-r--r-- 9,511 bytes parent folder | download | duplicates (8)
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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
/*
 *
 *   This file is part of the Seyon, Copyright (c) 1992-1993 by
 *   Muhammad M. Saggaf.
 *
 *   See the file COPYING (0-COPYING) for the full copyright notice
 *   of this program.
 *
 */

/*                               -*- Mode: C -*- 
 * config.h --- Configuration header file
 * Author          : Muhammad M. Saggaf
 * Created On      : sometime in 1992
 * Last Modified By: system admin
 * Last Modified On: Fri Jun  4 20:10:51 1993
 * Update Count    : 9
 * Status          : Mostly OK, needs some cleaning up
 */

#ifndef SEYON_CONFIG_H
#define SEYON_CONFIG_H

/*
 * If you are running one of the systems in the next paragraph,
 * skip system configuration and go directly to user configuration
 * after defining the appropriate symbol below if your system
 * does't automatically do that. I've already setup the necessary
 * definitions for you. I've also put user configuration definiftions
 * for some of the systems, check those at the end of system configuraion
 */

/*
 * If your system is not listed below, and you'd like to me to put
 * an entry for it so that you won't have to edit this file in the
 * next verion, send me the keyword your system uses (e.g. linux,
 * SVR4, ultrix, ..etc.) and the changes you made, and I'll make an
 * entry for your system.
 */

/* #define linux */               /* No need, predefined */
/* #define SVR4 */                /* No need, predefined */
/* #define _SVR3 */
/* #define BSD386 */
/* #define __386BSD__ */          /* No need, predefined */
/* #define ultrix */              /* No need, predefined */
/* #define sun */                 /* No need, predefined */
/* #define SUNOS_3 */		      /* SunOS 3.x */
/* #define HPUX */                /* HP-UX 8.0 */
/* #define HPUX9 */               /* HP-UX 9.0 */
/* #define AIXV3 */
/* #define SGI */

/* Sometimes __svr4__ is defined but not SVR4 */
#if !defined(SVR4) && defined(__svr4__)
#define SVR4
#endif

/* This is SunOS 4.x, not 3.x, and not Solaris 2.x */
#if defined(sun) && !defined(SUNOS_3) && !defined(SVR4)
#ifndef SUNOS_4
#define SUNOS_4
#endif			
#endif

#if (defined(hpux) || defined (HPUX9)) && !defined(HPUX)
#define HPUX
#endif

/* Leave these alone */

#define YES  1
#define Yes  YES
#define yes  YES
#define NO   0
#define No   NO
#define no   NO

/*
 * ----------------------------------------
 *   Check those out: 
 * ----------------------------------------
 */

#if defined(linux) || defined(_SVR3) || defined(BSD386) || defined(__386BSD__)
#define HAVE_TERMIOS        YES
#define HAVE_MODEM_CONTROL  YES
#define HAVE_DUP2           YES
#define HAVE_STRSTR         YES
#define HAVE_STRERROR       YES
#define HAVE_USLEEP         YES
#endif

#ifdef SVR4
#define HAVE_TERMIOS        YES
#define HAVE_MODEM_CONTROL  YES
#define HAVE_DUP2           YES
#define HAVE_STRSTR         YES
#define HAVE_STRERROR       YES
#define HAVE_USLEEP			NO	/* usleep is broken in SVR4 */
#define HAVE_SELECT         YES
#define LF_USE_ASCII_PID    YES
#define LF_USE_DEV_NUMBERS  YES
#define LF_PATH             "/usr/spool/locks"
#define LF_PREFIX           "LK."
#endif

#ifdef ultrix
#define HAVE_TERMIOS        YES
#define HAVE_MODEM_CONTROL  YES
#define HAVE_DUP2           YES
#define HAVE_STRSTR         YES
#define HAVE_STRERROR       YES
#define HAVE_USLEEP			NO
#define HAVE_SELECT         YES
#endif

#ifdef SUNOS_4
#define HAVE_TERMIOS        YES
#define HAVE_MODEM_CONTROL  YES
#define HAVE_DUP2           YES
#define HAVE_STRSTR         YES
#define HAVE_STRERROR       NO
#define HAVE_USLEEP			YES
#define LF_USE_ASCII_PID    YES
#define LF_USE_DEV_NUMBERS  NO
#define LF_PATH             "/var/spool/locks"
#define LF_PREFIX           "LCK.."
#endif

#ifdef SUNOS_3
#define HAVE_TERMIOS        NO
#define HAVE_TERMIO         NO
#define HAVE_SGTTYB         YES
#define HAVE_MODEM_CONTROL  YES
#define HAVE_DUP2           YES
#define HAVE_STRSTR         NO
#define HAVE_STRERROR       NO
#define HAVE_USLEEP			YES
typedef int pid_t;
typedef int speed_t;
#define LF_USE_ASCII_PID    YES
#define LF_USE_DEV_NUMBERS  NO
#define LF_PATH             "/var/spool/locks"
#define LF_PREFIX           "LCK.."
#endif

#ifdef HPUX
#ifndef HPUX9
#define HAVE_TERMIOS        NO
#define HAVE_TERMIO         YES
#else
#define HAVE_TERMIOS        YES
#endif
#define HAVE_MODEM_CONTROL  YES
#define HAVE_DUP2           YES
#define HAVE_STRSTR         YES
#define HAVE_STRERROR       YES
#define HAVE_USLEEP			NO
#define HAVE_SELECT         YES
#endif

#ifdef AIXV3
#define HAVE_TERMIOS        YES
#define HAVE_MODEM_CONTROL  YES
#define HAVE_DUP2           YES
#define HAVE_STRSTR         YES
#define HAVE_STRERROR       YES
#define HAVE_USLEEP         YES
#define LF_USE_ASCII_PID    YES
#define LF_USE_DEV_NUMBERS  NO
#define LF_PATH             "/etc/locks"
#define LF_PREFIX           "LCK.."
#endif

#ifdef SGI
#define HAVE_TERMIOS        YES
#define HAVE_MODEM_CONTROL  YES
#define HAVE_DUP2           YES
#define HAVE_STRSTR         YES
#define HAVE_STRERROR       YES
#define HAVE_USLEEP			NO
#define HAVE_SELECT         YES
#define LF_USE_ASCII_PID    NO
#define LF_USE_DEV_NUMBERS  NO
#define LF_PATH             "/usr/spool/locks"
#define LF_PREFIX           "LCK.."
#endif

#ifdef Mips
#define HAVE_TERMIOS        NO
#define HAVE_TERMIO         NO
#define HAVE_SGTTYB         YES
#define HAVE_MODEM_CONTROL  YES
#define HAVE_DUP2           YES
#define HAVE_STRSTR         NO
#define HAVE_STRERROR       NO
#define HAVE_USLEEP         YES
#define HAVE_SELECT         YES
#define LF_USE_ASCII_PID    NO
#define LF_USE_DEV_NUMBERS  NO
#define LF_PATH             "/usr/spool/locks"
#define LF_PREFIX           "LCK.."
#define B19200              16
#define B38400              17

typedef int pid_t;
typedef unsigned short speed_t;

extern char *strstr();
extern char *strrchr();
extern char *calloc();
extern char *getenv();
#endif

/*
 * ----------------------------------------
 *   System configuration starts here
 * ----------------------------------------
 */

/* Wether you have POSIX termios */
#ifndef HAVE_TERMIOS
#define HAVE_TERMIOS        YES
#endif

/* Wether you have SYSV termio */
#ifndef HAVE_TERMIO
#define HAVE_TERMIO         NO
#endif

/* Wether you have SGTTYB */
#ifndef HAVE_SGTTYB
#define HAVE_SGTTYB         NO
#endif

/* Wether you have modem line control. Almost all Unix systems have it. */
#ifndef HAVE_MODEM_CONTROL
#define HAVE_MODEM_CONTROL  YES
#endif

/* Wether you have dup2 */
#ifndef HAVE_DUP2
#define HAVE_DUP2           YES
#endif

/* Wether you have strstr */
#ifndef HAVE_STRSTR
#define HAVE_STRSTR         YES
#endif

/* Wether you have strerror */
#ifndef HAVE_STRERROR
#define HAVE_STRERROR       YES
#endif

/* Wether you have usleep */
#ifndef HAVE_USLEEP
#define HAVE_USLEEP         YES
#endif

/* Wether your system has select. If not (highly unlikely), your
   system is not worth calling unix and usleep will be implemented by
   busy waiting. This is only needed if you don't have usleep. */
#ifndef HAVE_SELECT
#define HAVE_SELECT         YES
#endif

/* Uncomment if pids are defined as int in your system */
/* typedef int pid_t; */

/* Uncomment if speed_t not defined in your system */
/* typedef int speed_t; */

/* Uncomment if you don't have strchr and strrchr */
/* 
#define strchr  index
#define strrchr rindex
*/

/*
 * ----------------------------------------
 *   System configuration ends here
 * ----------------------------------------
 */

/*
 * ----------------------------------------
 *   User configuration starts here
 * ----------------------------------------
 */

/*
 * For those, better not edit them directly. Make an entry for your
 * system like the above and put the definitions there, or modify an
 * existing one. If you want to edit them here, make sure they are not
 * defined for your system above, if your system has an entry.
 */

/*
 * Wether you want pids written to lock files as ascii strings (as
 * HDB uucp does) rather than in binary form as other uucp prgrams do
 */
#ifndef LF_USE_ASCII_PID
#define LF_USE_ASCII_PID    YES
#endif

/* 
 * Wether you want lock files to be in the form LK.inode.major.minor
 * (e.g. LK.035.064.008) rather than the more common LCK..base_name
 * (e.g. LCK..ttys0). This is mostly how SVR4 does things.
 */
#ifndef LF_USE_DEV_NUMBERS
#define LF_USE_DEV_NUMBERS  NO
#endif

/* 
 * Define the location of your locks.
 */

#ifndef LF_PATH
#define LF_PATH             "/var/lock"
#endif

/* 
 * Normally, you don't have to touch this
 */
#ifndef LF_PREFIX
#if !LF_USE_DEV_NUMBERS
#define LF_PREFIX           "LCK.."
#else
#define LF_PREFIX           "LK."
#endif
#endif /* LF_PREFIX */

/*
 * Wether you want to use speeds not supported by termios/termio
 * (57600 and 115200 bps). This option is currently available to
 * linux only (you need kernel 0.99.3+) since it is O/S-dependent.
 */
#ifdef linux
#ifndef USE_NONSTD_BAUD
#define USE_NONSTD_BAUD     NO
#endif
#endif /* linux */

/*
 * ----------------------------------------
 *   User configuration ends here
 * ----------------------------------------
 */

/* 
 * Don't touch this
 */

#if HAVE_TERMIOS || HAVE_TERMIO
#define HAVE_SGTTYB         NO
#endif

#if !defined(SIGCHLD) && defined(SIGCLD)
#define SIGCHLD SIGCLD
#endif

#define NMSIZE  256		/* file name buffer size */
#define WBSIZE  256		/* input and working buffer size */
/*
 * max number of entries in the dialing directory and protocols file
 */
#define MAX_ENT 256
#define MAX_SEQUICKKEYS 30		/* Maximum number of SeQuickKeys */

#endif