Lines Matching defs:tmp

140 	priv_data_t *tmp;
145 tmp = libc_malloc(sizeof (*tmp));
147 if (tmp == NULL)
150 (void) memset(tmp, 0, sizeof (*tmp));
152 tmp->pd_pinfo = ip;
153 tmp->pd_setsize = sizeof (priv_chunk_t) * ip->priv_setsize;
154 tmp->pd_ucredsize = UCRED_SIZE(ip);
168 if (parseninfo(na, &tmp->pd_setnames, &tmp->pd_nsets))
172 if (parseninfo(na, &tmp->pd_privnames, &tmp->pd_nprivs))
179 tmp->pd_setsort = libc_malloc(tmp->pd_nprivs *
181 if (tmp->pd_setsort == NULL)
184 tmparr = libc_malloc(tmp->pd_nprivs *
190 for (i = 0; i < tmp->pd_nprivs; i++) {
192 tmparr[i].name = tmp->pd_privnames[i];
194 qsort(tmparr, tmp->pd_nprivs, sizeof (struct strint),
196 for (i = 0; i < tmp->pd_nprivs; i++)
197 tmp->pd_setsort[i] = tmparr[i].rank;
201 tmp->pd_basicset = (priv_set_t *)&st->set[0];
209 return (tmp);
211 libc_free(tmp->pd_setnames);
212 libc_free(tmp->pd_privnames);
213 libc_free(tmp->pd_setsort);
214 libc_free(tmp);
248 priv_data_t *tmp;
262 tmp = __priv_parse_info(ip);
263 if (tmp == NULL)
269 newn = tmp->pd_nprivs;
270 q0 = tmp->pd_privnames[0];
278 (void) memcpy(tmp->pd_privnames, privdata->pd_privnames,
283 tmp->pd_privnames[i] += p0 - q0;
287 privdata->pd_privnames = tmp->pd_privnames;
288 tmp->pd_privnames = NULL;
291 privdata->pd_setsort = tmp->pd_setsort;
292 tmp->pd_setsort = NULL;
299 __priv_free_info(tmp);
317 priv_data_t *tmp;
340 if ((tmp = __priv_parse_info(ip)) == NULL) {
346 tmp->pd_zoneset = __priv_allocset(tmp);
347 if (tmp->pd_zoneset == NULL)
351 tmp->pd_zoneset, tmp->pd_setsize)
352 == tmp->pd_setsize) {
354 privdata = tmp;
358 priv_freeset(tmp->pd_zoneset);
360 __priv_free_info(tmp);
475 static const char daemon_cp[] = "/var/tmp/core.%f.%t";