Lines Matching defs:lockfd
7168 zonecfg_release_lock_file(const char *zone_name, int lockfd)
7181 assert(lockfd == -1);
7190 assert(lockfd >= 0);
7191 (void) close(lockfd);
7195 zonecfg_grab_lock_file(const char *zone_name, int *lockfd)
7209 *lockfd = -1;
7238 if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
7250 if ((fcntl(*lockfd, F_SETLKW, &flock) < 0) ||
7254 zonecfg_release_lock_file(zone_name, *lockfd);
7262 zonecfg_lock_file_held(int *lockfd)
7264 if (*lockfd >= 0 || zone_lock_cnt > 0)
7314 int doorfd, lockfd;
7321 if (zonecfg_grab_lock_file(zone_name, &lockfd) != Z_OK)
7390 zonecfg_release_lock_file(zone_name, lockfd);