Lines Matching refs:val
63 char *val;
77 if (n->val != 0)
78 free(n->val);
105 ((n->val = malloc(vallen)) == 0)) {
114 * Upon finding a match set the passed in 'val' and 'vallen'
118 in_cache(char *domain, char *map, char *key, int keylen, char **val,
146 *val = c->val;
172 __yp_match_cflookup(char *domain, char *map, char *key, int keylen, char **val,
205 if ((*val = malloc((size_t)savesize)) == 0) {
209 (void) memcpy(*val, my_val, (size_t)savesize);
224 &_ypserv_timeout, val, vallen);
254 * It looks strange that we return one val[] array
256 * val[] array in the cache (presumably with the
275 (void) memcpy(c->val, *val, (size_t)savesize);
290 rsvdreason = yp_match_rsvdport(domain, map, key, keylen, val,
304 char **val, /* returns value array */
305 int *vallen) /* returns bytes in val */
309 return (__yp_match_cflookup(domain, map, key, keylen, val, vallen, 1));
355 char **val, /* returns value array */
356 int *vallen, /* returns bytes in val */
388 if ((*val = malloc((size_t)savesize)) == 0) {
392 (void) memcpy(*val, my_val, (size_t)savesize);
408 pdomb, &_ypserv_timeout, val, vallen);
449 * It looks strange that we return one val[] array
451 * val[] array in the cache (presumably with the
470 (void) memcpy(c->val, *val, (size_t)savesize);
489 char **val, /* returns value array */
490 int *vallen) /* returns bytes in val */
493 return (__yp_match_rsvdport_cflookup(domain, map, key, keylen, val,
503 struct dom_binding *pdomb, struct timeval *timeoutp, char **val,
544 if (!retval && ((*val = malloc((size_t)
553 (void) memcpy(*val, resp.valdat.dptr,
555 (*val)[resp.valdat.dsize] = '\n';
556 (*val)[resp.valdat.dsize + 1] = '\0';