Lines Matching +defs:val +defs:current
408 * or in any way examine the current state of mounted file systems. It does
871 char *val = NULL;
875 err = fetch_xml_prop(cur, prop, &val);
879 empty_val = (val != NULL && strlen(val) == 0);
884 (err = can_set_prop(handle, res, (char *)prop, val)) != Z_OK) {
885 free(val);
906 free(val);
2719 * the current net element.
2743 * The current net element matches the query. Select it if
2990 * the current net element.
3040 * The current anet element matches the query. Select it if
3561 char val[MAXPATHLEN];
3576 (fetchprop(handle, cur, DTD_ATTR_MATCH, val,
3577 sizeof (val)) == Z_OK)) {
3578 if (strcmp(tabptr->zone_dev_match, val) == 0) {
3594 (fetchprop(handle, cur, DTD_ATTR_ALLOW_PARTITION, val,
3595 sizeof (val)) == Z_OK)) {
3596 if (strcmp(tabptr->zone_dev_partition, val) == 0) {
3612 (fetchprop(handle, cur, DTD_ATTR_ALLOW_RAW_IO, val,
3613 sizeof (val)) == Z_OK)) {
3614 if (strcmp(tabptr->zone_dev_raw_io, val) == 0) {
4248 xmlNodePtr cur, val;
4267 for (val = cur->xmlChildrenNode; val != NULL;
4268 val = val->next) {
4273 if ((fetchprop(handle, val, DTD_ATTR_PRIV,
4278 if ((fetchprop(handle, val, DTD_ATTR_LIMIT,
4283 if ((fetchprop(handle, val, DTD_ATTR_ACTION,
4751 * Apply the current rctl settings to the specified, running zone.
4782 /* first delete all current privileged settings for this rctl */
4894 long double val;
4900 if ((val = strtold(str, &unitp)) < 0)
4927 *bytes = (uint64_t)(val * scale);
4994 pool_value_t *val;
5005 if ((val = pool_value_alloc()) == NULL)
5009 pool_value_set_uint64(val, (uint64_t)max);
5011 if (pool_put_property(pconf, elem, "pset.max", val) != PO_SUCCESS) {
5012 pool_value_free(val);
5017 pool_value_set_uint64(val, (uint64_t)min);
5019 if (pool_put_property(pconf, elem, "pset.min", val) != PO_SUCCESS) {
5020 pool_value_free(val);
5024 pool_value_free(val);
5050 pool_value_t *val;
5057 if ((val = pool_value_alloc()) == NULL) {
5062 pool_value_set_int64(val,
5065 if (pool_put_property(pconf, elem, "pool.importance", val)
5068 pool_value_free(val);
5072 pool_value_free(val);
6042 xmlNodePtr cur, val;
6062 for (val = cur->xmlChildrenNode; val != NULL; val = val->next) {
6067 if (fetchprop(handle, val, DTD_ATTR_PRIV,
6071 if (fetchprop(handle, val, DTD_ATTR_LIMIT,
6075 if (fetchprop(handle, val, DTD_ATTR_ACTION,
6407 * The default brand is the global zone's brand, or the current zone's brand
6419 * current zone's brand.
7191 rctlblk_t *current, *next;
7201 current = alloca(rctlblk_size());
7202 if (getrctl(name, NULL, current, RCTL_FIRST) != 0)
7205 * Make sure the proposed value isn't greater than the current system
7209 while (rctlblk_get_privilege(current) != RCPRIV_SYSTEM) {
7212 if (getrctl(name, current, next, RCTL_NEXT) != 0)
7214 tmp = current;
7215 current = next;
7218 if (limit > rctlblk_get_value(current))
7224 global_flags = rctlblk_get_global_flags(current);
7764 xmlNodePtr cur, val;
7796 for (val = cur->xmlChildrenNode; val != NULL;
7797 val = val->next) {
7806 if ((fetchprop(handle, val, DTD_ATTR_PRIV,
7810 if ((fetchprop(handle, val, DTD_ATTR_LIMIT,
7814 if ((fetchprop(handle, val, DTD_ATTR_ACTION,
7841 uint64_t val;
7850 if (zonecfg_get_aliased_rctl(handle, name, &val) != Z_OK)
7882 zonecfg_set_aliased_rctl(zone_dochandle_t handle, char *name, uint64_t val)
7911 (void) snprintf(buf, sizeof (buf), "%llu", (long long)val);
8280 * lock is an ancestor of the current process.
8284 * Check if the supplied pid is an ancestor of the current process.
8323 * Return: 0 if unlocked (or locked by current process) or pid of
8405 * Try to get details of the current lock owner. Return
8481 * Try to get details of the current lock owner. Return