#endif lint
#include <stdio.h>
+#include <stdlib.h>
#include <update.h>
#include <sys/file.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/stat.h>
+#include <time.h>
#include <fcntl.h>
#include <signal.h>
#include <ctype.h>
#include "dcm.h"
#include "mit-copyright.h"
#include <unistd.h>
+#include <com_err.h>
-extern char *ctime();
-extern char *getenv();
-extern int log_flags;
-extern char *error_message();
-char *itoa();
+extern int log_flags, errno;
int gqval();
-long time();
/* declared global so that we can get the current time from different places. */
#endif lint
#include <mit-copyright.h>
+#include <errno.h>
#include <stdio.h>
-#include <strings.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <sys/resource.h>
#include <moira_site.h>
+#include <time.h>
#define PROG "dcm"
int rdpipe[2];
extern int errno;
-cleanup()
+void cleanup()
{
int stat, serrno = errno;
char buf[BUFSIZ];
do {
char *time_s;
- extern char *ctime();
long foo;
done = 0;