Searched refs:daemon_lock_fd (Results 1 – 5 of 5) sorted by relevance
/titanic_41/usr/src/cmd/lvm/rpc.mdcommd/ |
H A D | mddoors.c | 39 static int daemon_lock_fd; variable 59 daemon_lock_fd = open(daemon_lock_file, O_CREAT|O_RDWR, 0644); in enter_daemon_lock() 61 if (daemon_lock_fd < 0) { in enter_daemon_lock() 70 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == -1) { in enter_daemon_lock() 74 if (fcntl(daemon_lock_fd, F_GETLK, &lock) == -1) { in enter_daemon_lock() 98 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == -1) { in exit_daemon_lock() 104 if (close(daemon_lock_fd) == -1) { in exit_daemon_lock() 220 if (i == daemon_lock_fd) in main()
|
/titanic_41/usr/src/cmd/lvm/md_monitord/ |
H A D | md_monitord.c | 56 static int daemon_lock_fd; variable 128 daemon_lock_fd = open(daemon_lock_file, O_CREAT|O_RDWR, 0644); in check_daemon_lock() 129 if (daemon_lock_fd < 0) { in check_daemon_lock() 140 if (fcntl(daemon_lock_fd, F_GETLK, &lock) == -1) { in check_daemon_lock() 157 daemon_lock_fd = open(daemon_lock_file, O_CREAT|O_RDWR, 0644); in enter_daemon_lock() 158 if (daemon_lock_fd < 0) { in enter_daemon_lock() 169 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == -1) { in enter_daemon_lock() 173 if (fcntl(daemon_lock_fd, F_GETLK, &lock) == -1) { in enter_daemon_lock() 200 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == -1) { in exit_daemon_lock() 205 if (close(daemon_lock_fd) == -1) { in exit_daemon_lock()
|
/titanic_41/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_main.c | 49 static int daemon_lock_fd; variable 138 daemon_lock_fd = open(daemon_lock_file, O_CREAT|O_RDWR, 0644); in enter_daemon_lock() 139 if (daemon_lock_fd < 0) { in enter_daemon_lock() 150 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == 0) { in enter_daemon_lock() 157 (fcntl(daemon_lock_fd, F_GETLK, &lock) == 0)) { in enter_daemon_lock() 181 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == -1) { in exit_daemon_lock() 186 (void) close(daemon_lock_fd); in exit_daemon_lock()
|
/titanic_41/usr/src/cmd/syseventd/daemons/syseventd/ |
H A D | syseventd.c | 97 static int daemon_lock_fd; variable 1560 daemon_lock_fd = open(local_lock_file, O_CREAT|O_RDWR, 0644); in enter_daemon_lock() 1561 if (daemon_lock_fd < 0) { in enter_daemon_lock() 1572 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == -1) { in enter_daemon_lock() 1573 if (fcntl(daemon_lock_fd, F_GETLK, &lock) == -1) { in enter_daemon_lock() 1598 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == -1) { in exit_daemon_lock() 1603 if (close(daemon_lock_fd) == -1) { in exit_daemon_lock()
|
/titanic_41/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 204 static int daemon_lock_fd; variable 4048 daemon_lock_fd = open(daemon_lockfile, O_CREAT|O_RDWR, 0644); in enter_daemon_lock() 4049 if (daemon_lock_fd < 0) { in enter_daemon_lock() 4060 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == -1) { in enter_daemon_lock() 4063 if (fcntl(daemon_lock_fd, F_GETLK, &lock) == -1) { in enter_daemon_lock() 4096 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == -1) { in exit_daemon_lock() 4100 if (close(daemon_lock_fd) == -1) { in exit_daemon_lock()
|