support for Cray Computer Corp's CSOS
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Sun, 19 Feb 1995 23:29:03 +0000 (15:29 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Sun, 19 Feb 1995 23:29:03 +0000 (15:29 -0800)
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

usr/src/usr.sbin/sendmail/src/conf.c
usr/src/usr.sbin/sendmail/src/conf.h
usr/src/usr.sbin/sendmail/src/readcf.c

index 432b7d0..6b1b450 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-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"
@@ -1531,7 +1531,7 @@ setproctitle(fmt, va_alist)
 **  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:
-**             none.
+**             sig -- the signal that got us here (unused).
 **
 **     Returns:
 **             none.
 **
 **     Returns:
 **             none.
@@ -1541,7 +1541,8 @@ setproctitle(fmt, va_alist)
 */
 
 void
 */
 
 void
-reapchild()
+reapchild(sig)
+       int sig;
 {
        int olderrno = errno;
 # ifdef HASWAITPID
 {
        int olderrno = errno;
 # ifdef HASWAITPID
@@ -2104,7 +2105,7 @@ freespace(dir, bsize)
 #   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
index c8ba35d..9e80f17 100644 (file)
@@ -5,7 +5,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)conf.h      8.132 (Berkeley) %G%
+ *     @(#)conf.h      8.133 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -1025,7 +1025,22 @@ extern int       syslog(int, char *, ...);
 # endif
 #endif
 
 # endif
 #endif
 
+/*
+**  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
 
 
 /**********************************************************************
 
 
 /**********************************************************************
@@ -1124,14 +1139,18 @@ extern int      syslog(int, char *, ...);
 #endif
 
 /*
 #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
index b1886f8..27572e1 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-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"
@@ -1977,11 +1977,11 @@ setextoption(opt, safe, sticky, e)
                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
 **
 **     Parameters:
 **
 **     Parameters:
-**             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
 **
 **     Returns:
 **             none.
 **
 **     Returns:
 **             none.
@@ -1990,15 +1990,15 @@ setextoption(opt, safe, sticky, e)
 **             puts the word into the symbol table.
 */
 
 **             puts the word into the symbol table.
 */
 
-setclass(class, word)
+setclass(class, str)
        int class;
        int class;
-       char *word;
+       char *str;
 {
        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/*