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