lockname (file, &lkinfo, 0); /* get name of lock file */
#if !defined(HAVE_LIBLOCKFILE)
lockname (file, &lkinfo, 0); /* get name of lock file */
#if !defined(HAVE_LIBLOCKFILE)
/* check for stale lockfile, else sleep */
if (curtime > st.st_ctime + RSECS)
/* check for stale lockfile, else sleep */
if (curtime > st.st_ctime + RSECS)
* by linking to the temporary file.
*/
fd = link(tmpfile, curlock);
* by linking to the temporary file.
*/
fd = link(tmpfile, curlock);