Lines Matching refs:slot
1367 int slot;
1380 slot = id % cache->size;
1381 if (cache->cache[slot].name != NULL) {
1382 if (cache->cache[slot].id == id) {
1384 return (cache->cache[slot].name);
1386 free(cache->cache[slot].name);
1387 cache->cache[slot].name = NULL;
1396 cache->cache[slot].name = strdup(name);
1397 if (cache->cache[slot].name != NULL) {
1398 cache->cache[slot].id = id;
1399 return (cache->cache[slot].name);
1403 * Conveniently, NULL marks an empty slot, so