Update of /cvsroot/fink/experimental/dmacks/misc
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv10776
Added Files:
loadability.c
Log Message:
test if given binary files can be dlopened (thanks for idea pogma!)
--- NEW FILE: loadability.c ---
#include <stdlib.h>
#include <stdio.h>
#include <dlfcn.h>
int main(int argc, char **argv) {
int i;
int exitcode=0;
if(!argv[1]) {
printf("No files specified.\nUsage: %s [list of binary files to dlopen]\n",
argv[0]);
exit(1);
}
for(i=1; i<argc; i++) {
char *module=dlopen(argv[i], RTLD_NOW);
if(!module) {
printf("dlopen(%s) failed: %s\n", argv[i], dlerror());
exitcode=1;
}
}
exit(exitcode);
}
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs