+static void ptr_free(void *ptr)
+{
+ free(*(void **) ptr);
+}
+
+static PHP_GINIT_FUNCTION(psi)
+{
+ char *tmp;
+ struct psi_plist **bl_decls = &psi_globals->blacklist.decls;
+
+ *bl_decls = psi_plist_init(ptr_free);
+
+#define BL_DECL_ADD(d) \
+ tmp = strdup(d); \
+ *bl_decls = psi_plist_add(*bl_decls, &tmp)
+
+ BL_DECL_ADD("dlsym");
+ BL_DECL_ADD("_IO_cookie_init");
+}
+
+static PHP_GSHUTDOWN_FUNCTION(psi)
+{
+ psi_plist_free(psi_globals->blacklist.decls);
+}
+