/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | proc.c | 43 id_t ctid; local 54 ctid = psinfo.pr_contract; 56 ctid = -1; 59 return (ctid);
|
H A D | contract.c | 49 contract_abandon(ctid_t ctid) argument 53 assert(ctid != 0); 55 err = contract_abandon_id(ctid); 59 "failed to abandon contract %ld: %s\n", ctid, 64 contract_kill(ctid_t ctid, int sig, const char *fmri) argument 66 if (sigsend(P_CTID, ctid, sig) == -1 && errno != ESRCH) { 80 ctid_t ctid, configd_ctid = -1; local 106 ctid = psi.pr_contract; 110 if ((csfd = contract_open(ctid, "process", "status", O_RDONLY)) < 0) { 211 contract_is_empty(ctid_t ctid) argument 256 contract_hold_bucket(ctid_t ctid) argument 276 contract_lookup(contract_bucket_t *bp, ctid_t ctid) argument 318 contract_hash_store(ctid_t ctid, int instid) argument 335 contract_hash_remove(ctid_t ctid) argument 358 lookup_inst_by_contract(ctid_t ctid) argument [all...] |
H A D | method.c | 200 "%s: transient ctid expected to be 0 but " 217 "%s: primary ctid expected to be 0 but " 674 ctid_t ctid; local 907 method_store_contract(inst, type, &ctid); 943 timeout_insert(inst, ctid, timeout); 969 timeout_remove(inst, ctid);
|
H A D | fork.c | 203 * Clean up, return pid and ctid. 244 ctid_t ctid; local 248 MAX_SULOGIN_RETRIES, &ctid, CT_PR_EV_HWERR, 0, 253 contract_abandon(ctid); 319 ctid_t ctid = -1; local 350 if (ctid != -1) 351 contract_abandon(ctid); 352 ctid = -1; 355 MAX_CONFIGD_RETRIES, &ctid, 0, CT_PR_EV_EXIT, 0, 535 ctid_t ctid; local 936 ctid_t ctid = -1; local [all...] |
H A D | startd.c | 495 ctid_t ctid; local 584 ctid = proc_get_ctid(); 585 if (ctid != -1) { 586 uint64 = (uint64_t)ctid;
|
H A D | restarter.c | 1263 ctid_t ctid; local 1311 ctid = rip->ri_i.i_primary_ctid; 1312 contract_abandon(ctid); 1335 r = restarter_remove_contract(inst, ctid, RESTARTER_CONTRACT_PRIMARY); 1363 "Could not remove contract id %lu for %s (%s).\n", ctid, 2098 contract_to_inst(ctid_t ctid) argument 2103 id = lookup_inst_by_contract(ctid); 2115 if (ctid != inst->ri_i.i_primary_ctid) { 2233 ctid_t ctid; local 2245 ctid [all...] |
H A D | libscf.c | 3591 ctid_t ctid; local 3787 ctid = proc_get_ctid(); 3788 if (ctid > 0) { 3790 uint64 = (uint64_t)ctid;
|
/illumos-gate/usr/src/lib/libcontract/common/ |
H A D | device_dump.c | 53 ctid_t ctid; local 58 ctid = ct_event_get_ctid(ev); 60 statfd = contract_open(ctid, "device", "status", O_RDONLY);
|
H A D | process_dump.c | 94 ctid_t ctid; local 151 if (ct_pr_event_get_senderct(ev, &ctid) == 0) 153 "\tsender ctid: %d\n"), ctid);
|
H A D | libcontract_priv.c | 84 contract_open(ctid_t ctid, const char *type, const char *file, int oflag) argument 94 n = snprintf(path, PATH_MAX, CTFS_ROOT "/%s/%ld/%s", type, ctid, file); 113 contract_abandon_id(ctid_t ctid) argument 117 fd = contract_open(ctid, "all", "ctl", O_WRONLY);
|
H A D | process.c | 42 ct_pr_tmpl_set_transfer(int fd, ctid_t ctid) argument 44 return (ct_tmpl_set_internal(fd, CTPP_SUBSUME, ctid)); 72 ct_pr_tmpl_get_transfer(int fd, ctid_t *ctid) argument 74 return (ct_tmpl_get_internal(fd, CTPP_SUBSUME, (uint_t *)ctid)); 297 ct_pr_status_get_svc_ctid(ct_stathdl_t stathdl, ctid_t *ctid) argument 305 (int32_t *)ctid));
|
H A D | libcontract.c | 59 ctid_t ctid = ioctl(fd, CT_TCREATE); local 60 if (ctid == -1) 62 *ctidp = ctid;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | contracts.c | 181 adopt_contract(ctid_t ctid, const char *fmri) argument 187 if ((fd = open_contract_ctl_file(ctid)) == -1) { 195 ctid, fmri); 201 "ignored."), ctid, fmri, strerror(errno)); 207 "with %s (%s). Events will be ignored."), ctid, fmri, 221 abandon_contract(ctid_t ctid) argument 226 assert(ctid != -1); 228 if ((fd = open_contract_ctl_file(ctid)) == -1) { 229 error_msg(gettext("Failed to abandon contract %d: %s"), ctid, 236 error_msg(gettext("Failed to abandon contract %d: %s"), ctid, [all...] |
H A D | repval.c | 77 * Used when updating the ctid and (start) pid files for an inetd service. 462 rep_val_t *spval; /* Contains a start_pid or ctid */ 628 * Then the cached list is written to a file named "ctid" in a directory 630 * problems in libscf. The file "ctid" is used when inetd is restarted 640 add_remove_contract(instance_t *inst, boolean_t add, ctid_t ctid) argument 650 * ctid will be appended to the ctid file. 651 * The removal of a ctid will result in the remaining 656 if (gen_filenms_from_fmri(inst->fmri, "ctid", genfmri_filename, 673 if (fprintf(tfp, "%llu\n", (uint64_t)ctid) < [all...] |
/illumos-gate/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_tmpl.c | 128 ctid_t ctid; local 142 error = ctmpl_create(tmplnode->ctfs_tmn_tmpl, &ctid); 145 *rvalp = ctid;
|
/illumos-gate/usr/src/cmd/ptools/ptree/ |
H A D | ptree.c | 63 ctid_t ctid; member in struct:ps 237 p->ctid = info.pr_contract; 372 indent, indent, " ", (int)p->ctid); 402 ctsort(ctid_t ctid, ps_t *p) argument 410 if (ctps[n]->ctid == ctid) { 415 if ((fd = contract_open(ctid, "process", "status", O_RDONLY)) == -1) 439 pp->ctid = ctid; 486 p->ctid ! [all...] |
/illumos-gate/usr/src/cmd/ctrun/ |
H A D | ctrun.c | 240 get_event(int fd, int ctfd, ctid_t ctid) argument 276 if (ct_event_get_ctid(ev) == ctid) 379 ctid_t ctid = 0; local 580 ctid = opt_adopt; 582 v_printf(gettext("adopted contract id %ld\n"), ctid); 639 if (errno = contract_latest(&ctid)) 641 if ((ctfd = contract_open(ctid, "process", "ctl", 654 v_printf(gettext("created contract id %ld\n"), ctid); 666 event = get_event(efd, ctfd, ctid); 672 bit2str(option_events, event), ctid); [all...] |
/illumos-gate/usr/src/cmd/svc/lsvcrun/ |
H A D | lsvcrun.c | 710 ctid_t ctid; local 723 if (errno = contract_latest(&ctid)) { 766 (void *)ctid) != 0)
|
/illumos-gate/usr/src/uts/common/contract/ |
H A D | process.c | 1159 ctid_t ctid, zoneid_t zoneid) 1181 if (ctid != 0) 1182 VERIFY(nvlist_add_uint32(dest, CTPE_SENDCT, ctid) == 0); 1158 contract_process_sig(cont_process_t *ctp, proc_t *p, int sig, pid_t pid, ctid_t ctid, zoneid_t zoneid) argument
|
H A D | device.c | 821 " contract has no devinfo node. contract ctid : %d", 1019 ctid_t ctid; local 1022 ctid = ct->ct_id; 1024 CT_DEBUG((CE_NOTE, "ack_nack: entered: ctid %d", ctid)); 1027 CT_DEBUG((CE_NOTE, "ack_nack: contract lock acquired: %d", ctid)); 1058 CT_DEBUG((CE_NOTE, "ack_nack: dv_clean: %d", ctid)); 1062 ctid)); 1078 CT_DEBUG((CE_NOTE, "ack_nack: error: ESRCH, ctid: %d", 1079 ctid)); 1667 ctid_t ctid; local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | sig.c | 1288 id_t ctid = 0; local 1359 ctid = sqp->sq_info.si_ctid; 1453 ctid = 0; 1491 contract_process_sig(p->p_ct_process, p, sig, pid, ctid,
|
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 115 ctid_t ctid; member in struct:ctidlist_struct 247 save_ctid(ctid_t ctid) argument 252 if (next->ctid == ctid) 259 next->ctid = ctid; 268 ctid_t ctid; local 357 ctid = (ctid_t)uint64; 358 if (save_ctid(ctid) == 0) { 359 (void) sigsend(P_CTID, ctid, SIGSTO [all...] |
/illumos-gate/usr/src/cmd/cron/ |
H A D | cron.c | 215 int ctid; /* for el_remove-ing crontab events */ member in struct:usr 635 (next_event->u)->ctid)) { 843 u->ctid = ecid++; 846 u->ctid = 0; 870 el_remove(u->ctid, 0); 968 if (u->ctid == 0) { 974 u->ctid = ecid++; 983 el_remove(u->ctid, 0); 1266 switch (el_add(e, e->time, u->ctid)) { 2117 el_remove(u->ctid, [all...] |
/illumos-gate/usr/src/cmd/init/ |
H A D | init.c | 4279 ctid_t ctid; local 4296 ctid = ct_event_get_ctid(e); 4303 ret = contract_cookie(ctid, &cookie); 4328 ctid); 4334 if (abandon && (err = contract_abandon_id(ctid))) { 4336 ctid, strerror(err)); 4346 "contract %ld.\n", ct_event_get_type(e), ctid);
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 471 ctid_t ctid; local 508 ctid = ct_event_get_ctid(ev); 510 "got contract event ctid=%d", ctid); 525 ctid); 539 CTFS_ROOT "/device/%ld/ctl", ctid); 554 ctid); 714 topo_mod_dprintf(mod, "failed to create ctid rval = %d", rval); 716 topo_mod_dprintf(mod, "created ctid=%d", stp->set_ctid);
|