Lines Matching defs:nw
77 static void free_nw(struct nwent *nw);
89 struct irs_nw *nw;
98 if (!(nw = memget(sizeof *nw))) {
103 memset(nw, 0x0, sizeof *nw);
106 nw->private = pvt;
107 nw->close = nw_close;
108 nw->byname = nw_byname;
109 nw->byaddr = nw_byaddr;
110 nw->next = nw_next;
111 nw->rewind = nw_rewind;
112 nw->minimize = nw_minimize;
113 return (nw);
144 struct nwent *nw = &pvt->net;
170 free_nw(nw);
171 if (irp_unmarshall_nw(nw, body) != 0) {
172 nw = NULL;
175 nw = NULL;
182 return (nw);
193 struct nwent *nw = &pvt->net;
199 if (nw->n_name != NULL &&
200 strcmp(name, nw->n_name) == 0 &&
201 nw->n_addrtype == type) {
202 return (nw);
219 free_nw(nw);
220 if (irp_unmarshall_nw(nw, body) != 0) {
221 nw = NULL;
224 nw = NULL;
231 return (nw);
271 struct nwent *nw = &pvt->net;
292 free_nw(nw);
293 if (irp_unmarshall_nw(nw, body) != 0) {
294 nw = NULL;
297 nw = NULL;
302 return (nw);
328 free_nw(struct nwent *nw) {
331 if (nw == NULL)
334 if (nw->n_name != NULL)
335 free(nw->n_name);
337 if (nw->n_aliases != NULL) {
338 for (p = nw->n_aliases ; *p != NULL ; p++) {
341 free(nw->n_aliases);
344 if (nw->n_addr != NULL)
345 free(nw->n_addr);