attrval
open_return(plugin_t *p, char *attrval)
linkattr_set(dlmgmt_linkattr_t **headp, const char *attr, void *attrval,
if (linkattr_equal(headp, attr, attrval, attrsz))
bcopy(attrval, attrp->lp_val, attrsz);
linkattr_equal(dlmgmt_linkattr_t **headp, const char *attr, void *attrval,
(memcmp(saved_attrval, attrval, attrsz) == 0));
void *attrval;
err = linkattr_get(headp, attr, &attrval, &attrsz, &attrtype);
bcopy(attrval, retvalp->lr_attrval, attrsz);
char *attrval;
attrval = tounix_str(attr->attrvalue[0]);
attrval = attr->attrvalue[0];
*ldap_len = strlen(key) + strlen(attrval);
(void) sprintf(*ldap_line, "%s", attrval);
extern int _adddevtabrec __P((char *alias, char **attrval));
extern int _moddevtabrec __P((char *device, char **attrval));
struct attrval *p; /* attr/val records */
static struct attrval *
struct attrval *rtn; /* Ptr to struct to return */
if (rtn = malloc(sizeof (struct attrval))) {
struct attrval *attr; /* Ptr to struct for attr/val pair */
struct attrval *t; /* Tmp ptr to attr/val struct */
struct attrval *p; /* Structure being freed */
struct attrval *q; /* Next structure to free */
struct attrval *q; /* Pointer to current attr/val pair */
struct attrval *q; /* Pointer to current attr/val pair */
struct attrval *attrval; /* Ptr to attr val pair */
if ((attrval = devtabent->attrlist) != NULL) {
while ((attrval = attrval->next) != NULL);
if (noerror && (attrval = devtabent->attrlist)) {
if (*pp = malloc(strlen(attrval->attr)+1))
(void) strcpy(*pp++, attrval->attr);
} while (noerror && (attrval = attrval->next));
struct attrval *attrval; /* Ptr to attr/val desc */
struct attrval *prevattrval; /* Ptr to prev attr/val */
if ((attrval = modent->attrlist) != NULL) do {
if (strcmp(*pp, attrval->attr) == 0) {
free(attrval->attr);
free(attrval->val);
prevattrval->next = attrval->next;
free(attrval);
attrval = prevattrval->next;
modent->attrlist = attrval->next;
free(attrval);
attrval = modent->attrlist;
prevattrval = attrval; /* Advance to next */
attrval = attrval->next;
} while (!found && attrval);
struct attrval *prevattrval; /* * to prev attr/val struct */
struct attrval *attrval; /* * to current struct */
if ((attrval = devtabent->attrlist) != NULL)
if (strcmp(attrval->attr,
(attrval = attrval->next));
if (attrval =
malloc(sizeof (struct attrval))) {
attrval->attr = name;
attrval->val = val;
attrval->next = NULL;
prevattrval->next = attrval;
else devtabent->attrlist = attrval;
prevattrval = attrval;
struct attrval *attrval; /* Ptr to attr/val pair */
if ((attrval = rec->attrlist) != NULL) do { /* Attributes */
if (attrval->attr)
size += (strlen(attrval->attr)*2); /* attr */
if (attrval->val) {
size += (strlen(attrval->val)*2) +4;
} while ((attrval = attrval->next) != NULL); /* Next attr/val */
if ((attrval = rec->attrlist) != NULL)
p = strcatesc(p, attrval->attr);
p = strcatesc(p, attrval->val);
if ((attrval = attrval->next) != NULL)
} while (attrval);
char **attrval) /* Attributes for that device */
if (devtabent = mkdevtabent(alias, attrval)) {
char **attrval) /* Attributes to add or change */
struct attrval *new; /* New attribute/value desc */
struct attrval *old; /* Old attribute/value desc */
struct attrval *newnew; /* Next "new" value to look at */
struct attrval *prevnew; /* Previous item in the 'new' list */
if (chg = mkdevtabent(device, attrval)) {
struct attrval *attrlist; /* Addr of 1st attribute description */
struct attrval *next; /* Next attrval in list */
void *attrval, size_t attrsz)
if (attrval == NULL || attrsz == 0 || attr == NULL)
bcopy(oattrval, attrval, oattrsz);
bcopy(retval.lr_attrval, attrval, retval.lr_attrsz);
const char *last_attr, char *attr, void *attrval, size_t attrsz,
if (nvl == NULL || attrval == NULL || attrsz == 0 || attr == NULL ||
bcopy(oattrval, attrval, oattrsz);
dladm_datatype_t type, const void *attrval)
if (attr == NULL || attrval == NULL)
attrsz = strlen(attrval) + 1;
bcopy(attrval, &setattr.ld_attrval, attrsz);
char attrval[OVERLAY_PROP_SIZEMAX];
attr, attrval, sizeof (attrval), &attrsz) == DLADM_STATUS_OK) {
if ((aip->ai_val[0] = strdup(attrval)) == NULL) {
char attrval[MAXLINKATTRVALLEN];
attr, attrval, MAXLINKATTRVALLEN, &attrsz)) == DLADM_STATUS_OK) {
char **attrval;
attrval = attr->attrvalue;
attrval[m], &error);
if (__print2buf(&buffer, attrval[m], sepstr))
void *attrval, size_t *attrszp)
bcopy(retval.lr_attrval, attrval, retval.lr_attrsz);