Lines Matching refs:status_fd
52 static int status_fd; /* File descriptor for the open file */
140 if (lseek(status_fd, desired_size - 1, SEEK_SET) == -1 ||
141 write(status_fd, "\0", 1) < 0)
179 status_fd = open(filename, O_RDWR);
180 if ((status_fd < 0) && (errno == ENOENT))
182 status_fd = open(filename, O_RDWR | O_CREAT, 0644);
185 if (status_fd < 0)
191 mmap(NULL, 0x10000000, PROT_READ | PROT_WRITE, MAP_SHARED, status_fd, 0);
196 status_file_len = lseek(status_fd, 0L, SEEK_END);
214 lseek(status_fd, 0L, SEEK_SET);
215 write(status_fd, buf, HEADER_LEN);