> An auxiliary structure is used to maintain the data: > > > typedef struct { > > uint_t dlm_cnt; /* number of mapings */ > > mmapobj_result_t *dlm_maps; /* mapping information */ > > } Dl_mapinfo_t;
Minor update, this data structure has been expanded to provide a return count of the mappings that were filled in by ld.so.1. A user is free to use a constant array to represent a maximum number of mappings, but ld.so.1 will return how many it provided. > typedef struct { > mmapobj_result_t *dlm_maps; /* mapping information */ > uint_t dlm_acnt; /* number of dlm_maps mappings */ > uint_t dlm_rcnt; /* number of returned mappings */ > } Dl_mapinfo_t; Minor modes to the man page description and example have been supplied with the associated bug report (6237063). -- Rod.