Searched refs:statefd (Results 1 – 1 of 1) sorted by relevance
524 state_file_descr_t *statefd, in open_state_file() argument532 if ((statefd->fd = open(filename, O_CREAT|O_RDWR, 0600)) == in open_state_file()541 if (fstat(statefd->fd, &stats) != 0) { in open_state_file()551 statefd->state_file = (state_file_t *)mmap(NULL, in open_state_file()553 statefd->fd, 0); in open_state_file()555 if (statefd->state_file == MAP_FAILED) { in open_state_file()563 if (statefd->state_file->version != version) { in open_state_file()564 (void) munmap((void *)statefd->state_file, in open_state_file()566 statefd->state_file = NULL; in open_state_file()567 (void) ftruncate(statefd->fd, 0); in open_state_file()[all …]