Lines Matching +defs:val +defs:method

296 	 * A transition to maintenance state when a method fails
302 "a method is failing in a retryable manner but too often"
336 * A transition to maintenance state because a restarter method
343 "a start, stop or refresh method failed"
379 * A transition to maintenance state because the start method is
1048 const char *pname, scf_type_t ty, scf_value_t *val)
1098 r = scf_entry_add_value(ent, val);
1377 scf_value_t *val;
1492 val = scf_value_create(h);
1493 if (val == NULL) {
1500 ret = scf_iter_next_value(iter, val);
1508 scf_value_destroy(val);
1521 ret = scf_value_get_count(val, &c);
1526 val);
1529 scf_value_destroy(val);
1535 scf_value_destroy(val);
1674 scf_value_t *val;
1790 val = scf_value_create(h);
1791 if (val == NULL) {
1798 ret = scf_iter_next_value(iter, val);
1807 scf_value_destroy(val);
1820 ret = scf_entry_add_value(t_cid, val);
1826 scf_value_destroy(val);
1888 val = scf_value_create(h);
1889 if (val == NULL) {
1895 scf_value_set_count(val, contract_id);
1896 ret = scf_entry_add_value(t_cid, val);
1983 size_t bufsz, scf_property_t *prop, scf_value_t *val)
1996 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
2002 szret = scf_value_get_astring(val, buf, bufsz);
2009 scf_property_t *prop, scf_value_t *val)
2017 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
2023 if (scf_value_get_boolean(val, b))
2375 scf_property_t *prop, scf_value_t *val, const char *cmdline,
2388 val) == 0 || get_astring_val(instpg, SCF_PROPERTY_PROFILE, buf,
2389 buf_sz, prop, val) == 0))
2508 scf_property_t *prop, scf_value_t *val, struct method_context *ci,
2525 vbuf, vbuf_sz, prop, val) == 0 || get_astring_val(instpg,
2527 val) == 0))
2539 val) == 0 || get_astring_val(instpg, SCF_PROPERTY_GROUP, vbuf,
2540 vbuf_sz, prop, val) == 0)) {
2584 prop, val) == 0 || get_astring_val(instpg,
2585 SCF_PROPERTY_SUPP_GROUPS, vbuf, vbuf_sz, prop, val) == 0)) {
2619 prop, val) == 0 || get_astring_val(instpg, SCF_PROPERTY_PRIVILEGES,
2620 vbuf, vbuf_sz, prop, val) == 0)) {
2650 vbuf_sz, prop, val) == 0 || get_astring_val(instpg,
2651 SCF_PROPERTY_LIMIT_PRIVILEGES, vbuf, vbuf_sz, prop, val) == 0)) {
2685 struct method_context *mcp, scf_property_t *prop, scf_value_t *val)
2717 while ((ret = scf_iter_next_value(iter, val)) == 1) {
2718 ret = scf_value_get_as_string(val, mcp->vbuf, mcp->vbuf_sz);
2753 * Fetch method context information from the repository, allocate and fill
2799 scf_value_t *val = NULL;
2845 (val = scf_value_create(h)) == NULL) {
2853 * The method environment, and the credentials/profile data,
2854 * may be found either in the pg for the method (methpg),
2862 "\"%s\" method, %s", mname, scf_strerror(scf_error()));
2880 ret = get_environment(h, methpg, cip, prop, val);
2882 ret = get_environment(h, instpg, cip, prop, val);
2895 err = mc_error_create(err, ret, "Invalid method environment.");
2899 "Get method environment failed: %s", scf_strerror(ret));
2970 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
2999 ret = scf_value_get_boolean(val, &use_profile);
3004 err = get_profile(pg, instpg, prop, val, cmdline,
3007 err = get_ids(pg, instpg, prop, val, cip, err);
3018 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
3045 ret = scf_value_get_astring(val, cip->vbuf, cip->vbuf_sz);
3112 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
3137 ret = scf_value_get_astring(val, cip->vbuf,
3188 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
3213 ret = scf_value_get_astring(val, cip->vbuf,
3255 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
3281 ret = scf_value_get_astring(val, cip->vbuf,
3340 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
3368 ret = scf_value_get_astring(val, cip->vbuf,
3434 (void) scf_value_destroy(val);
3822 is_kill_method(const char *method, const char *kill_str,
3828 if (strncmp(method, kill_str, kill_str_len) != 0 ||
3829 (method[kill_str_len] != '\0' &&
3830 !isspace(method[kill_str_len])))
3833 cp = method + kill_str_len;
3847 restarter_is_kill_proc_method(const char *method)
3849 return (is_kill_method(method, MKW_KILL_PROC,
3854 restarter_is_kill_method(const char *method)
3856 return (is_kill_method(method, MKW_KILL, sizeof (MKW_KILL) - 1));
3894 scf_value_t *val;
3906 val = scf_value_create(h);
3907 if (pg == NULL || prop == NULL || val == NULL)
3916 prop, val) != SCF_SUCCESS)
3927 scf_value_destroy(val);
3943 scf_value_t *val;
3950 val = scf_value_create(h);
3951 if (pg == NULL || prop == NULL || val == NULL)
3960 val) != SCF_SUCCESS)
3966 scf_value_destroy(val);
3982 scf_value_t *val;
3988 val = scf_value_create(h);
3989 if (pg == NULL || prop == NULL || val == NULL)
4015 scf_value_destroy(val);
4081 scf_value_t *val;
4093 val = scf_value_create(h);
4094 if (pg == NULL || prop == NULL || val == NULL)
4106 prop, val) != SCF_SUCCESS)
4118 scf_value_destroy(val);