int bplen, tmplen;
char *bp, *cp;
-#if 0
- struct stat st;
-#endif
-
if ((cp = strrchr(file, '/')) == NULL || *++cp == 0)
cp = file;
}
#endif
-#if 0
- /*
- ** mmdf style dot locking. Currently not supported.
- ** If we start supporting mmdf style dot locking,
- ** we will need to change the return value of lockname
- */
- if (stat(file, &st) == -1)
- return -1;
-
- snprintf(bp, sizeof(li->curlock) - bplen, "LCK%05d.%05d",
- st.st_dev, st.st_ino);
-#endif
-
snprintf(bp, sizeof(li->curlock) - bplen, "%s.lock", cp);
#if !defined(HAVE_LIBLOCKFILE)