Lines Matching defs:ttl
67 datum ttl;
73 if ((map == NULL) || (map->ttl == NULL))
77 ttl = dbm_fetch(map->ttl, *key);
79 if (NULL == ttl.dptr) {
109 if (ttl.dsize != sizeof (struct timeval)) {
117 map->map_name, dbm_error(map->ttl));
142 bcopy(ttl.dptr, &old_time, sizeof (struct timeval));
190 int ttl;
196 ttl = get_ttl_value(map, type);
198 if (FAILURE == add_to_timeval(&now, ttl))
207 if (0 > dbm_store(map->ttl, *key, expire, DBM_REPLACE)) {
245 if (NULL == map->ttl) {
246 map->ttl = dbm_open(map->ttl_path, O_RDWR, 0644);
247 if (NULL == map->ttl)
257 dbm_close(map->ttl);