smdb_lockfile
static bool smdb_lockfile __P((int, int));
if (!smdb_lockfile(fd, type))
if (!smdb_lockfile(fd, LOCK_UN))