Lines Matching defs:id
70 id_t id;
143 const char * (*lookup_fn)(struct name_cache *, id_t), id_t id)
151 slot = id % cache->size;
153 if (cache->cache[slot].id == id) {
164 name = (lookup_fn)(cache, id);
168 cache->cache[slot].id = id;
173 cache->cache[slot].id = id;
187 lookup_uname_helper(struct name_cache *cache, id_t id)
202 r = getpwuid_r((uid_t)id, &pwent,
222 "Can't lookup user for id %d", (int)id);
232 lookup_uname_helper(struct name_cache *cache, id_t id)
236 result = getpwuid((uid_t)id);
255 lookup_gname_helper(struct name_cache *cache, id_t id)
270 r = getgrgid_r((gid_t)id, &grent,
288 "Can't lookup group for id %d", (int)id);
298 lookup_gname_helper(struct name_cache *cache, id_t id)
302 result = getgrgid((gid_t)id);