Lines Matching refs:owner
427 current_lock_owner (owner, lfname)
428 lock_info_type *owner;
465 /* Even if the caller doesn't want the owner info, we still have to
467 if (!owner)
469 owner = (lock_info_type *) alloca (sizeof (lock_info_type));
483 owner->user = (char *) xmalloc (len + 1);
484 strncpy (owner->user, lfinfo, len);
485 owner->user[len] = 0;
488 owner->pid = atoi (dot + 1);
494 owner->boot_time = atoi (colon + 1);
496 owner->boot_time = 0;
500 owner->host = (char *) xmalloc (len + 1);
501 strncpy (owner->host, at + 1, len);
502 owner->host[len] = 0;
509 && strcmp (owner->host, SDATA (Fsystem_name ())) == 0)
511 if (owner->pid == getpid ())
513 else if (owner->pid > 0
514 && (kill (owner->pid, 0) >= 0 || errno == EPERM)
515 && (owner->boot_time == 0
516 || within_one_second (owner->boot_time, get_boot_time ())))
518 /* The owner process is dead or has a strange pid (<=0), so try to
534 FREE_LOCK_INFO (*owner);
735 int owner;
742 owner = current_lock_owner (&locker, lfname);
743 if (owner <= 0)
745 else if (owner == 2)
750 if (owner > 0)