/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <Python.h>
#if PY_MAJOR_VERSION >= 3
#endif
/*ARGSUSED*/
static PyObject *
{
/* This parameter is ignored. */
return (NULL);
return (NULL);
"_Facets__keylist")) == NULL) {
return (NULL);
}
return (NULL);
}
#define CLEANUP_FREFS \
continue;
} else {
/*
* Facet is unknown; see if it matches one of the
* wildcard patterns set.
*/
goto prep_ret;
}
/*
* If wildcard facet value cannot be
* retrieved, cleanup and return.
*/
return (NULL);
}
}
/*
* If facet is unknown to the system and no facet
* patterns matched it, then allow the action if it is
* not a debug or optional facet. The trailing '.' is
* to encourage namespace usage.
*/
} else {
}
}
/*
* If facet == 'all' and is False, then no more
* facets need to be checked; this action is not
* allowed.
*/
break;
}
/*
* If facet != 'all' and is True, then we've met
* the 'any' condition.
*/
/*
* If facet != 'all' and is False, and no other
* facets are yet True, tentatively reject this
* action.
*/
}
}
/*
* All facets must be explicitly checked to determine if all the
* facets that == 'all' are True, and that (if present) at least
* one other facet that is != 'all' is True.
*/
}
return (ret);
}
/*ARGSUSED*/
static PyObject *
{
/* This parameter is ignored. */
return (NULL);
return (NULL);
/*
* If system variant value doesn't exist, then
* allow the action if it is a variant that is "false".
*/
}
continue;
}
/*
* If system variant value doesn't match action
* variant value, don't allow this action.
*/
}
}
}
}
};
#if PY_MAJOR_VERSION >= 3
"_varcet",
NULL,
-1,
};
#endif
#if PY_MAJOR_VERSION >= 3
PyInit__varcet(void)
{
return (PyModule_Create(&varcetmodule));
}
#else
init_varcet(void)
{
}
#endif