diff --git a/ChangeLog b/ChangeLog index 729205f..700b17b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun May 17 16:37:26 2009 Minero Aoki + + * import/dlfcn.hb: new declaration file dlfcn.hb. + Sun May 17 16:36:49 2009 Minero Aoki * net/loveruby/cflat/entity/ToplevelScope.java: do not warn unused diff --git a/import/dlfcn.hb b/import/dlfcn.hb new file mode 100644 index 0000000..e8201d9 --- /dev/null +++ b/import/dlfcn.hb @@ -0,0 +1,16 @@ +// dlfcn.hb + +// from bits/dlfcn.h +const int RTLD_LAZY = 0x0001; +const int RTLD_NOW = 0x0002; +const int RTLD_NOLOAD = 0x0004; +const int RTLD_DEEPBIND = 0x0008; +const int RTLD_LOCAL = 0x0000; +const int RTLD_GLOBAL = 0x0100; +const int RTLD_NODELETE = 0x1000; + +// from dlfcn.h +extern void* dlopen(char* filename, int flag); +extern char* dlerror(void); +extern void* dlsym(void* handle, char* symbol); +extern int dlclose(void* handle);