Lines Matching refs:ttl
70 datum ttl; in has_entry_expired() local
76 if ((map == NULL) || (map->ttl == NULL)) in has_entry_expired()
80 ttl = dbm_fetch(map->ttl, *key); in has_entry_expired()
82 if (NULL == ttl.dptr) { in has_entry_expired()
112 if (ttl.dsize != sizeof (struct timeval)) { in has_entry_expired()
120 map->map_name, dbm_error(map->ttl)); in has_entry_expired()
145 bcopy(ttl.dptr, &old_time, sizeof (struct timeval)); in has_entry_expired()
193 int ttl; in update_entry_ttl() local
199 ttl = get_ttl_value(map, type); in update_entry_ttl()
201 if (FAILURE == add_to_timeval(&now, ttl)) in update_entry_ttl()
210 if (0 > dbm_store(map->ttl, *key, expire, DBM_REPLACE)) { in update_entry_ttl()
248 if (NULL == map->ttl) { in update_map_ttl()
249 map->ttl = dbm_open(map->ttl_path, O_RDWR, 0644); in update_map_ttl()
250 if (NULL == map->ttl) in update_map_ttl()
260 dbm_close(map->ttl); in update_map_ttl()