xref: /original-bsd/usr.sbin/sendmail/src/conf.h (revision deff14a8)
1 /*
2  * Copyright (c) 1983 Eric P. Allman
3  * Copyright (c) 1988, 1993
4  *	The Regents of the University of California.  All rights reserved.
5  *
6  * %sccs.include.redist.c%
7  *
8  *	@(#)conf.h	8.121 (Berkeley) 10/15/94
9  */
10 
11 /*
12 **  CONF.H -- All user-configurable parameters for sendmail
13 */
14 
15 # include <sys/param.h>
16 # include <sys/types.h>
17 # include <sys/stat.h>
18 # include <sys/file.h>
19 # include <sys/wait.h>
20 # include <fcntl.h>
21 # include <signal.h>
22 
23 /**********************************************************************
24 **  Table sizes, etc....
25 **	There shouldn't be much need to change these....
26 **********************************************************************/
27 
28 # define MAXLINE	2048		/* max line length */
29 # define MAXNAME	256		/* max length of a name */
30 # define MAXPV		40		/* max # of parms to mailers */
31 # define MAXATOM	200		/* max atoms per address */
32 # define MAXMAILERS	25		/* maximum mailers known to system */
33 # define MAXRWSETS	100		/* max # of sets of rewriting rules */
34 # define MAXPRIORITIES	25		/* max values for Precedence: field */
35 # define MAXMXHOSTS	20		/* max # of MX records */
36 # define SMTPLINELIM	990		/* maximum SMTP line length */
37 # define MAXKEY		128		/* maximum size of a database key */
38 # define MEMCHUNKSIZE	1024		/* chunk size for memory allocation */
39 # define MAXUSERENVIRON	100		/* max envars saved, must be >= 3 */
40 # define MAXALIASDB	12		/* max # of alias databases */
41 # define MAXMAPSTACK	12		/* max # of stacked or sequenced maps */
42 # define MAXTOCLASS	8		/* max # of message timeout classes */
43 
44 # ifndef QUEUESIZE
45 # define QUEUESIZE	1000		/* max # of jobs per queue run */
46 # endif
47 
48 /**********************************************************************
49 **  Compilation options.
50 **
51 **	#define these if they are available; comment them out otherwise.
52 **********************************************************************/
53 
54 # define LOG		1	/* enable logging */
55 # define UGLYUUCP	1	/* output ugly UUCP From lines */
56 # define NETUNIX	1	/* include unix domain support */
57 # define NETINET	1	/* include internet support */
58 # define MATCHGECOS	1	/* match user names from gecos field */
59 # define XDEBUG		1	/* enable extended debugging */
60 # ifdef NEWDB
61 # define USERDB		1	/* look in user database (requires NEWDB) */
62 # endif
63 
64 /**********************************************************************
65 **  0/1 Compilation options.
66 **	#define these to 1 if they are available;
67 **	#define them to 0 otherwise.
68 **********************************************************************/
69 
70 # ifndef NAMED_BIND
71 #  define NAMED_BIND	1	/* use Berkeley Internet Domain Server */
72 # endif
73 
74 /*
75 **  Most systems have symbolic links today, so default them on.  You
76 **  can turn them off by #undef'ing this below.
77 */
78 
79 # define HASLSTAT	1	/* has lstat(2) call */
80 
81 /*
82 **  General "standard C" defines.
83 **
84 **	These may be undone later, to cope with systems that claim to
85 **	be Standard C but aren't.  Gcc is the biggest offender -- it
86 **	doesn't realize that the library is part of the language.
87 **
88 **	Life would be much easier if we could get rid of this sort
89 **	of bozo problems.
90 */
91 
92 #ifdef __STDC__
93 # define HASSETVBUF	1	/* we have setvbuf(3) in libc */
94 #endif
95 
96 /**********************************************************************
97 **  Operating system configuration.
98 **
99 **	Unless you are porting to a new OS, you shouldn't have to
100 **	change these.
101 **********************************************************************/
102 
103 /*
104 **  Per-Operating System defines
105 */
106 
107 
108 /*
109 **  HP-UX -- tested for 8.07, 9.00, and 9.01.
110 */
111 
112 #ifdef __hpux
113 /* avoid m_flags conflict between db.h & sys/sysmacros.h on HP 300 */
114 # undef m_flags
115 # define SYSTEM5	1	/* include all the System V defines */
116 # define HASINITGROUPS	1	/* has initgroups(3) call */
117 # define HASSETREUID	1	/* has setreuid(2) call */
118 # define setreuid(r, e)		setresuid(r, e, -1)
119 # define LA_TYPE	LA_FLOAT
120 # define SFS_TYPE	SFS_VFS	/* use <sys/vfs.h> statfs() implementation */
121 # define GIDSET_T	gid_t
122 # define _PATH_UNIX	"/hp-ux"
123 # ifndef _PATH_SENDMAILCF
124 #  define _PATH_SENDMAILCF	"/usr/lib/sendmail.cf"
125 # endif
126 # ifndef IDENTPROTO
127 #  define IDENTPROTO	0	/* TCP/IP implementation is broken */
128 # endif
129 # ifndef HASGETUSERSHELL
130 #  define HASGETUSERSHELL 0	/* getusershell(3) causes core dumps */
131 # endif
132 # define syslog		hard_syslog
133 # ifdef __STDC__
134 extern int	syslog(int, char *, ...);
135 # endif
136 #endif
137 
138 
139 /*
140 **  IBM AIX 3.x -- actually tested for 3.2.3
141 */
142 
143 #ifdef _AIX3
144 # define HASINITGROUPS	1	/* has initgroups(3) call */
145 # define HASUNAME	1	/* use System V uname(2) system call */
146 # define HASGETUSERSHELL 0	/* does not have getusershell(3) call */
147 # define FORK		fork	/* no vfork primitive available */
148 # define SFS_TYPE	SFS_STATFS	/* use <sys/statfs.h> statfs() impl */
149 # define SPT_PADCHAR	'\0'	/* pad process title with nulls */
150 #endif
151 
152 
153 /*
154 **  Silicon Graphics IRIX
155 **
156 **	Compiles on 4.0.1.
157 */
158 
159 #ifdef IRIX
160 # define SYSTEM5	1	/* this is a System-V derived system */
161 # define HASSETREUID	1	/* has setreuid(2) call */
162 # define HASINITGROUPS	1	/* has initgroups(3) call */
163 # define HASGETUSERSHELL 0	/* does not have getusershell(3) call */
164 # define FORK		fork	/* no vfork primitive available */
165 # define WAITUNION	1	/* use "union wait" as wait argument type */
166 # define setpgid	BSDsetpgrp
167 # define GIDSET_T	gid_t
168 # define SFS_TYPE	SFS_4ARGS	/* four argument statfs() call */
169 # define LA_TYPE	LA_INT
170 # define NAMELISTMASK	0x7fffffff	/* mask for nlist() values */
171 #endif
172 
173 
174 /*
175 **  SunOS and Solaris
176 **
177 **	Tested on SunOS 4.1.x (a.k.a. Solaris 1.1.x) and
178 **	Solaris 2.2 (a.k.a. SunOS 5.2).
179 */
180 
181 #if defined(sun) && !defined(BSD)
182 
183 # define HASINITGROUPS	1	/* has initgroups(3) call */
184 # define HASUNAME	1	/* use System V uname(2) system call */
185 # define HASGETUSERSHELL 1	/* DOES have getusershell(3) call in libc */
186 # define LA_TYPE	LA_INT
187 
188 # ifdef SOLARIS_2_3
189 #  define SOLARIS
190 # endif
191 
192 # ifdef SOLARIS
193 			/* Solaris 2.x (a.k.a. SunOS 5.x) */
194 #  ifndef __svr4__
195 #   define __svr4__		/* use all System V Releae 4 defines below */
196 #  endif
197 #  include <sys/time.h>
198 #  define gethostbyname	solaris_gethostbyname	/* get working version */
199 #  define gethostbyaddr	solaris_gethostbyaddr	/* get working version */
200 #  define GIDSET_T	gid_t
201 #  ifndef _PATH_UNIX
202 #   define _PATH_UNIX	"/dev/ksyms"
203 #  endif
204 #  ifndef _PATH_SENDMAILCF
205 #   define _PATH_SENDMAILCF	"/etc/mail/sendmail.cf"
206 #  endif
207 #  ifndef _PATH_SENDMAILPID
208 #   define _PATH_SENDMAILPID	"/etc/mail/sendmail.pid"
209 #  endif
210 #  ifndef SYSLOG_BUFSIZE
211 #   define SYSLOG_BUFSIZE	1024	/* allow full size syslog buffer */
212 #  endif
213 
214 # else
215 			/* SunOS 4.0.3 or 4.1.x */
216 #  define HASSETREUID	1	/* has setreuid(2) call */
217 #  ifndef HASFLOCK
218 #   define HASFLOCK	1	/* has flock(2) call */
219 #  endif
220 #  define SFS_TYPE	SFS_VFS	/* use <sys/vfs.h> statfs() implementation */
221 #  include <vfork.h>
222 
223 #  ifdef SUNOS403
224 			/* special tweaking for SunOS 4.0.3 */
225 #   include <malloc.h>
226 #   define SYS5SIGNALS	1	/* SysV signal semantics -- reset on each sig */
227 #   define WAITUNION	1	/* use "union wait" as wait argument type */
228 #   undef WIFEXITED
229 #   undef WEXITSTATUS
230 #   undef HASUNAME
231 #   define setpgid	setpgrp
232 typedef int		pid_t;
233 extern char		*getenv();
234 
235 #  else
236 			/* 4.1.x specifics */
237 #   define HASSETSID	1	/* has Posix setsid(2) call */
238 #   define HASSETVBUF	1	/* we have setvbuf(3) in libc */
239 
240 #  endif
241 # endif
242 #endif
243 
244 /*
245 **  DG/UX
246 **
247 **	Tested on 5.4.2 and 5.4.3.  Use DGUX_5_4_2 to get the
248 **	older support.
249 **	5.4.3 changes from Mark T. Robinson <mtr@ornl.gov>.
250 */
251 
252 #ifdef DGUX_5_4_2
253 # define DGUX		1
254 #endif
255 
256 #ifdef	DGUX
257 # define SYSTEM5	1
258 # define LA_TYPE	LA_SUBR
259 # define HASSETREUID	1	/* has setreuid(2) call */
260 # define HASUNAME	1	/* use System V uname(2) system call */
261 # define HASSETSID	1	/* has Posix setsid(2) call */
262 # define HASINITGROUPS	1	/* has initgroups(3) call */
263 # define HASGETUSERSHELL 0	/* does not have getusershell(3) */
264 # ifndef IDENTPROTO
265 #  define IDENTPROTO	0	/* TCP/IP implementation is broken */
266 # endif
267 # define SPT_TYPE	SPT_NONE	/* don't use setproctitle */
268 # define SFS_TYPE	SFS_4ARGS	/* four argument statfs() call */
269 
270 /* these include files must be included early on DG/UX */
271 # include <netinet/in.h>
272 # include <arpa/inet.h>
273 
274 # ifdef DGUX_5_4_2
275 #  define inet_addr	dgux_inet_addr
276 extern long	dgux_inet_addr();
277 # endif
278 #endif
279 
280 
281 /*
282 **  Digital Ultrix 4.2A or 4.3
283 **
284 **	Apparently, fcntl locking is broken on 4.2A, in that locks are
285 **	not dropped when the process exits.  This causes major problems,
286 **	so flock is the only alternative.
287 */
288 
289 #ifdef ultrix
290 # define HASSETREUID	1	/* has setreuid(2) call */
291 # define HASUNSETENV	1	/* has unsetenv(3) call */
292 # define HASINITGROUPS	1	/* has initgroups(3) call */
293 # define HASUNAME	1	/* use System V uname(2) system call */
294 # ifndef HASFLOCK
295 #  define HASFLOCK	1	/* has flock(2) call */
296 # endif
297 # define HASGETUSERSHELL 0	/* does not have getusershell(3) call */
298 # define BROKEN_RES_SEARCH 1	/* res_search(unknown) returns h_errno=0 */
299 # ifdef vax
300 #  define LA_TYPE	LA_FLOAT
301 # else
302 #  define LA_TYPE	LA_INT
303 #  define LA_AVENRUN	"avenrun"
304 # endif
305 # define SFS_TYPE	SFS_MOUNT	/* use <sys/mount.h> statfs() impl */
306 # ifndef IDENTPROTO
307 #  define IDENTPROTO	0	/* TCP/IP implementation is broken */
308 # endif
309 #endif
310 
311 
312 /*
313 **  OSF/1 (tested on Alpha)
314 */
315 
316 #ifdef __osf__
317 # define HASUNSETENV	1	/* has unsetenv(3) call */
318 # define HASSETREUID	1	/* has setreuid(2) call */
319 # define HASINITGROUPS	1	/* has initgroups(3) call */
320 # ifndef HASFLOCK
321 #  define HASFLOCK	1	/* has flock(2) call */
322 # endif
323 # define LA_TYPE	LA_INT
324 # define SFS_TYPE	SFS_MOUNT	/* use <sys/mount.h> statfs() impl */
325 # ifndef _PATH_SENDMAILPID
326 #  define _PATH_SENDMAILPID	"/var/run/sendmail.pid"
327 # endif
328 #endif
329 
330 
331 /*
332 **  NeXTstep
333 */
334 
335 #ifdef NeXT
336 # define HASINITGROUPS	1	/* has initgroups(3) call */
337 # ifndef HASFLOCK
338 #  define HASFLOCK	1	/* has flock(2) call */
339 # endif
340 # define NEEDGETOPT	1	/* need a replacement for getopt(3) */
341 # define WAITUNION	1	/* use "union wait" as wait argument type */
342 # define sleep		sleepX
343 # define setpgid	setpgrp
344 # ifndef LA_TYPE
345 #  define LA_TYPE	LA_MACH
346 # endif
347 # define SFS_TYPE	SFS_VFS	/* use <sys/vfs.h> statfs() implementation */
348 # ifndef _POSIX_SOURCE
349 typedef int		pid_t;
350 #  undef WEXITSTATUS
351 #  undef WIFEXITED
352 # endif
353 # ifndef _PATH_SENDMAILCF
354 #  define _PATH_SENDMAILCF	"/etc/sendmail/sendmail.cf"
355 # endif
356 # ifndef _PATH_SENDMAILPID
357 #  define _PATH_SENDMAILPID	"/etc/sendmail/sendmail.pid"
358 # endif
359 #endif
360 
361 
362 /*
363 **  4.4 BSD
364 **
365 **	See also BSD defines.
366 */
367 
368 #ifdef BSD4_4
369 # define HASUNSETENV	1	/* has unsetenv(3) call */
370 # include <sys/cdefs.h>
371 # define ERRLIST_PREDEFINED	/* don't declare sys_errlist */
372 # ifndef LA_TYPE
373 #  define LA_TYPE	LA_SUBR
374 # endif
375 # define SFS_TYPE	SFS_MOUNT	/* use <sys/mount.h> statfs() impl */
376 # define SPT_TYPE	SPT_PSSTRINGS	/* use PS_STRINGS pointer */
377 #endif
378 
379 
380 /*
381 **  BSD/386 (all versions)
382 **	From Tony Sanders, BSDI
383 */
384 
385 #ifdef __bsdi__
386 # define HASUNSETENV	1	/* has the unsetenv(3) call */
387 # define HASSETSID	1	/* has the setsid(2) POSIX syscall */
388 # include <sys/cdefs.h>
389 # define ERRLIST_PREDEFINED	/* don't declare sys_errlist */
390 # define SFS_TYPE	SFS_MOUNT	/* use <sys/mount.h> statfs() impl */
391 # ifndef LA_TYPE
392 #  define LA_TYPE	LA_SUBR
393 # endif
394 # if defined(_BSDI_VERSION) && _BSDI_VERSION >= 199312
395 			/* version 1.1 or later */
396 #  undef SPT_TYPE
397 #  define SPT_TYPE	SPT_BUILTIN	/* setproctitle is in libc */
398 # else
399 			/* version 1.0 or earlier */
400 #  ifndef OLD_NEWDB
401 #   define OLD_NEWDB	1	/* old version of newdb library */
402 #  endif
403 #  define SPT_PADCHAR	'\0'	/* pad process title with nulls */
404 # endif
405 #endif
406 
407 
408 
409 /*
410 **  386BSD / FreeBSD 1.0E / NetBSD (all architectures, all versions)
411 **
412 **  4.3BSD clone, closer to 4.4BSD
413 **
414 **	See also BSD defines.
415 */
416 
417 #if defined(__386BSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
418 # define HASUNSETENV	1	/* has unsetenv(3) call */
419 # define HASSETSID	1	/* has the setsid(2) POSIX syscall */
420 # ifdef __NetBSD__
421 #  define HASUNAME	1	/* has uname(2) syscall */
422 # endif
423 # include <sys/cdefs.h>
424 # define ERRLIST_PREDEFINED	/* don't declare sys_errlist */
425 # ifndef LA_TYPE
426 #  define LA_TYPE	LA_SUBR
427 # endif
428 # define SFS_TYPE	SFS_MOUNT	/* use <sys/mount.h> statfs() impl */
429 #endif
430 
431 
432 /*
433 **  Mach386
434 **
435 **	For mt Xinu's Mach386 system.
436 */
437 
438 #if defined(MACH) && defined(i386)
439 # define MACH386	1
440 # define HASUNSETENV	1	/* has unsetenv(3) call */
441 # define HASINITGROUPS	1	/* has initgroups(3) call */
442 # ifndef HASFLOCK
443 #  define HASFLOCK	1	/* has flock(2) call */
444 # endif
445 # define NEEDGETOPT	1	/* need a replacement for getopt(3) */
446 # define NEEDSTRTOL	1	/* need the strtol() function */
447 # define setpgid	setpgrp
448 # ifndef LA_TYPE
449 #  define LA_TYPE	LA_FLOAT
450 # endif
451 # define SFS_TYPE	SFS_VFS	/* use <sys/vfs.h> statfs() implementation */
452 # undef HASSETVBUF		/* don't actually have setvbuf(3) */
453 # undef WEXITSTATUS
454 # undef WIFEXITED
455 # ifndef _PATH_SENDMAILCF
456 #  define _PATH_SENDMAILCF	"/usr/lib/sendmail.cf"
457 # endif
458 # ifndef _PATH_SENDMAILPID
459 #  define _PATH_SENDMAILPID	"/etc/sendmail.pid"
460 # endif
461 #endif
462 
463 
464 /*
465 **  4.3 BSD -- this is for very old systems
466 **
467 **	Should work for mt Xinu MORE/BSD and Mips UMIPS-BSD 2.1.
468 **
469 **	You'll also have to install a new resolver library.
470 **	I don't guarantee that support for this environment is complete.
471 */
472 
473 #if defined(oldBSD43) || defined(MORE_BSD) || defined(umipsbsd)
474 # define NEEDVPRINTF	1	/* need a replacement for vprintf(3) */
475 # define NEEDGETOPT	1	/* need a replacement for getopt(3) */
476 # define ARBPTR_T	char *
477 # define setpgid	setpgrp
478 # ifndef LA_TYPE
479 #  define LA_TYPE	LA_FLOAT
480 # endif
481 # ifndef _PATH_SENDMAILCF
482 #  define _PATH_SENDMAILCF	"/usr/lib/sendmail.cf"
483 # endif
484 # ifndef IDENTPROTO
485 #  define IDENTPROTO	0	/* TCP/IP implementation is broken */
486 # endif
487 # undef WEXITSTATUS
488 # undef WIFEXITED
489 typedef short		pid_t;
490 extern int		errno;
491 #endif
492 
493 
494 /*
495 **  SCO Unix
496 **
497 **	This includes two parts -- the first is for SCO Open Server 3.2v4
498 **	(contributed by Philippe Brand <phb@colombo.telesys-innov.fr>).
499 **	The second is, I believe, for an older version.
500 */
501 
502 #ifdef _SCO_unix_4_2
503 # define _SCO_unix_
504 # define HASSETREUID	1	/* has setreuid(2) call */
505 # define NEEDFSYNC	1	/* needs the fsync(2) call stub */
506 # define _PATH_UNIX	"/unix"
507 # ifndef _PATH_SENDMAILCF
508 #  define _PATH_SENDMAILCF	"/usr/lib/sendmail.cf"
509 # endif
510 # ifndef _PATH_SENDMAILPID
511 #  define _PATH_SENDMAILPID	"/etc/sendmail.pid"
512 # endif
513 #endif
514 
515 #ifdef _SCO_unix_
516 # define SYSTEM5	1	/* include all the System V defines */
517 # define SYS5SIGNALS	1	/* SysV signal semantics -- reset on each sig */
518 # define HASGETUSERSHELL 0	/* does not have getusershell(3) call */
519 # define FORK		fork
520 # define MAXPATHLEN	PATHSIZE
521 # define LA_TYPE	LA_SHORT
522 # define SFS_TYPE	SFS_4ARGS	/* use <sys/statfs.h> 4-arg impl */
523 # define TZ_TYPE	TZ_TM_NAME	/* use tm->tm_name */
524 # undef NETUNIX			/* no unix domain socket support */
525 #endif
526 
527 
528 /*
529 **  ConvexOS 11.0 and later
530 **
531 **	"Todd C. Miller" <millert@mroe.cs.colorado.edu> claims this
532 **	works on 9.1 as well.
533 */
534 
535 #ifdef _CONVEX_SOURCE
536 # define BSD		1	/* include all the BSD defines */
537 # define HASUNAME	1	/* use System V uname(2) system call */
538 # define HASSETSID	1	/* has POSIX setsid(2) call */
539 # define NEEDGETOPT	1	/* need replacement for getopt(3) */
540 # define LA_TYPE	LA_FLOAT
541 # define SFS_TYPE	SFS_VFS	/* use <sys/vfs.h> statfs() implementation */
542 # ifndef _PATH_SENDMAILCF
543 #  define _PATH_SENDMAILCF	"/usr/lib/sendmail.cf"
544 # endif
545 # ifndef S_IREAD
546 #  define S_IREAD	_S_IREAD
547 #  define S_IWRITE	_S_IWRITE
548 #  define S_IEXEC	_S_IEXEC
549 #  define S_IFMT	_S_IFMT
550 #  define S_IFCHR	_S_IFCHR
551 #  define S_IFBLK	_S_IFBLK
552 # endif
553 # ifndef IDENTPROTO
554 #  define IDENTPROTO	0	/* TCP/IP implementation is broken */
555 # endif
556 #endif
557 
558 
559 /*
560 **  RISC/os 4.52
561 **
562 **	Gives a ton of warning messages, but otherwise compiles.
563 */
564 
565 #ifdef RISCOS
566 
567 # define HASUNSETENV	1	/* has unsetenv(3) call */
568 # ifndef HASFLOCK
569 #  define HASFLOCK	1	/* has flock(2) call */
570 # endif
571 # define WAITUNION	1	/* use "union wait" as wait argument type */
572 # define NEEDGETOPT	1	/* need a replacement for getopt(3) */
573 # define LA_TYPE	LA_INT
574 # define LA_AVENRUN	"avenrun"
575 # define _PATH_UNIX	"/unix"
576 # undef WIFEXITED
577 
578 # define setpgid	setpgrp
579 
580 extern int		errno;
581 typedef int		pid_t;
582 #define			SIGFUNC_DEFINED
583 typedef int		(*sigfunc_t)();
584 extern char		*getenv();
585 extern void		*malloc();
586 
587 #endif
588 
589 
590 /*
591 **  Linux 0.99pl10 and above...
592 **
593 **  Thanks to, in reverse order of contact:
594 **
595 **	John Kennedy <warlock@csuchico.edu>
596 **	Florian La Roche <rzsfl@rz.uni-sb.de>
597 **	Karl London <karl@borg.demon.co.uk>
598 **
599 **  Last compiled against:	[03/02/94 @ 05:34 PM (Wednesday)]
600 **	sendmail 8.6.6.b9	named 4.9.2-931205-p1	db-1.73
601 **	gcc 2.5.8		libc.so.4.5.19
602 **	slackware 1.1.2		linux 0.99.15
603 */
604 
605 #ifdef __linux__
606 # define BSD		1	/* include BSD defines */
607 # define NEEDGETOPT	1	/* need a replacement for getopt(3) */
608 # define HASUNAME	1	/* use System V uname(2) system call */
609 # define HASUNSETENV	1	/* has unsetenv(3) call */
610 # define ERRLIST_PREDEFINED	/* don't declare sys_errlist */
611 # define GIDSET_T	gid_t	/* from <linux/types.h> */
612 # ifndef LA_TYPE
613 #  define LA_TYPE	LA_PROCSTR
614 # endif
615 # define SFS_TYPE	SFS_VFS		/* use <sys/vfs.h> statfs() impl */
616 # include <sys/sysmacros.h>
617 # undef atol			/* wounded in <stdlib.h> */
618 #endif
619 
620 
621 /*
622 **  DELL SVR4 Issue 2.2, and others
623 **	From Kimmo Suominen <kim@grendel.lut.fi>
624 **
625 **	It's on #ifdef DELL_SVR4 because Solaris also gets __svr4__
626 **	defined, and the definitions conflict.
627 **
628 **	Peter Wemm <peter@perth.DIALix.oz.au> claims that the setreuid
629 **	trick works on DELL 2.2 (SVR4.0/386 version 4.0) and ESIX 4.0.3A
630 **	(SVR4.0/386 version 3.0).
631 */
632 
633 #ifdef DELL_SVR4
634 				/* no changes necessary */
635 				/* see general __svr4__ defines below */
636 #endif
637 
638 
639 /*
640 **  Apple A/UX 3.0
641 */
642 
643 #ifdef _AUX_SOURCE
644 # include <sys/sysmacros.h>
645 # define BSD			/* has BSD routines */
646 # define HASUNAME	1	/* use System V uname(2) system call */
647 # define HASSETVBUF	1	/* we have setvbuf(3) in libc */
648 # define SIGFUNC_DEFINED	/* sigfunc_t already defined */
649 # ifndef IDENTPROTO
650 #  define IDENTPROTO	0	/* TCP/IP implementation is broken */
651 # endif
652 # define FORK		fork
653 # ifndef _PATH_SENDMAILCF
654 #  define _PATH_SENDMAILCF	"/usr/lib/sendmail.cf"
655 # endif
656 # ifndef LA_TYPE
657 #  define LA_TYPE	LA_ZERO
658 # endif
659 # define SFS_TYPE	SFS_VFS	/* use <sys/vfs.h> statfs() implementation */
660 # undef WIFEXITED
661 # undef WEXITSTATUS
662 #endif
663 
664 
665 /*
666 **  Encore UMAX V
667 **
668 **	Not extensively tested.
669 */
670 
671 #ifdef UMAXV
672 # include <limits.h>
673 # define HASUNAME	1	/* use System V uname(2) system call */
674 # define HASSETVBUF	1	/* we have setvbuf(3) in libc */
675 # define HASINITGROUPS	1	/* has initgroups(3) call */
676 # define HASGETUSERSHELL 0	/* does not have getusershell(3) call */
677 # define SYS5SIGNALS	1	/* SysV signal semantics -- reset on each sig */
678 # define SYS5SETPGRP	1	/* use System V setpgrp(2) syscall */
679 # define FORK		fork	/* no vfork(2) primitive available */
680 # define SFS_TYPE	SFS_4ARGS	/* four argument statfs() call */
681 # define MAXPATHLEN	PATH_MAX
682 extern struct passwd	*getpwent(), *getpwnam(), *getpwuid();
683 extern struct group	*getgrent(), *getgrnam(), *getgrgid();
684 # undef WIFEXITED
685 # undef WEXITSTATUS
686 #endif
687 
688 
689 /*
690 **  Stardent Titan 3000 running TitanOS 4.2.
691 **
692 **	Must be compiled in "cc -43" mode.
693 **
694 **	From Kate Hedstrom <kate@ahab.rutgers.edu>.
695 **
696 **	Note the tweaking below after the BSD defines are set.
697 */
698 
699 #ifdef titan
700 # define setpgid	setpgrp
701 typedef int		pid_t;
702 # undef WIFEXITED
703 # undef WEXITSTATUS
704 #endif
705 
706 
707 /*
708 **  Sequent DYNIX 3.2.0
709 **
710 **	From Jim Davis <jdavis@cs.arizona.edu>.
711 */
712 
713 #ifdef sequent
714 
715 # define BSD		1
716 # define HASUNSETENV	1
717 # define BSD4_3		1	/* to get signal() in conf.c */
718 # define WAITUNION	1
719 # define LA_TYPE	LA_FLOAT
720 # ifdef	_POSIX_VERSION
721 #  undef _POSIX_VERSION		/* set in <unistd.h> */
722 # endif
723 # undef HASSETVBUF		/* don't actually have setvbuf(3) */
724 # define setpgid	setpgrp
725 
726 /* Have to redefine WIFEXITED to take an int, to work with waitfor() */
727 # undef	WIFEXITED
728 # define WIFEXITED(s)	(((union wait*)&(s))->w_stopval != WSTOPPED && \
729 			 ((union wait*)&(s))->w_termsig == 0)
730 # define WEXITSTATUS(s)	(((union wait*)&(s))->w_retcode)
731 typedef int		pid_t;
732 # define isgraph(c)	(isprint(c) && (c != ' '))
733 
734 # ifndef IDENTPROTO
735 #  define IDENTPROTO	0	/* TCP/IP implementation is broken */
736 # endif
737 
738 # ifndef _PATH_UNIX
739 #  define _PATH_UNIX	"/dynix"
740 # endif
741 # ifndef _PATH_SENDMAILCF
742 #  define _PATH_SENDMAILCF	"/usr/lib/sendmail.cf"
743 # endif
744 
745 #endif
746 
747 
748 /*
749 **  Sequent DYNIX/ptx v2.0 (and higher)
750 **
751 **	For DYNIX/ptx v1.x, undefine HASSETREUID.
752 **
753 **	From Tim Wright <timw@sequent.com>.
754 */
755 
756 #ifdef _SEQUENT_
757 # define SYSTEM5	1	/* include all the System V defines */
758 # define HASSETSID	1	/* has POSIX setsid(2) call */
759 # define HASINITGROUPS	1	/* has initgroups(3) call */
760 # define HASSETREUID	1	/* has setreuid(2) call */
761 # define HASGETUSERSHELL 0	/* does not have getusershell(3) call */
762 # define GIDSET_T	gid_t
763 # define LA_TYPE	LA_INT
764 # define SFS_TYPE	SFS_STATFS	/* use <sys/statfs.h> statfs() impl */
765 # define SPT_TYPE	SPT_NONE	/* don't use setproctitle */
766 # ifndef IDENTPROTO
767 #  define IDENTPROTO	0	/* TCP/IP implementation is broken */
768 # endif
769 # ifndef _PATH_SENDMAILCF
770 #  define _PATH_SENDMAILCF	"/usr/lib/sendmail.cf"
771 # endif
772 # ifndef _PATH_SENDMAILPID
773 #  define _PATH_SENDMAILPID	"/etc/sendmail.pid"
774 # endif
775 #endif
776 
777 
778 /*
779 **  Cray Unicos
780 **
781 **	Ported by David L. Kensiski, Sterling Sofware <kensiski@nas.nasa.gov>
782 */
783 
784 #ifdef UNICOS
785 # define SYSTEM5	1	/* include all the System V defines */
786 # define SYS5SIGNALS	1	/* SysV signal semantics -- reset on each sig */
787 # define MAXPATHLEN	PATHSIZE
788 # define LA_TYPE	LA_ZERO
789 # define SFS_TYPE	SFS_4ARGS	/* four argument statfs() call */
790 #endif
791 
792 
793 /*
794 **  Apollo DomainOS
795 **
796 **  From Todd Martin <tmartint@tus.ssi1.com> & Don Lewis <gdonl@gv.ssi1.com>
797 **
798 **  15 Jan 1994
799 **
800 */
801 
802 #ifdef apollo
803 # define HASSETREUID	1	/* has setreuid(2) call */
804 # define HASINITGROUPS	1	/* has initgroups(2) call */
805 # define SPT_TYPE	SPT_NONE	/* don't use setproctitle */
806 # define LA_TYPE	LA_SUBR		/* use getloadavg.c */
807 # define SFS_TYPE	SFS_4ARGS	/* four argument statfs() call */
808 # ifndef _PATH_SENDMAILCF
809 #  define _PATH_SENDMAILCF	"/usr/lib/sendmail.cf"
810 # endif
811 # ifndef _PATH_SENDMAILPID
812 #  define _PATH_SENDMAILPID	"/etc/sendmail.pid"
813 # endif
814 # undef  S_IFSOCK		/* S_IFSOCK and S_IFIFO are the same */
815 # undef  S_IFIFO
816 # define S_IFIFO	0010000
817 # ifndef IDENTPROTO
818 #  define IDENTPROTO	0	/* TCP/IP implementation is broken */
819 # endif
820 #endif
821 
822 
823 /*
824 **  UnixWare 1.1.2.
825 **
826 **	From Evan Champion <evanc@spatial.synapse.org>.
827 */
828 
829 #ifdef UNIXWARE
830 # define SYSTEM5		1
831 # define HASGETUSERSHELL	0	/* does not have getusershell(3) call */
832 # define HASGETDTABLESIZE	1
833 # define HASSETREUID		1
834 # define HASSETSID		1
835 # define HASINITGROUPS		1
836 # define GIDSET_T		gid_t
837 # define SLEEP_T		unsigned
838 # define SFS_TYPE		SFS_STATVFS
839 # define LA_TYPE		LA_ZERO
840 # undef WIFEXITED
841 # undef WEXITSTATUS
842 # define _PATH_UNIX		"/unix"
843 # ifndef _PATH_SENDMAILCF
844 #  define _PATH_SENDMAILCF	"/usr/ucblib/sendmail.cf"
845 # endif
846 # ifndef _PATH_SENDMAILPID
847 #  define _PATH_SENDMAILPID	"/usr/ucblib/sendmail.pid"
848 # endif
849 # define SYSLOG_BUFSIZE	128
850 #endif
851 
852 
853 /*
854 **  Intergraph CLIX 3.1
855 **
856 **	From Paul Southworth <pauls@locust.cic.net>
857 */
858 
859 #ifdef CLIX
860 # define SYSTEM5	1	/* looks like System V */
861 # ifndef HASGETUSERSHELL
862 #  define HASGETUSERSHELL 0	/* does not have getusershell(3) call */
863 # endif
864 # define DEV_BSIZE	512	/* device block size not defined */
865 # define GIDSET_T	gid_t
866 # undef LOG			/* syslog not available */
867 # define NEEDFSYNC	1	/* no fsync in system library */
868 # define GETSHORT	_getshort
869 #endif
870 
871 
872 /*
873 **  NCR 3000 Series (SysVr4)
874 **
875 **	From Kevin Darcy <kevin@tech.mis.cfc.com>.
876 */
877 
878 #ifdef NCR3000
879 # define __svr4__
880 # undef BSD
881 # define LA_AVENRUN	"avenrun"
882 #endif
883 
884 
885 /*
886 **  Tandem NonStop-UX SVR4
887 **
888 **	From Rick McCarty <mccarty@mpd.tandem.com>.
889 */
890 
891 #ifdef NonStop_UX_BXX
892 # define __svr4__
893 #endif
894 
895 
896 /*
897 **  Hitachi 3050R & 3050RX Workstations running HI-UX/WE2.
898 **
899 **	Tested for 1.04 and 1.03
900 **	From Akihiro Hashimoto ("Hash") <hash@dominic.ipc.chiba-u.ac.jp>.
901 */
902 
903 #ifdef __H3050R
904 # define SYSTEM5	1	/* include all the System V defines */
905 # define HASINITGROUPS	1	/* has initgroups(3) call */
906 # define setreuid(r, e)	setresuid(r, e, -1)
907 # define LA_TYPE	LA_FLOAT
908 # define SFS_TYPE	SFS_VFS	/* use <sys/vfs.h> statfs() implementation */
909 # define HASSETVBUF	/* HI-UX has no setlinebuf */
910 # ifndef GIDSET_T
911 #  define GIDSET_T	gid_t
912 # endif
913 # ifndef _PATH_UNIX
914 #  define _PATH_UNIX	"/HI-UX"
915 # endif
916 # ifndef _PATH_SENDMAILCF
917 #  define _PATH_SENDMAILCF	"/usr/lib/sendmail.cf"
918 # endif
919 # ifndef IDENTPROTO
920 #  define IDENTPROTO	0	/* TCP/IP implementation is broken */
921 # endif
922 # ifndef HASGETUSERSHELL
923 #  define HASGETUSERSHELL 0	/* getusershell(3) causes core dumps */
924 # endif
925 
926 /* avoid m_flags conflict between db.h & sys/sysmacros.h on HIUX 3050 */
927 # undef m_flags
928 
929 # ifdef __STDC__
930 extern int	syslog(int, char *, ...);
931 # endif
932 
933 #endif
934 
935 
936 
937 /**********************************************************************
938 **  End of Per-Operating System defines
939 **********************************************************************/
940 
941 /**********************************************************************
942 **  More general defines
943 **********************************************************************/
944 
945 /* general BSD defines */
946 #ifdef BSD
947 # define HASGETDTABLESIZE 1	/* has getdtablesize(2) call */
948 # define HASSETREUID	1	/* has setreuid(2) call */
949 # define HASINITGROUPS	1	/* has initgroups(3) call */
950 # ifndef HASSETRLIMIT
951 #  define HASSETRLIMIT	1	/* has setrlimit(2) call */
952 # endif
953 # ifndef HASFLOCK
954 #  define HASFLOCK	1	/* has flock(2) call */
955 # endif
956 # ifndef TZ_TYPE
957 #  define TZ_TYPE	TZ_TM_ZONE	/* use tm->tm_zone variable */
958 # endif
959 #endif
960 
961 /* general System V Release 4 defines */
962 #ifdef __svr4__
963 # define SYSTEM5	1
964 # define HASSETREUID	1	/* has seteuid(2) call & working saved uids */
965 # define HASINITGROUPS	1	/* has initgroups(3) call */
966 # ifndef HASSETRLIMIT
967 #  define HASSETRLIMIT	1	/* has setrlimit(2) call */
968 # endif
969 # ifndef HASGETUSERSHELL
970 #  define HASGETUSERSHELL 0	/* does not have getusershell(3) call */
971 # endif
972 # define setreuid(r, e)	seteuid(e)
973 
974 # ifndef _PATH_UNIX
975 #  define _PATH_UNIX		"/unix"
976 # endif
977 # ifndef _PATH_SENDMAILCF
978 #  define _PATH_SENDMAILCF	"/usr/ucblib/sendmail.cf"
979 # endif
980 # ifndef _PATH_SENDMAILPID
981 #  define _PATH_SENDMAILPID	"/usr/ucblib/sendmail.pid"
982 # endif
983 # ifndef SYSLOG_BUFSIZE
984 #  define SYSLOG_BUFSIZE	128
985 # endif
986 # ifndef SFS_TYPE
987 #  define SFS_TYPE		SFS_STATVFS
988 # endif
989 #endif
990 
991 /* general System V defines */
992 #ifdef SYSTEM5
993 # include <sys/sysmacros.h>
994 # define HASUNAME	1	/* use System V uname(2) system call */
995 # define SYS5SETPGRP	1	/* use System V setpgrp(2) syscall */
996 # define HASSETVBUF	1	/* we have setvbuf(3) in libc */
997 # ifndef HASULIMIT
998 #  define HASULIMIT	1	/* has the ulimit(2) syscall */
999 # endif
1000 # ifndef LA_TYPE
1001 #  define LA_TYPE	LA_INT		/* assume integer load average */
1002 # endif
1003 # ifndef SFS_TYPE
1004 #  define SFS_TYPE	SFS_USTAT	/* use System V ustat(2) syscall */
1005 # endif
1006 # ifndef TZ_TYPE
1007 #  define TZ_TYPE	TZ_TZNAME	/* use tzname[] vector */
1008 # endif
1009 # define bcopy(s, d, l)		(memmove((d), (s), (l)))
1010 # define bzero(d, l)		(memset((d), '\0', (l)))
1011 # define bcmp(s, d, l)		(memcmp((s), (d), (l)))
1012 #endif
1013 
1014 /* general POSIX defines */
1015 #ifdef _POSIX_VERSION
1016 # define HASSETSID	1	/* has Posix setsid(2) call */
1017 # define HASWAITPID	1	/* has Posix waitpid(2) call */
1018 #endif
1019 
1020 /*
1021 **  If no type for argument two of getgroups call is defined, assume
1022 **  it's an integer -- unfortunately, there seem to be several choices
1023 **  here.
1024 */
1025 
1026 #ifndef GIDSET_T
1027 # define GIDSET_T	int
1028 #endif
1029 
1030 /*
1031 **  Tweaking for systems that (for example) claim to be BSD but
1032 **  don't have all the standard BSD routines (boo hiss).
1033 */
1034 
1035 #ifdef titan
1036 # undef HASINITGROUPS		/* doesn't have initgroups(3) call */
1037 #endif
1038 
1039 
1040 /*
1041 **  Due to a "feature" in some operating systems such as Ultrix 4.3 and
1042 **  HPUX 8.0, if you receive a "No route to host" message (ICMP message
1043 **  ICMP_UNREACH_HOST) on _any_ connection, all connections to that host
1044 **  are closed.  Some firewalls return this error if you try to connect
1045 **  to the IDENT port (113), so you can't receive email from these hosts
1046 **  on these systems.  The firewall really should use a more specific
1047 **  message such as ICMP_UNREACH_PROTOCOL or _PORT or _NET_PROHIB.  If
1048 **  not explicitly set to zero above, default it on.
1049 */
1050 
1051 #ifndef IDENTPROTO
1052 # define IDENTPROTO	1	/* use IDENT proto (RFC 1413) */
1053 #endif
1054 
1055 #ifndef HASGETUSERSHELL
1056 # define HASGETUSERSHELL 1	/* libc has getusershell(3) call */
1057 #endif
1058 
1059 #ifndef HASFLOCK
1060 # define HASFLOCK	0	/* assume no flock(2) support */
1061 #endif
1062 
1063 #ifndef HASSETRLIMIT
1064 # define HASSETRLIMIT	0	/* assume no setrlimit(2) support */
1065 #endif
1066 
1067 #ifndef HASULIMIT
1068 # define HASULIMIT	0	/* assume no ulimit(2) support */
1069 #endif
1070 
1071 #ifndef OLD_NEWDB
1072 # define OLD_NEWDB	0	/* assume newer version of newdb */
1073 #endif
1074 
1075 
1076 /**********************************************************************
1077 **  Remaining definitions should never have to be changed.  They are
1078 **  primarily to provide back compatibility for older systems -- for
1079 **  example, it includes some POSIX compatibility definitions
1080 **********************************************************************/
1081 
1082 /* System 5 compatibility */
1083 #ifndef S_ISREG
1084 # define S_ISREG(foo)	((foo & S_IFMT) == S_IFREG)
1085 #endif
1086 #if !defined(S_ISLNK) && defined(S_IFLNK)
1087 # define S_ISLNK(foo)	((foo & S_IFMT) == S_IFLNK)
1088 #endif
1089 #ifndef S_IWGRP
1090 #define S_IWGRP		020
1091 #endif
1092 #ifndef S_IWOTH
1093 #define S_IWOTH		002
1094 #endif
1095 
1096 /*
1097 **  Older systems don't have this error code -- it should be in
1098 **  /usr/include/sysexits.h.
1099 */
1100 
1101 # ifndef EX_CONFIG
1102 # define EX_CONFIG	78	/* configuration error */
1103 # endif
1104 
1105 /* pseudo-code used in server SMTP */
1106 # define EX_QUIT	22	/* drop out of server immediately */
1107 
1108 
1109 /*
1110 **  These are used in a few cases where we need some special
1111 **  error codes, but where the system doesn't provide something
1112 **  reasonable.  They are printed in errstring.
1113 */
1114 
1115 #ifndef E_PSEUDOBASE
1116 # define E_PSEUDOBASE	256
1117 #endif
1118 
1119 #define EOPENTIMEOUT	(E_PSEUDOBASE + 0)	/* timeout on open */
1120 #define E_DNSBASE	(E_PSEUDOBASE + 20)	/* base for DNS h_errno */
1121 
1122 /* type of arbitrary pointer */
1123 #ifndef ARBPTR_T
1124 # define ARBPTR_T	void *
1125 #endif
1126 
1127 #ifndef __P
1128 # include "cdefs.h"
1129 #endif
1130 
1131 #if NAMED_BIND
1132 # include <arpa/nameser.h>
1133 # ifdef __svr4__
1134 #  ifdef NOERROR
1135 #   undef NOERROR		/* avoid compiler conflict with stream.h */
1136 #  endif
1137 # endif
1138 #endif
1139 
1140 /*
1141 **  The size of an IP address -- can't use sizeof because of problems
1142 **  on Crays, where everything is 64 bits.  This will break if/when
1143 **  IP addresses are expanded to eight bytes.
1144 */
1145 
1146 #ifndef INADDRSZ
1147 # define INADDRSZ	4
1148 #endif
1149 
1150 /*
1151 **  The size of various known types -- for reading network protocols.
1152 **  Again, we can't use sizeof because of compiler randomness.
1153 */
1154 
1155 #ifndef INT16SZ
1156 # define INT16SZ	2
1157 #endif
1158 #ifndef INT32SZ
1159 # define INT32SZ	4
1160 #endif
1161 
1162 /*
1163 **  Do some required dependencies
1164 */
1165 
1166 #if defined(NETINET) || defined(NETISO)
1167 # define SMTP		1	/* enable user and server SMTP */
1168 # define QUEUE		1	/* enable queueing */
1169 # define DAEMON		1	/* include the daemon (requires IPC & SMTP) */
1170 #endif
1171 
1172 
1173 /*
1174 **  Arrange to use either varargs or stdargs
1175 */
1176 
1177 # ifdef __STDC__
1178 
1179 # include <stdarg.h>
1180 
1181 # define VA_LOCAL_DECL	va_list ap;
1182 # define VA_START(f)	va_start(ap, f)
1183 # define VA_END		va_end(ap)
1184 
1185 # else
1186 
1187 # include <varargs.h>
1188 
1189 # define VA_LOCAL_DECL	va_list ap;
1190 # define VA_START(f)	va_start(ap)
1191 # define VA_END		va_end(ap)
1192 
1193 # endif
1194 
1195 #ifdef HASUNAME
1196 # include <sys/utsname.h>
1197 # ifdef newstr
1198 #  undef newstr
1199 # endif
1200 #else /* ! HASUNAME */
1201 # define NODE_LENGTH 32
1202 struct utsname
1203 {
1204 	char nodename[NODE_LENGTH+1];
1205 };
1206 #endif /* HASUNAME */
1207 
1208 #if !defined(MAXHOSTNAMELEN) && !defined(_SCO_unix_) && !defined(NonStop_UX_BXX)
1209 # define MAXHOSTNAMELEN	256
1210 #endif
1211 
1212 #if !defined(SIGCHLD) && defined(SIGCLD)
1213 # define SIGCHLD	SIGCLD
1214 #endif
1215 
1216 #ifndef STDIN_FILENO
1217 #define STDIN_FILENO	0
1218 #endif
1219 
1220 #ifndef STDOUT_FILENO
1221 #define STDOUT_FILENO	1
1222 #endif
1223 
1224 #ifndef STDERR_FILENO
1225 #define STDERR_FILENO	2
1226 #endif
1227 
1228 #ifndef LOCK_SH
1229 # define LOCK_SH	0x01	/* shared lock */
1230 # define LOCK_EX	0x02	/* exclusive lock */
1231 # define LOCK_NB	0x04	/* non-blocking lock */
1232 # define LOCK_UN	0x08	/* unlock */
1233 #endif
1234 
1235 #ifndef SIG_ERR
1236 # define SIG_ERR	((void (*)()) -1)
1237 #endif
1238 
1239 #ifndef WEXITSTATUS
1240 # define WEXITSTATUS(st)	(((st) >> 8) & 0377)
1241 #endif
1242 #ifndef WIFEXITED
1243 # define WIFEXITED(st)		(((st) & 0377) == 0)
1244 #endif
1245 
1246 #ifndef SIGFUNC_DEFINED
1247 typedef void		(*sigfunc_t) __P((int));
1248 #endif
1249 
1250 /* size of syslog buffer */
1251 #ifndef SYSLOG_BUFSIZE
1252 # define SYSLOG_BUFSIZE	1024
1253 #endif
1254 
1255 /*
1256 **  Size of tobuf (deliver.c)
1257 **	Tweak this to match your syslog implementation.  It will have to
1258 **	allow for the extra information printed.
1259 */
1260 
1261 #ifndef TOBUFSIZE
1262 # if (SYSLOG_BUFSIZE) > 512
1263 #  define TOBUFSIZE	(SYSLOG_BUFSIZE - 256)
1264 # else
1265 #  define TOBUFSIZE	256
1266 # endif
1267 #endif
1268 
1269 /*
1270 **  Size of prescan buffer.
1271 **	Despite comments in the _sendmail_ book, this probably should
1272 **	not be changed; there are some hard-to-define dependencies.
1273 */
1274 
1275 # define PSBUFSIZE	(MAXNAME + MAXATOM)	/* size of prescan buffer */
1276 /* fork routine -- set above using #ifdef _osname_ or in Makefile */
1277 # ifndef FORK
1278 # define FORK		vfork		/* function to call to fork mailer */
1279 # endif
1280 
1281 /*
1282 **  If we are going to link scanf anyway, use it in readcf
1283 */
1284 
1285 #if !defined(HASUNAME) && !defined(SCANF)
1286 # define SCANF		1
1287 #endif
1288