X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b43e55a89e0fd66e1bf968fed25feacfbd045514..f1b704d05c9a2209edf851392220438e62470314:/h/prototypes.h diff --git a/h/prototypes.h b/h/prototypes.h index 7a4f8a38..da5231ba 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -178,16 +178,17 @@ int get_term_numcap(char *capability); * * 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. + * using an exclusive lock. The int * argument is used to indicate failure + * to acquire a lock. */ 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 *lkfopendata(const char *, const char *, int *); +int lkopendata(const char *, int, mode_t, int *); FILE *lkfopenspool(const char *, const char *); -int lkopenspool(const char *, int, mode_t); +int lkopenspool(const char *, int, mode_t, int *); int m_atoi (char *); char *m_backup (char *); int m_convert (struct msgs *, char *); @@ -297,8 +298,12 @@ void seq_printall (struct msgs *); * and a pointer to the filehandle will be stored in * folder structure, where it will later be used by * seq_save(). + * + * Return values: + * OK - successfully read the sequence files, or they don't exist + * NOTOK - failed to lock sequence file */ -void seq_read (struct msgs * mp, int lockflag); +int seq_read (struct msgs * mp, int lockflag); void seq_save (struct msgs *); void seq_setcur (struct msgs *, int); void seq_setprev (struct msgs *);