Lines Matching refs:lease_file
18 static FILE *lease_file;
39 if (!(lease_file = fopen(daemon->lease_file, "a+")))
43 rewind(lease_file);
45 while (fscanf(lease_file, "%lu %x:%x:%x:%x:%x:%x %d.%d.%d.%d %257s %257s",
102 daemon->lease_fd = fileno(lease_file);
132 rewind(lease_file);
133 ftruncate(fileno(lease_file), 0);
146 fprintf(lease_file, "%lu %.2x:%.2x:%.2x:%.2x:%.2x:%.2x %s %s ",
155 fprintf(lease_file, "%.2x:", lease->clid[i]);
156 fprintf(lease_file, "%.2x\n", lease->clid[i]);
159 fprintf(lease_file, "*\n");
163 fflush(lease_file);
164 fsync(fileno(lease_file));