* user pobox entries
* maillist expansions
* sublists of maillists
+ *
+ * (c) Copyright 1988 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
*/
+#include <mit-copyright.h>
#include <stdio.h>
#include <string.h>
#include <sms.h>
char *divide = "########################################################################";
extern int errno;
+char *whoami = "aliases.gen";
char *ingres_date_and_time();
struct stat sb;
## int flag1, flag2, flag3;
## char *filetime;
+ int ingerr();
+ IIseterr(ingerr);
## ingres sms
if (argc == 2) {
}
+/*
+ * ingerr: (supposedly) called when Ingres indicates an error.
+ * I have not yet been able to get this to work to intercept a
+ * database open error.
+ */
+#define INGRES_DEADLOCK 4700
+
+static int ingerr(num)
+ int *num;
+{
+ char buf[256];
+ int ingres_errno;
+
+ switch (*num) {
+ case INGRES_DEADLOCK:
+ ingres_errno = SMS_DEADLOCK;
+ break;
+ default:
+ ingres_errno = SMS_INGRES_ERR;
+ }
+ com_err(whoami, SMS_INGRES_ERR, " code %d\n", *num);
+ critical_alert("DCM", "Alias build encountered INGRES ERROR %d", *num);
+ exit(ingres_errno);
+}
+
+
struct hash *users, *machines, *strings, *lists;
struct user {
char login[9];