Home
last modified time | relevance | path

Searched refs:lease_stream (Results 1 – 3 of 3) sorted by relevance

/external/dnsmasq/src/
Dlease.c63 leasestream = daemon->lease_stream = fopen(daemon->lease_file, "a+"); in lease_init()
117 if (!daemon->lease_stream) in lease_init()
168 if (!(*errp) && vfprintf(daemon->lease_stream, format, ap) < 0) in ourprintf()
179 if (file_dirty != 0 && daemon->lease_stream) in lease_update_file()
182 rewind(daemon->lease_stream); in lease_update_file()
183 if (errno != 0 || ftruncate(fileno(daemon->lease_stream), 0) != 0) in lease_update_file()
215 if (fflush(daemon->lease_stream) != 0 || in lease_update_file()
216 fsync(fileno(daemon->lease_stream)) < 0) in lease_update_file()
Ddnsmasq.c900 if (daemon->lease_stream) in async_event()
901 fclose(daemon->lease_stream); in async_event()
Ddnsmasq.h676 FILE *lease_stream; member