Lines Matching defs:statp
53 res_state statp = ptr;
55 if (statp->_u._ext.ext != NULL)
56 res_ndestroy(statp);
57 free(statp);
67 res_check_reload(res_state statp)
73 if ((statp->options & RES_INIT) == 0) {
74 return (statp);
77 ext = statp->_u._ext.ext;
79 return (statp);
84 return (statp);
91 statp->options &= ~RES_INIT;
94 return (statp);
100 res_state statp;
109 statp = thr_getspecific(res_key);
110 if (statp != NULL)
111 return res_check_reload(statp);
112 statp = calloc(1, sizeof(*statp));
113 if (statp == NULL)
116 statp->options = RES_TIMEOUT; /* Motorola, et al. */
118 if (thr_setspecific(res_key, statp) == 0)
119 return (statp);
120 free(statp);