AttributeType
AttrT_new (name
)
extern oid_table_attr attrOIDTable
[];
if ((res
= name2attr (name
)) == NULLTABLE_ATTR
) {
/* attribute not in tables, add as "ASN" if possible */
if ((ptr
= get_oid (name
)) == NULLCP
)
Current
= &attrOIDTable
[attrNumEntries
].oa_ot
;
Current
->ot_name
= strdup(name
);
add_entry_aux (Current
->ot_name
,(caddr_t
)&attrOIDTable
[attrNumEntries
],2,NULLCP
);
Current
->ot_stroid
= strdup(ptr
);
oid
= str2oid (Current
->ot_stroid
);
Current
->ot_oid
= NULLOID
;
Current
->ot_oid
= oid_cpy (oid
);
attrOIDTable
[attrNumEntries
].oa_syntax
= 0;
return (&attrOIDTable
[attrNumEntries
++]);