Home
last modified time | relevance | path

Searched refs:state_fd (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/cmd/rcm_daemon/common/
H A Drcm_lock.c39 static int state_fd; variable
101 state_fd = open(RCM_STATE_FILE, O_CREAT|O_RDWR, 0600); in rcmd_lock_init()
102 if (state_fd == -1) { in rcmd_lock_init()
108 if (fstat(state_fd, &fbuf) != 0) { in rcmd_lock_init()
117 if (ftruncate(state_fd, size) != 0) { in rcmd_lock_init()
127 MAP_SHARED, state_fd, 0); in rcmd_lock_init()
139 (void) fsync(state_fd); in rcmd_lock_init()
165 (void) fsync(state_fd); in get_seq_number()
236 } else if (ftruncate(state_fd, newsize) != 0) { in get_req_entry()
243 PROT_READ|PROT_WRITE, MAP_SHARED, state_fd, 0)) == in get_req_entry()
[all …]
/titanic_41/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_pcu.c520 nsc_fd_t *state_fd; in _sdbc_power_flush() local
638 if (!(state_fd = in _sdbc_power_flush()
640 !nsc_getval(state_fd, "DevMaj", (int *)&devmaj) || in _sdbc_power_flush()
641 !nsc_getval(state_fd, "DevMin", (int *)&devmin)) { in _sdbc_power_flush()
642 if (state_fd) { in _sdbc_power_flush()
643 (void) nsc_close(state_fd); in _sdbc_power_flush()
/titanic_41/usr/src/cmd/ipf/tools/
H A Dipfstat.c100 int state_fd = -1; variable
256 if ((state_fd = open(IPSTATE_NAME, O_RDONLY)) == -1) {
261 if (setzone(state_fd) != 0) {
262 close(state_fd);
475 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) {
479 if (ioctl(state_fd, SIOCGETLG, &state_logging) == -1) {
1219 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) {