Lines Matching defs:legacy_tmpl
536 static int legacy_tmpl = -1; /* fd for legacy contract template */
2086 if (legacy_tmpl >= 0) {
2088 legacy_tmpl, init_svc_fmri);
2090 legacy_tmpl, svc_aux);
4122 legacy_tmpl = contract_make_template(0, CT_PR_EV_EMPTY, CT_PR_EV_HWERR,
4124 if (legacy_tmpl >= 0) {
4125 err = ct_tmpl_activate(legacy_tmpl);
4127 (void) close(legacy_tmpl);
4128 legacy_tmpl = -1;
4138 if (dup2(legacy_tmpl, 255) == -1) {
4142 (void) close(legacy_tmpl);
4143 legacy_tmpl = 255;
4146 (void) fcntl(legacy_tmpl, F_SETFD, FD_CLOEXEC);
4161 if (legacy_tmpl < 0 && startd_tmpl < 0) {
4469 if (legacy_tmpl < 0 || ct_tmpl_activate(legacy_tmpl) != 0)