Home
last modified time | relevance | path

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

/external/dnsmasq/src/
Dlease.c57 leasestream = daemon->lease_stream = fopen(daemon->lease_file, "a+"); in lease_init()
110 if (!daemon->lease_stream) { in lease_init()
158 if (!(*errp) && vfprintf(daemon->lease_stream, format, ap) < 0) *errp = errno; in ourprintf()
167 if (file_dirty != 0 && daemon->lease_stream) { in lease_update_file()
169 rewind(daemon->lease_stream); in lease_update_file()
170 if (errno != 0 || ftruncate(fileno(daemon->lease_stream), 0) != 0) err = errno; in lease_update_file()
195 if (fflush(daemon->lease_stream) != 0 || fsync(fileno(daemon->lease_stream)) < 0) in lease_update_file()
Ddnsmasq.c730 if (daemon->lease_stream) fclose(daemon->lease_stream); in async_event()
Ddnsmasq.h643 FILE* lease_stream; member