Searched refs:statefd (Results 1 – 1 of 1) sorted by relevance
526 state_file_descr_t *statefd, in open_state_file() argument534 if ((statefd->fd = open(filename, O_CREAT|O_RDWR, 0600)) == in open_state_file()543 if (fstat(statefd->fd, &stats) != 0) { in open_state_file()553 statefd->state_file = (state_file_t *)mmap(NULL, in open_state_file()555 statefd->fd, 0); in open_state_file()557 if (statefd->state_file == MAP_FAILED) { in open_state_file()565 if (statefd->state_file->version != version) { in open_state_file()566 (void) munmap((void *)statefd->state_file, in open_state_file()568 statefd->state_file = NULL; in open_state_file()569 (void) ftruncate(statefd->fd, 0); in open_state_file()[all …]