#define UPCALL_CONT 0
#define UPCALL_STOP 1
-#define HARD_FAIL(x) (((x) != 0 ) && ((x) != SMS_NO_CHANGE))
-#define SOFT_FAIL(x) (((x) == SMS_NO_MEM) || ((x) == SMS_CANT_CONNECT) || ((x) == SMS_CCONFIG))
+#define HARD_FAIL(x) (((x) != 0 ) && ((x) != MR_NO_CHANGE))
+#define SOFT_FAIL(x) (((x) == MR_NO_MEM) || ((x) == MR_CANT_CONNECT) || ((x) == MR_CCONFIG) || ((x) == MR_DEADLOCK) || ((x) == MR_BUSY))
+
+
+#define DEADLOCK_WAIT (3 * 60) /* number of seconds to wait after
+ a deadlock before trying again. */
+#define DEADLOCK_TRIES 40 /* how many times to try (2 hours) */
-#define SMS_DIR "/u1/sms"
-#define LOCK_DIR "/u1/sms/dcm/locks"
#define UMASK 0007
extern char *malloc(), *calloc(), *realloc();
/*--> utils.c <--*/
-extern void init_sms();
+extern void init_mr();
extern void dcm_com_err_hook();
extern void leave();
extern void scream();