Lines Matching refs:ttl
69 datum ttl; in has_entry_expired() local
75 if ((map == NULL) || (map->ttl == NULL)) in has_entry_expired()
79 ttl = dbm_fetch(map->ttl, *key); in has_entry_expired()
81 if (NULL == ttl.dptr) { in has_entry_expired()
111 if (ttl.dsize != sizeof (struct timeval)) { in has_entry_expired()
119 map->map_name, dbm_error(map->ttl)); in has_entry_expired()
144 bcopy(ttl.dptr, &old_time, sizeof (struct timeval)); in has_entry_expired()
192 int ttl; in update_entry_ttl() local
198 ttl = get_ttl_value(map, type); in update_entry_ttl()
200 if (FAILURE == add_to_timeval(&now, ttl)) in update_entry_ttl()
209 if (0 > dbm_store(map->ttl, *key, expire, DBM_REPLACE)) { in update_entry_ttl()
247 if (NULL == map->ttl) { in update_map_ttl()
248 map->ttl = dbm_open(map->ttl_path, O_RDWR, 0644); in update_map_ttl()
249 if (NULL == map->ttl) in update_map_ttl()
259 dbm_close(map->ttl); in update_map_ttl()