Lines Matching refs:fd
520 int fd;
523 fd = open64(CTFS_ROOT "/process/template", O_RDWR);
524 if (fd == -1) {
532 err |= ct_tmpl_set_critical(fd, 0);
533 err |= ct_tmpl_set_informative(fd, 0);
534 err |= ct_pr_tmpl_set_fatal(fd, CT_PR_EV_HWERR);
535 err |= ct_pr_tmpl_set_param(fd, CT_PR_PGRPONLY | CT_PR_REGENT);
536 if (err || ct_tmpl_activate(fd)) {
537 (void) close(fd);
541 return (fd);