OSF DCE Application Development Guide--Core Components
OSF DCE Application Development Guide—Core Components
(SA_BND_TWR_LEN((SA_ATTR_BND_INFO_P(S)),I,J))
#define SA_ATTR_BND_TWR_OCTETS(S,I,J) \
(SA_BND_TWR_OCTETS((SA_ATTR_BND_INFO_P(S)),I,J))
28.7.4 Binding Data Structure Size Calculation Macros
The following macros are supplied to calculate the size of data types that hold binding
information. The macros work with the ERA API data types and their equivalent
dce_attr_sch data types.
/*
* SA_BND_INFO_SIZE(N) - calculate the size required
* for a sec_attr_bind_info_t with N bindings.
*/
#define SA_BND_INFO_SIZE(N) ( sizeof(sec_attr_bind_info_t) + \
(((N) - 1) * sizeof(sec_attr_binding_t)) )
/*
* SA_TWR_SET_SIZE(N) - calculate the size required
* for a sec_attr_twr_set_t with N towers.
*/
#define SA_TWR_SET_SIZE(N) ( sizeof(sec_attr_twr_set_t) + \
(((N) - 1) * sizeof(sec_attr_twr_ref_t)) )
/*
* SA_TWR_SIZE(N) - calculate the size required
* for a twr_t with a tower_octet_string of length N.
*/
#define SA_TWR_SIZE(N) ( sizeof(twr_t) + (N)-1)
28.7.5 Schema Entry Data Structure Size Calculation Macros
The following macro is supplied to calculate the size of a sec_attr_alc_mgr_info_set_t
data type.
/*
* SA_ACL_MGR_SET_SIZE(N) - calculate the size required
* for a sec_attr_acl_mgr_info_set_t with N acl_mgrs.
*/
#define SA_ACL_MGR_SET_SIZE(N) ( sizeof(sec_attr_acl_mgr_info_set_t) + \
28−32 Tandem Computers Incorporated 124245