Lines Matching refs:itemp
82 Item *itemp; in cache_alloc() local
87 if ((itemp = (Item *) malloc(sizeof (*itemp))) == in cache_alloc()
91 sizeof (*itemp), "itemp"); in cache_alloc()
92 } else if ((itemp->key = (char *)malloc(len)) == NULL) { in cache_alloc()
95 free(itemp); in cache_alloc()
96 } else if ((itemp->data = malloc(struct_size)) == NULL) { in cache_alloc()
99 free(itemp->key); in cache_alloc()
100 free(itemp); in cache_alloc()
103 itemp->keyl = len; in cache_alloc()
104 itemp->datal = struct_size; in cache_alloc()
106 return (itemp); in cache_alloc()
117 Item *itemp; in cgrnam() local
135 if ((itemp = lookup_cache(grnam_cache, nam, len)) == Null_Item) { in cgrnam()
152 if ((itemp = cache_alloc("cgrnam()", len, in cgrnam()
159 (void) memmove(itemp->key, nam, len); in cgrnam()
165 (void) memmove(itemp->data, grp, in cgrnam()
169 if (add_cache(grnam_cache, itemp) == -1) in cgrnam()
178 return ((struct group *)itemp->data); in cgrnam()
185 Item *itemp; in cpwnam() local
202 if ((itemp = lookup_cache(pwnam_cache, nam, len)) == Null_Item) { in cpwnam()
223 if ((itemp = cache_alloc("cpwnam()", len, in cpwnam()
230 (void) memmove(itemp->key, nam, len); in cpwnam()
236 (void) memmove(itemp->data, pwd, in cpwnam()
239 if (add_cache(pwnam_cache, itemp) == -1) in cpwnam()
248 return ((struct passwd *)itemp->data); in cpwnam()
277 Item *itemp; in cgrgid() local
294 if ((itemp = lookup_cache(grgid_cache, &gid, len)) == Null_Item) { in cgrgid()
309 if ((itemp = cache_alloc("cgrgid()", len, in cgrgid()
316 (void) memmove(itemp->key, &gid, len); in cgrgid()
322 (void) memmove(itemp->data, grp, in cgrgid()
325 if (add_cache(grgid_cache, itemp) == -1) in cgrgid()
334 return ((struct group *)itemp->data); in cgrgid()
341 Item *itemp; in cpwuid() local
359 if ((itemp = lookup_cache(pwuid_cache, &uid, len)) == Null_Item) { in cpwuid()
376 if ((itemp = cache_alloc("cpwuid()", len, in cpwuid()
383 (void) memmove(itemp->key, &uid, len); in cpwuid()
389 (void) memmove(itemp->data, pwd, in cpwuid()
392 if (add_cache(pwuid_cache, itemp) == -1) in cpwuid()
401 return ((struct passwd *)itemp->data); in cpwuid()