Skip to content

Instantly share code, notes, and snippets.

@kinichiro
Last active August 29, 2015 14:05
Show Gist options
  • Save kinichiro/7a9879ac6136e42d9850 to your computer and use it in GitHub Desktop.
Save kinichiro/7a9879ac6136e42d9850 to your computer and use it in GitHub Desktop.
sample code for shl_get_r()
/* test_shl_get_r.c */
#include <stdio.h>
#include <dl.h>
int main() {
int idx;
struct shl_descriptor desc;
for(idx = -2; shl_get_r(idx, &desc) == 0; ++ idx) {
printf("[%03d] %8.8x %8.8x %8.8x %8.8x %8.8x %8.8x %s\n",
idx,
desc.tstart, desc.tend, desc.dstart, desc.dend,
desc.ltptr, desc.handle, desc.filename);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment