Searched refs:bam_lock_fd (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c228 static int bam_lock_fd = -1; variable
1653 bam_lock_fd = open(BAM_LOCK_FILE, O_CREAT|O_RDWR, LOCK_FILE_PERMS);
1654 if (bam_lock_fd < 0) {
1675 if (fcntl(bam_lock_fd, F_SETLK, &lock) == -1) {
1679 (void) close(bam_lock_fd);
1680 bam_lock_fd = -1;
1684 (void) pread(bam_lock_fd, &pid, sizeof (pid_t), 0);
1693 if (fcntl(bam_lock_fd, F_SETLKW, &lock) == -1) {
1696 (void) close(bam_lock_fd);
1697 bam_lock_fd
[all...]

Completed in 69 milliseconds