Lines Matching +defs:val +defs:service

297  * Determine if the SMF service instance is in the online state or
316 * Determine if the SMF service instance is in the disabled state or
335 * Determine if the SMF service instance auto_enabled set or not. A
360 * Determine if the SMF service instance is in the disabled state or
399 "SMB: service not supported with Trusted Extensions\n"));
448 "SMB: Unable to enable service\n"));
455 * Don't bother trying to start shares if the service isn't
535 * service up will enable the share that was just added prior
935 int val;
936 val = strtoul(value, NULL, 0);
937 if (val < smb_proto_options[index].minval ||
938 val > smb_proto_options[index].maxval)
955 int val;
956 val = strtoul(value, NULL, 0);
957 if (val == 0)
960 if (val < smb_proto_options[index].minval ||
961 val > smb_proto_options[index].maxval)
1318 scf_service_t *service;
1348 service = scf_service_create(handle);
1360 if (service == NULL || iter == NULL || pg == NULL || prop == NULL ||
1378 * Setup to iterate over the service property groups, only
1380 * property will have the FMRI of the service we are dependent
1386 if (scf_scope_get_service(scope, servname, service) != 0)
1389 if (scf_iter_service_pgs(iter, service) != 0)
1395 * Have a property group for the service. See if it is
1435 if (service != NULL)
1436 scf_service_destroy(service);
1443 * How long to wait for service to come online
1456 char *service[] = { SMBD_DEFAULT_INSTANCE_FMRI, NULL };
1461 * services, first. If it fails, the SMB service will
1465 * manually. The service could be administratively
1469 _check_services(service);
1471 /* Wait for service to come online */
2116 char *val = NULL;
2134 val = sa_get_resource_description(resource);
2135 if (val == NULL)
2136 val = sa_get_share_description(share);
2138 if (val != NULL) {
2139 (void) strlcpy(si->shr_cmnt, val, sizeof (si->shr_cmnt));
2140 sa_free_share_description(val);
2382 char *name, *val;
2393 err = nvpair_value_string(cur, &val);
2394 if ((err != 0) || (name == NULL) || (val == NULL)) {
2401 prop = sa_create_property(name, val);
2414 err = sa_update_property(prop, val);
2429 char *val;
2433 if ((val = sa_get_property_attr(prop, "value")) != NULL) {
2434 if ((strcasecmp(val, "true") == 0) || (strcmp(val, "1") == 0))
2436 free(val);
2446 char *val;
2449 if ((val = sa_get_property_attr(prop, "value")) != NULL) {
2450 (void) strlcpy(buf, val, bufsz);
2451 free(val);