Searched refs:state_fd (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_lock.c | 37 static int state_fd; variable 99 state_fd = open(RCM_STATE_FILE, O_CREAT|O_RDWR, 0600); in rcmd_lock_init() 100 if (state_fd == -1) { in rcmd_lock_init() 106 if (fstat(state_fd, &fbuf) != 0) { in rcmd_lock_init() 115 if (ftruncate(state_fd, size) != 0) { in rcmd_lock_init() 125 MAP_SHARED, state_fd, 0); in rcmd_lock_init() 137 (void) fsync(state_fd); in rcmd_lock_init() 163 (void) fsync(state_fd); in get_seq_number() 234 } else if (ftruncate(state_fd, newsize) != 0) { in get_req_entry() 241 PROT_READ|PROT_WRITE, MAP_SHARED, state_fd, 0)) == in get_req_entry() [all …]
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipfstat.c | 100 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) { 1218 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) {
|