Lines Matching defs:ctfd
196 int ctfd;
216 ctfd = open64("/system/contract/process/template", O_RDWR);
217 if (ctfd == -1)
219 if ((err = ct_tmpl_set_critical(ctfd, 0)) != 0 ||
220 (err = ct_tmpl_set_informative(ctfd, 0)) != 0 ||
221 (err = ct_pr_tmpl_set_fatal(ctfd, CT_PR_EV_HWERR)) != 0 ||
222 (err = ct_pr_tmpl_set_param(ctfd, CT_PR_PGRPONLY)) != 0 ||
223 (err = ct_tmpl_activate(ctfd)) != 0) {
224 (void) close(ctfd);
230 (void) ct_tmpl_clear(ctfd);
231 (void) close(ctfd);
234 (void) ct_tmpl_clear(ctfd);
235 (void) close(ctfd);
250 (void) ct_tmpl_clear(ctfd);
251 (void) close(ctfd);