]> diplodocus.org Git - nmh/blobdiff - h/prototypes.h
Support for locking tests in the test suite.
[nmh] / h / prototypes.h
index 921021d7f3db9d1cb5423ac33fdab7c48015c739..14b1252824fc3bffd8bf670549ca621152737aca 100644 (file)
@@ -88,18 +88,18 @@ char *getfolder(int);
  * file, which will use the locking algorithm configured for the mail
  * spool.
  *
- * All of these functions have a third argument, an integer which
- * indicates the type of lock.  A "0" means a shared (read) lock, and a
- * "1" indicates an exclusive (write) lock.
+ * Files opened for reading are locked with a read lock (if possible by
+ * the underlying lock mechanism), files opened for writing are locked
+ * using an exclusive lock.
  */
-int lkclosedata(int, char*);
-int lkclosespool(int, char*);
-int lkfclosedata(FILE *, char *);
-int lkfclosespool(FILE *, char *);
-FILE *lkfopendata(char *, char *, int);
-int lkopendata(char *, int, mode_t, int);
-FILE *lkfopenspool(char *, char *, int);
-int lkopenspool(char *, int, mode_t, int);
+int lkclosedata(int, const char *);
+int lkclosespool(int, const char *);
+int lkfclosedata(FILE *, const char *);
+int lkfclosespool(FILE *, const char *);
+FILE *lkfopendata(const char *, const char *);
+int lkopendata(const char *, int, mode_t);
+FILE *lkfopenspool(const char *, const char *);
+int lkopenspool(const char *, int, mode_t);
 int m_atoi (char *);
 char *m_backup (char *);
 int m_convert (struct msgs *, char *);