/*
* $Log$
+ * Revision 1.6 2008/02/15 19:09:00 james
+ * *** empty log message ***
+ *
* Revision 1.5 2008/02/15 18:26:49 james
* *** empty log message ***
*
char *lock_dirs[] =
{ "/var/lock/uucp", "/var/spool/lock", "/var/spool/uucp", "/etc/locks",
"/usr/spool/uucp", "/var/spool/locks", "/usr/spool/lock",
- "/usr/spool/locks",
- "/usr/spool/uucp/LCK"
+ "/usr/spool/locks", "/usr/spool/uucp/LCK"
};
int i;
/*
* $Log$
+ * Revision 1.5 2008/02/15 19:09:00 james
+ * *** empty log message ***
+ *
* Revision 1.4 2008/02/15 16:48:56 james
* *** empty log message ***
*
#include <dirent.h>
#include <sys/stat.h>
-#define NLOCKFILES 10
+
typedef struct
{
- char *lockfiles[NLOCKFILES];
- char *potential_lockfiles[NLOCKFILES];
- struct timeval last_content_check;
+ int mode;
+ int i;
+
+ struct timeval last_stale_purge;
+ Filelist locks_to_check;
+ Filelist locks_held;
} Serial_lock;
typedef struct
--- /dev/null
+/*
+ * serial.h:
+ *
+ * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
+ * All rights reserved.
+ *
+ */
+
+/*
+ * $Id$
+ */
+
+/*
+ * $Log$
+ * Revision 1.1 2008/02/15 19:09:00 james
+ * *** empty log message ***
+ *
+ */
+
+#ifndef __SERIAL_H__
+#define __SERIAL_H__
+
+#define SERIAL_LOCK_PASSIVE 0
+#define SERIAL_LOCK_ACTIVE 1
+
+#endif /* __SERIAL_H__ */