Lines Matching refs:res

277 yp_valid_domain(char *domain, struct ypresp_val *res)  in yp_valid_domain()  argument
284 res->stat = YP_NODOM; in yp_valid_domain()
293 static bool_t res; in ypproc_domain_2_svc() local
295 res = (bool_t)1; in ypproc_domain_2_svc()
297 res = (bool_t)0; in ypproc_domain_2_svc()
298 return (&res); in ypproc_domain_2_svc()
304 static bool_t res; in ypproc_domain_nonack_2_svc() local
308 res = (bool_t)1; in ypproc_domain_nonack_2_svc()
309 return (&res); in ypproc_domain_nonack_2_svc()
319 static struct ypresp_val res; in ypproc_match_2_svc() local
327 if (yp_valid_domain(arg->domain, (struct ypresp_val *)&res) == -1) in ypproc_match_2_svc()
328 return (&res); in ypproc_match_2_svc()
351 res.stat = YP_NOKEY; in ypproc_match_2_svc()
355 yp_make_val(&res, ue->ue_line, 1); in ypproc_match_2_svc()
361 res.stat = YP_BADARGS; in ypproc_match_2_svc()
367 res.stat = YP_NOKEY; in ypproc_match_2_svc()
371 yp_make_val(&res, ue->ue_line, 1); in ypproc_match_2_svc()
372 return (&res); in ypproc_match_2_svc()
376 res.stat = YP_BADARGS; in ypproc_match_2_svc()
381 res.stat = YP_NOKEY; in ypproc_match_2_svc()
385 yp_make_val(&res, ge->ge_line, 1); in ypproc_match_2_svc()
386 return (&res); in ypproc_match_2_svc()
391 res.stat = YP_NOKEY; in ypproc_match_2_svc()
395 yp_make_val(&res, ge->ge_line, 1); in ypproc_match_2_svc()
396 return (&res); in ypproc_match_2_svc()
401 res.stat = YP_BADARGS; in ypproc_match_2_svc()
408 res.stat = YP_BADARGS; in ypproc_match_2_svc()
413 res.stat = YP_BADARGS; in ypproc_match_2_svc()
418 res.stat = YP_BADARGS; in ypproc_match_2_svc()
424 res.stat = YP_BADARGS; in ypproc_match_2_svc()
430 res.stat = YP_NOKEY; in ypproc_match_2_svc()
434 yp_make_val(&res, ue->ue_netid_line, 0); in ypproc_match_2_svc()
439 res.stat = YP_NOMAP; in ypproc_match_2_svc()
444 return (&res); in ypproc_match_2_svc()
450 static struct ypresp_key_val res; in ypproc_first_2_svc() local
452 if (yp_valid_domain(arg->domain, (struct ypresp_val *)&res) == -1) in ypproc_first_2_svc()
453 return (&res); in ypproc_first_2_svc()
460 yp_make_keyval(&res, env->sc_user_lines, env->sc_user_lines); in ypproc_first_2_svc()
465 yp_make_keyval(&res, env->sc_group_lines, env->sc_group_lines); in ypproc_first_2_svc()
468 res.stat = YP_NOMAP; in ypproc_first_2_svc()
471 return (&res); in ypproc_first_2_svc()
482 static struct ypresp_key_val res; in ypproc_next_2_svc() local
485 if (yp_valid_domain(arg->domain, (struct ypresp_val *)&res) == -1) in ypproc_next_2_svc()
486 return (&res); in ypproc_next_2_svc()
493 res.stat = YP_YPERR; in ypproc_next_2_svc()
494 return (&res); in ypproc_next_2_svc()
514 res.stat = YP_NOKEY; in ypproc_next_2_svc()
516 return (&res); in ypproc_next_2_svc()
522 yp_make_keyval(&res, line, line); in ypproc_next_2_svc()
524 return (&res); in ypproc_next_2_svc()
530 res.stat = YP_YPERR; in ypproc_next_2_svc()
531 return (&res); in ypproc_next_2_svc()
547 res.stat = YP_NOKEY; in ypproc_next_2_svc()
549 return (&res); in ypproc_next_2_svc()
556 yp_make_keyval(&res, line, line); in ypproc_next_2_svc()
558 return (&res); in ypproc_next_2_svc()
561 res.stat = YP_NOMAP; in ypproc_next_2_svc()
562 return (&res); in ypproc_next_2_svc()
569 static struct ypresp_all res; in ypproc_all_2_svc() local
571 if (yp_valid_domain(arg->domain, (struct ypresp_val *)&res) == -1) in ypproc_all_2_svc()
572 return (&res); in ypproc_all_2_svc()
581 static struct ypresp_master res; in ypproc_master_2_svc() local
584 memset(&res, 0, sizeof(res)); in ypproc_master_2_svc()
585 if (yp_valid_domain(arg->domain, (struct ypresp_val *)&res) == -1) in ypproc_master_2_svc()
586 return (&res); in ypproc_master_2_svc()
589 res.peer = (peername)master; in ypproc_master_2_svc()
590 res.stat = YP_TRUE; in ypproc_master_2_svc()
592 res.stat = YP_NOKEY; in ypproc_master_2_svc()
594 return (&res); in ypproc_master_2_svc()
613 static ypresp_maplist res; in ypproc_maplist_2_svc() local
616 if (yp_valid_domain(*arg, (struct ypresp_val *)&res) == -1) in ypproc_maplist_2_svc()
617 return (&res); in ypproc_maplist_2_svc()
619 res.stat = YP_TRUE; in ypproc_maplist_2_svc()
620 res.maps = NULL; in ypproc_maplist_2_svc()
625 maps[i].next = res.maps; in ypproc_maplist_2_svc()
626 res.maps = &maps[i]; in ypproc_maplist_2_svc()
629 return (&res); in ypproc_maplist_2_svc()
633 yp_make_val(struct ypresp_val *res, char *line, int replacecolon) in yp_make_val() argument
646 res->stat = YP_TRUE; in yp_make_val()
647 res->val.valdat_len = strlen(buf); in yp_make_val()
648 res->val.valdat_val = buf; in yp_make_val()
652 yp_make_keyval(struct ypresp_key_val *res, char *key, char *line) in yp_make_keyval() argument
661 res->key.keydat_len = strlen(keybuf); in yp_make_keyval()
662 res->key.keydat_val = keybuf; in yp_make_keyval()
665 res->stat = YP_NOMORE; in yp_make_keyval()
668 res->stat = YP_TRUE; in yp_make_keyval()
674 res->val.valdat_len = strlen(buf); in yp_make_keyval()
675 res->val.valdat_val = buf; in yp_make_keyval()