Lines Matching +full:lock +full:- +full:less
43 static char *lockext = ".lock"; /* Lock suffix for mailname */
44 static char curlock[PATHSIZE]; /* Last used name of lock */
46 static time_t locktime; /* time lock file was touched */
50 * Lock the specified mail file by setting the file mailfile.lock.
51 * We must, of course, be careful to remove the lock file by a call
53 * the lock exists, and if it does, to check its modify time. If it
65 char locktmp[PATHSIZE]; /* Usable lock temporary */ in maillock()
88 return (-1); in maillock()
96 * of the lock file, rather than with the current in maillock()
99 * ours. If the lock file is less than 5 minutes in maillock()
111 * Remove the mail lock, and note that we no longer
122 * Attempt to set the lock by creating the temporary file,
138 * Write the string "0" into the lock file to give us some in lock1()
140 * a process ID to be written into the lock file and then in lock1()
142 * 0 into it so that SVR4 mailers will always think our lock file in lock1()
156 * Update the change time on the lock file so