SCCS-vsn: usr.sbin/sendmail/src/conf.h 8.133
SCCS-vsn: usr.sbin/sendmail/src/readcf.c 8.66
SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.131
-static char sccsid[] = "@(#)conf.c 8.130 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 8.131 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
** REAPCHILD -- pick up the body of my child, lest it become a zombie
**
** Parameters:
** REAPCHILD -- pick up the body of my child, lest it become a zombie
**
** Parameters:
+** sig -- the signal that got us here (unused).
+reapchild(sig)
+ int sig;
{
int olderrno = errno;
# ifdef HASWAITPID
{
int olderrno = errno;
# ifdef HASWAITPID
# else
struct statfs fs;
# define FSBLOCKSIZE fs.f_bsize
# else
struct statfs fs;
# define FSBLOCKSIZE fs.f_bsize
-# if defined(_SCO_unix_) || defined(IRIX) || defined(apollo) || defined(ALTOS_SYS_V) || defined(_UTS)
+# if defined(_SCO_unix_) || defined(IRIX) || defined(apollo) || defined(ALTOS_SYS_V) || defined(_UTS) || defined(_CRAYCOM)
# define f_bavail f_bfree
# endif
# endif
# define f_bavail f_bfree
# endif
# endif
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)conf.h 8.132 (Berkeley) %G%
+ * @(#)conf.h 8.133 (Berkeley) %G%
+/*
+** Cray Computer Corporation's CSOS
+**
+** Contributed by Scott Bolte <scott@craycos.com>.
+*/
+#ifdef _CRAYCOM
+# define SYSTEM5 1 /* include all the System V defines */
+# define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */
+# define NEEDFSYNC 1 /* no fsync in system library */
+# define MAXPATHLEN PATHSIZE
+# define LA_TYPE LA_ZERO
+# define SFS_TYPE SFS_4ARGS /* four argument statfs() call */
+# define _POSIX_CHOWN_RESTRICTED -1
+extern struct group *getgrent(), *getgrnam(), *getgrgid();
+#endif
/**********************************************************************
/**********************************************************************
-** Tweaking for systems that (for example) claim to be BSD but
-** don't have all the standard BSD routines (boo hiss).
+** Tweaking for systems that (for example) claim to be BSD or POSIX
+** but don't have all the standard BSD or POSIX routines (boo hiss).
*/
#ifdef titan
# undef HASINITGROUPS /* doesn't have initgroups(3) call */
#endif
*/
#ifdef titan
# undef HASINITGROUPS /* doesn't have initgroups(3) call */
#endif
+#ifdef _CRAYCOM
+# undef HASSETSID /* despite POSIX claim, doesn't have setsid */
+#endif
+
/*
** Due to a "feature" in some operating systems such as Ultrix 4.3 and
/*
** Due to a "feature" in some operating systems such as Ultrix 4.3 and
-static char sccsid[] = "@(#)readcf.c 8.65 (Berkeley) %G%";
+static char sccsid[] = "@(#)readcf.c 8.66 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
xo->xo_flags |= XOF_STICKY;
}
\f/*
xo->xo_flags |= XOF_STICKY;
}
\f/*
-** SETCLASS -- set a word into a class
+** SETCLASS -- set a string into a class
-** class -- the class to put the word in.
-** word -- the word to enter
+** class -- the class to put the string in.
+** str -- the string to enter
** puts the word into the symbol table.
*/
** puts the word into the symbol table.
*/
{
register STAB *s;
if (tTd(37, 8))
{
register STAB *s;
if (tTd(37, 8))
- printf("setclass(%c, %s)\n", class, word);
- s = stab(word, ST_CLASS, ST_ENTER);
+ printf("setclass(%c, %s)\n", class, str);
+ s = stab(str, ST_CLASS, ST_ENTER);
setbitn(class, s->s_class);
}
\f/*
setbitn(class, s->s_class);
}
\f/*