Searched refs:ctid (Results 1 - 25 of 28) sorted by relevance

12

/illumos-gate/usr/src/cmd/svc/startd/
H A Dproc.c43 id_t ctid; local
54 ctid = psinfo.pr_contract;
56 ctid = -1;
59 return (ctid);
H A Dcontract.c49 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 Dfork.c203 * 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 Drestarter.c1263 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 Dstartd.c495 ctid_t ctid; local
584 ctid = proc_get_ctid();
585 if (ctid != -1) {
586 uint64 = (uint64_t)ctid;
H A Dmethod.c200 "%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);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dcontracts.c181 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 Drepval.c77 * 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/sys/
H A Dctfs_impl.h64 #define CTFS_INO_CT(ctid, file) \
67 (ctid))
68 #define CTFS_INO_CT_DIR(ctid) CTFS_INO_CT((ctid), 0)
69 #define CTFS_INO_CT_LINK(ctid) CTFS_INO_CT((ctid), 1)
70 #define CTFS_INO_CT_FILE(ctid, file) CTFS_INO_CT((ctid), (file) + 2)
/illumos-gate/usr/src/lib/libcontract/common/
H A Ddevice_dump.c53 ctid_t ctid; local
58 ctid = ct_event_get_ctid(ev);
60 statfd = contract_open(ctid, "device", "status", O_RDONLY);
H A Dlibcontract_priv.c84 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 Dprocess_dump.c94 ctid_t ctid; local
151 if (ct_pr_event_get_senderct(ev, &ctid) == 0)
153 "\tsender ctid: %d\n"), ctid);
H A Dprocess.c42 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 Dlibcontract.c59 ctid_t ctid = ioctl(fd, CT_TCREATE); local
60 if (ctid == -1)
62 *ctidp = ctid;
/illumos-gate/usr/src/cmd/ptools/ptree/
H A Dptree.c63 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 Dctrun.c240 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/uts/common/fs/ctfs/
H A Dctfs_tmpl.c128 ctid_t ctid; local
142 error = ctmpl_create(tmplnode->ctfs_tmn_tmpl, &ctid);
145 *rvalp = ctid;
/illumos-gate/usr/src/cmd/ipf/svc/
H A Dipfilter211 ctid=`svcprop -p restarter/contract $SMF_FMRI`
212 if [ -n "$ctid" ]; then
213 smf_kill_contract $ctid TERM 1
/illumos-gate/usr/src/uts/common/contract/
H A Ddevice.c821 " 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...]
H A Dprocess.c1159 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
/illumos-gate/usr/src/cmd/halt/
H A Dhalt.c115 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/svc/lsvcrun/
H A Dlsvcrun.c710 ctid_t ctid; local
723 if (errno = contract_latest(&ctid)) {
766 (void *)ctid) != 0)
/illumos-gate/usr/src/cmd/cron/
H A Dcron.c215 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 Dinit.c4279 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 Dses.c471 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);

Completed in 154 milliseconds

12