Searched refs:ctfd (Results 1 – 6 of 6) sorted by relevance
/titanic_41/usr/src/cmd/ctrun/ |
H A D | ctrun.c | 240 get_event(int fd, int ctfd, ctid_t ctid) in get_event() argument 301 (void) ct_ctl_ack(ctfd, evid); in get_event() 316 abandon(int ctfd) in abandon() argument 318 if (ct_ctl_abandon(ctfd) == -1) in abandon() 319 uu_die(gettext("failed to abandon contract %d"), ctfd); in abandon() 321 (void) close(ctfd); in abandon() 380 int ctfd; in main() local 557 if ((ctfd = contract_open(opt_adopt, "process", "ctl", in main() 576 if (errno = ct_ctl_adopt(ctfd)) in main() 641 if ((ctfd = contract_open(ctid, "process", "ctl", in main() [all …]
|
/titanic_41/usr/src/cmd/svc/startd/ |
H A D | fork.c | 145 int ctfd, err; in fork_common() local 151 if ((ctfd = open64(CTFS_ROOT "/process/template", O_RDWR)) == -1) { in fork_common() 157 err = ct_tmpl_set_critical(ctfd, crit); in fork_common() 158 err |= ct_pr_tmpl_set_fatal(ctfd, fatal); in fork_common() 159 err |= ct_tmpl_set_informative(ctfd, inf); in fork_common() 160 err |= ct_pr_tmpl_set_param(ctfd, param); in fork_common() 161 err |= ct_tmpl_set_cookie(ctfd, cookie); in fork_common() 162 err |= ct_pr_tmpl_set_svc_fmri(ctfd, svc_fmri); in fork_common() 163 err |= ct_pr_tmpl_set_svc_aux(ctfd, name); in fork_common() 165 (void) close(ctfd); in fork_common() [all …]
|
H A D | method.c | 675 int ctfd = -1; in method_run() local 761 if ((ctfd = contract_open(inst->ri_i.i_primary_ctid, "process", in method_run() 1083 if (ctfd >= 0) in method_run() 1084 (void) close(ctfd); in method_run()
|
/titanic_41/usr/src/lib/libdhcpagent/common/ |
H A D | dhcpagent_util.c | 125 int ctfd; in dhcp_start_agent() local 150 if ((ctfd = init_template()) == -1) in dhcp_start_agent() 155 (void) ct_tmpl_clear(ctfd); in dhcp_start_agent() 156 (void) close(ctfd); in dhcp_start_agent()
|
/titanic_41/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_db.c | 196 int ctfd; in dlmgmt_zfop() local 216 ctfd = open64("/system/contract/process/template", O_RDWR); in dlmgmt_zfop() 217 if (ctfd == -1) in dlmgmt_zfop() 219 if ((err = ct_tmpl_set_critical(ctfd, 0)) != 0 || in dlmgmt_zfop() 220 (err = ct_tmpl_set_informative(ctfd, 0)) != 0 || in dlmgmt_zfop() 221 (err = ct_pr_tmpl_set_fatal(ctfd, CT_PR_EV_HWERR)) != 0 || in dlmgmt_zfop() 222 (err = ct_pr_tmpl_set_param(ctfd, CT_PR_PGRPONLY)) != 0 || in dlmgmt_zfop() 223 (err = ct_tmpl_activate(ctfd)) != 0) { in dlmgmt_zfop() 224 (void) close(ctfd); in dlmgmt_zfop() 230 (void) ct_tmpl_clear(ctfd); in dlmgmt_zfop() [all …]
|
/titanic_41/usr/src/cmd/zoneadmd/ |
H A D | zoneadmd.c | 1851 int ctfd; in main() local 2055 if ((ctfd = init_template()) == -1) { in main() 2071 (void) ct_tmpl_clear(ctfd); in main() 2072 (void) close(ctfd); in main()
|