-/* $Header$
+/* $Id$
*
* This generates a database extract from the users table for the MIT
* Warehouse.
*
- * (c) Copyright 1992 by the Massachusetts Institute of Technology.
- * For copying and distribution information, please see the file
- * <mit-copyright.h>.
+ * Copyright (C) 1996-1998 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
*/
#include <mit-copyright.h>
-#include <errno.h>
-#include <stdio.h>
#include <moira.h>
#include <moira_site.h>
-#include <des.h>
-#include <krb.h>
-#include <gdss.h>
-#include <sys/types.h>
+
#include <sys/stat.h>
-#include <sys/time.h>
-#include <sys/file.h>
-#include <string.h>
-#include <ctype.h>
+#include <sys/types.h>
+
#include <fcntl.h>
+#include <ctype.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
+
+#include <krb.h>
+#include <gdss.h>
+
+#include "util.h"
+
EXEC SQL INCLUDE sqlca;
+RCSID("$Header$");
+
char *whoami = "warehouse.gen";
char *db = "moira/moira";
struct stat sb;
int flag1;
SigInfo si;
- struct timeval now;
int records = 0;
EXEC SQL BEGIN DECLARE SECTION;
char login[9], sig[257], id[17], kname[257];