smfcfg.c revision 54d34259930c76758a7e9e03732cb1e37f9a6ba9
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
goto out;
goto out;
return (handle);
out:
return (NULL);
int valint;
int ret = 0;
char *p = NULL;
const char *pgname;
if (p == NULL) {
goto out;
return (SMF_SYSTEM_ERR);
goto out;
goto out;
goto out;
switch (sctype) {
case SCF_TYPE_INTEGER:
errno = 0;
if (errno != 0) {
goto out;
goto out;
case SCF_TYPE_ASTRING:
valbuf) == 0) {
val) != 0) {
goto out;
case SCF_TYPE_BOOLEAN:
vint = 0;
goto out;
out:
return (ret);
const char *pgname;
if (p == NULL) {
goto out;
return (SMF_SYSTEM_ERR);
return (SMF_SYSTEM_ERR);
goto out;
goto out;
goto out;
switch (sctype) {
case SCF_TYPE_ASTRING:
goto out;
ret = 0;
case SCF_TYPE_INTEGER:
goto out;
goto out;
ret = 0;
case SCF_TYPE_BOOLEAN:
goto out;
goto out;
out:
return (ret);
return (rc);
errno = 0;
if (errno != 0)
return (SA_BAD_VALUE);
return (SA_OK);
return (B_TRUE);
return (B_FALSE);