Lines Matching defs:nis
19 static const char rcsid[] = "$Id: nis.c,v 1.3 2005/04/27 04:56:32 sra Exp $";
65 struct nis_p *nis;
73 if (!(nis = memget(sizeof *nis))) {
77 memset(nis, 0, sizeof *nis);
79 memput(nis, sizeof *nis);
84 acc->private = nis;
85 nis->domain = strdup(domain);
111 struct nis_p *nis = (struct nis_p *)this->private;
113 if (nis->res == NULL) {
122 if ((nis->res->options & RES_INIT) == 0 &&
123 res_ninit(nis->res) < 0)
126 return (nis->res);
132 struct nis_p *nis = (struct nis_p *)this->private;
134 if (nis->res && nis->free_res) {
135 res_nclose(nis->res);
136 (*nis->free_res)(nis->res);
139 nis->res = res;
140 nis->free_res = free_res;
145 struct nis_p *nis = (struct nis_p *)this->private;
147 if (nis->res && nis->free_res)
148 (*nis->free_res)(nis->res);
149 free(nis->domain);
150 memput(nis, sizeof *nis);