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