lock_info
flock_t lock_info;
lock_info.l_whence = SEEK_SET;
lock_info.l_start = 0;
lock_info.l_len = 0; /* l_len == 0 means until end of file */
lock_info.l_type = F_RDLCK;
lock_info.l_type = F_WRLCK;
while ((r = fcntl(fd, F_SETLKW, &lock_info)) == -1) {
lock_info.l_type = F_UNLCK;
while ((r = fcntl(fd, F_SETLKW, &lock_info)) == -1) {
lock_info_t lock_info[LOCK_MAX] = {
if (!lock_info[i].li_lock_f(ctrl, ns)) {
if (!test->wt_func(ctrl, lock_info[i].li_desc,
lock_info[i].li_unlock_f(ctrl, ns);
struct lock_info *lock = &lock_table[index];
static void load_table(struct lock_info *lock_table)
struct lock_info *lock = &lock_table[index];
static void do_lock(const char *name, struct symbol *sym, struct lock_info *info)
static void do_unlock(const char *name, struct symbol *sym, struct lock_info *info)
static void do_restore(const char *name, struct symbol *sym, struct lock_info *info)
struct lock_info *lock = &lock_table[index];
struct lock_info *lock = &lock_table[index];
struct lock_info *lock = &lock_table[index];
struct lock_info *lock = &lock_table[index];
static struct lock_info lock_table[] = {