Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_lock.c37 static int state_fd; variable
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()
639 (void) fsync(state_fd); in dr_req_update_entry()
734 (void) fsync(state_fd); in dr_req_add()
[all …]
/illumos-gate/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) {
1218 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) {