comparison lib-src/movemail.c @ 400:a86b2b5e0111 r21-2-30

Import from CVS: tag r21-2-30
author cvs
date Mon, 13 Aug 2007 11:14:34 +0200
parents 74fd4e045ea6
children de805c49cfc1
comparison
equal deleted inserted replaced
399:376370fb5946 400:a86b2b5e0111
202 #define DEFAULT_LOCKING LOCKING 202 #define DEFAULT_LOCKING LOCKING
203 #else 203 #else
204 #define DEFAULT_LOCKING DOTLOCKING 204 #define DEFAULT_LOCKING DOTLOCKING
205 #endif 205 #endif
206 206
207 #ifndef DISABLE_DIRECT_ACCESS
207 static void lock_dot(char *); 208 static void lock_dot(char *);
209 #endif
208 static void unlock_dot(char *); 210 static void unlock_dot(char *);
209 static int parse_lock_method(char *); 211 static int parse_lock_method(char *);
210 static char *unparse_lock_method(int); 212 static char *unparse_lock_method(int);
211 213
212 int 214 int
564 return concat (filename, ".lock", ""); 566 return concat (filename, ".lock", "");
565 } 567 }
566 568
567 static char *dotlock_filename = NULL; 569 static char *dotlock_filename = NULL;
568 570
571 #ifndef DISABLE_DIRECT_ACCESS
569 static void 572 static void
570 lock_dot(char *filename) 573 lock_dot(char *filename)
571 { 574 {
572 struct stat st; 575 struct stat st;
573 long now; 576 long now;
623 unlink (lockname); 626 unlink (lockname);
624 } 627 }
625 } 628 }
626 strcpy(dotlock_filename, filename); 629 strcpy(dotlock_filename, filename);
627 } 630 }
631 #endif /* not DISABLE_DIRECT_ACCESS */
628 632
629 static void 633 static void
630 unlock_dot(char *filename) 634 unlock_dot(char *filename)
631 { 635 {
632 unlink(dot_filename(filename)); 636 unlink(dot_filename(filename));