Lines Matching refs:tmpl_fd
45 static int tmpl_fd = -1; variable
80 if ((tmpl_fd = open64(CT_TEMPLATE, O_RDWR)) == -1) { in solaris_contract_pre_fork()
87 __func__, tmpl_fd); in solaris_contract_pre_fork()
90 if (ct_pr_tmpl_set_param(tmpl_fd, CT_PR_PGRPONLY) != 0) { in solaris_contract_pre_fork()
95 if (ct_pr_tmpl_set_fatal(tmpl_fd, CT_PR_EV_HWERR) != 0) { in solaris_contract_pre_fork()
100 if (ct_tmpl_set_critical(tmpl_fd, 0) != 0) { in solaris_contract_pre_fork()
105 if (ct_tmpl_set_informative(tmpl_fd, CT_PR_EV_HWERR) != 0) { in solaris_contract_pre_fork()
112 if (ct_tmpl_activate(tmpl_fd) != 0) { in solaris_contract_pre_fork()
120 if (tmpl_fd != -1) { in solaris_contract_pre_fork()
121 close(tmpl_fd); in solaris_contract_pre_fork()
122 tmpl_fd = -1; in solaris_contract_pre_fork()
130 __func__, tmpl_fd); in solaris_contract_post_fork_child()
133 if (ct_tmpl_clear(tmpl_fd) != 0) in solaris_contract_post_fork_child()
137 close(tmpl_fd); in solaris_contract_post_fork_child()
138 tmpl_fd = -1; in solaris_contract_post_fork_child()
148 debug2("%s: clearing template (fd %d)", __func__, tmpl_fd); in solaris_contract_post_fork_parent()
150 if (tmpl_fd == -1) in solaris_contract_post_fork_parent()
154 if ((r = ct_tmpl_clear(tmpl_fd)) != 0) in solaris_contract_post_fork_parent()
158 close(tmpl_fd); in solaris_contract_post_fork_parent()
159 tmpl_fd = -1; in solaris_contract_post_fork_parent()
190 if (tmpl_fd != -1) { in solaris_contract_post_fork_parent()
191 close(tmpl_fd); in solaris_contract_post_fork_parent()
192 tmpl_fd = -1; in solaris_contract_post_fork_parent()