Lines Matching refs:prev_context
120 char * prev_context; in getprocattrcon_raw() local
127 prev_context = prev_current; in getprocattrcon_raw()
130 prev_context = prev_exec; in getprocattrcon_raw()
133 prev_context = prev_fscreate; in getprocattrcon_raw()
136 prev_context = prev_keycreate; in getprocattrcon_raw()
139 prev_context = prev_sockcreate; in getprocattrcon_raw()
142 prev_context = NULL; in getprocattrcon_raw()
149 if (prev_context && prev_context != UNSET) { in getprocattrcon_raw()
150 *context = strdup(prev_context); in getprocattrcon_raw()
217 char **prev_context, *context2 = NULL; in setprocattrcon_raw() local
224 prev_context = &prev_current; in setprocattrcon_raw()
227 prev_context = &prev_exec; in setprocattrcon_raw()
230 prev_context = &prev_fscreate; in setprocattrcon_raw()
233 prev_context = &prev_keycreate; in setprocattrcon_raw()
236 prev_context = &prev_sockcreate; in setprocattrcon_raw()
243 if (!context && !*prev_context) in setprocattrcon_raw()
245 if (context && *prev_context && *prev_context != UNSET in setprocattrcon_raw()
246 && !strcmp(context, *prev_context)) in setprocattrcon_raw()
273 if (*prev_context != UNSET) in setprocattrcon_raw()
274 free(*prev_context); in setprocattrcon_raw()
275 *prev_context = context2; in setprocattrcon_raw()