| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/dso/ |
| H A D | dso_lib.c | 52 int DSO_free(DSO *dso) in DSO_free() argument 56 if (dso == NULL) in DSO_free() 59 if (CRYPTO_DOWN_REF(&dso->references, &i, dso->lock) <= 0) in DSO_free() 62 REF_PRINT_COUNT("DSO", dso); in DSO_free() 67 if ((dso->flags & DSO_FLAG_NO_UNLOAD_ON_FREE) == 0) { in DSO_free() 68 if ((dso->meth->dso_unload != NULL) && !dso->meth->dso_unload(dso)) { in DSO_free() 74 if ((dso->meth->finish != NULL) && !dso->meth->finish(dso)) { in DSO_free() 79 sk_void_free(dso->meth_data); in DSO_free() 80 OPENSSL_free(dso->filename); in DSO_free() 81 OPENSSL_free(dso->loaded_filename); in DSO_free() [all …]
|
| H A D | dso_dl.c | 19 static int dl_load(DSO *dso); 20 static int dl_unload(DSO *dso); 21 static DSO_FUNC_TYPE dl_bind_func(DSO *dso, const char *symname); 22 static char *dl_name_converter(DSO *dso, const char *filename); 23 static char *dl_merger(DSO *dso, const char *filespec1, 53 static int dl_load(DSO *dso) in dl_load() argument 61 char *filename = DSO_convert_filename(dso, NULL); in dl_load() 68 (dso->flags & DSO_FLAG_NO_NAME_TRANSLATION ? 0 : in dl_load() 81 if (!sk_push(dso->meth_data, (char *)ptr)) { in dl_load() 89 dso->loaded_filename = filename; in dl_load() [all …]
|
| H A D | dso_dlfcn.c | 41 static int dlfcn_load(DSO *dso); 42 static int dlfcn_unload(DSO *dso); 43 static DSO_FUNC_TYPE dlfcn_bind_func(DSO *dso, const char *symname); 44 static char *dlfcn_name_converter(DSO *dso, const char *filename); 45 static char *dlfcn_merger(DSO *dso, const char *filespec1, 96 static int dlfcn_load(DSO *dso) in dlfcn_load() argument 100 char *filename = DSO_convert_filename(dso, NULL); in dlfcn_load() 109 if (dso->flags & DSO_FLAG_GLOBAL_SYMBOLS) in dlfcn_load() 127 if (!sk_void_push(dso->meth_data, (char *)ptr)) { in dlfcn_load() 132 dso->loaded_filename = filename; in dlfcn_load() [all …]
|
| H A D | dso_vms.c | 37 static int vms_load(DSO *dso); 38 static int vms_unload(DSO *dso); 39 static DSO_FUNC_TYPE vms_bind_func(DSO *dso, const char *symname); 40 static char *vms_name_converter(DSO *dso, const char *filename); 41 static char *vms_merger(DSO *dso, const char *filespec1, 84 static int vms_load(DSO *dso) in vms_load() argument 88 char *filename = DSO_convert_filename(dso, NULL); in vms_load() 203 if (!sk_void_push(dso->meth_data, (char *)p)) { in vms_load() 209 dso->loaded_filename = filename; in vms_load() 223 static int vms_unload(DSO *dso) in vms_unload() argument [all …]
|
| H A D | dso_win32.c | 61 static int win32_load(DSO *dso); 62 static int win32_unload(DSO *dso); 63 static DSO_FUNC_TYPE win32_bind_func(DSO *dso, const char *symname); 64 static char *win32_name_converter(DSO *dso, const char *filename); 65 static char *win32_merger(DSO *dso, const char *filespec1, 96 static int win32_load(DSO *dso) in win32_load() argument 100 char *filename = DSO_convert_filename(dso, NULL); in win32_load() 118 if (!sk_void_push(dso->meth_data, p)) { in win32_load() 123 dso->loaded_filename = filename; in win32_load() 134 static int win32_unload(DSO *dso) in win32_unload() argument [all …]
|
| H A D | dso_local.h | 74 int (*dso_load) (DSO *dso); 76 int (*dso_unload) (DSO *dso); 84 DSO_FUNC_TYPE (*dso_bind_func) (DSO *dso, const char *symname); 89 long (*dso_ctrl) (DSO *dso, int cmd, long larg, void *parg); 101 int (*init) (DSO *dso); 102 int (*finish) (DSO *dso);
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/dso/ |
| H A D | dso_lib.c | 62 int DSO_free(DSO *dso) in DSO_free() argument 66 if (dso == NULL) in DSO_free() 69 if (CRYPTO_DOWN_REF(&dso->references, &i, dso->lock) <= 0) in DSO_free() 72 REF_PRINT_COUNT("DSO", dso); in DSO_free() 77 if ((dso->flags & DSO_FLAG_NO_UNLOAD_ON_FREE) == 0) { in DSO_free() 78 if ((dso->meth->dso_unload != NULL) && !dso->meth->dso_unload(dso)) { in DSO_free() 84 if ((dso->meth->finish != NULL) && !dso->meth->finish(dso)) { in DSO_free() 89 sk_void_free(dso->meth_data); in DSO_free() 90 OPENSSL_free(dso->filename); in DSO_free() 91 OPENSSL_free(dso->loaded_filename); in DSO_free() [all …]
|
| H A D | dso_dl.c | 19 static int dl_load(DSO *dso); 20 static int dl_unload(DSO *dso); 21 static DSO_FUNC_TYPE dl_bind_func(DSO *dso, const char *symname); 22 static char *dl_name_converter(DSO *dso, const char *filename); 23 static char *dl_merger(DSO *dso, const char *filespec1, 53 static int dl_load(DSO *dso) in dl_load() argument 61 char *filename = DSO_convert_filename(dso, NULL); in dl_load() 68 (dso->flags & DSO_FLAG_NO_NAME_TRANSLATION ? 0 : in dl_load() 77 if (!sk_push(dso->meth_data, (char *)ptr)) { in dl_load() 85 dso->loaded_filename = filename; in dl_load() [all …]
|
| H A D | dso_dlfcn.c | 41 static int dlfcn_load(DSO *dso); 42 static int dlfcn_unload(DSO *dso); 43 static DSO_FUNC_TYPE dlfcn_bind_func(DSO *dso, const char *symname); 44 static char *dlfcn_name_converter(DSO *dso, const char *filename); 45 static char *dlfcn_merger(DSO *dso, const char *filespec1, 96 static int dlfcn_load(DSO *dso) in dlfcn_load() argument 100 char *filename = DSO_convert_filename(dso, NULL); in dlfcn_load() 109 if (dso->flags & DSO_FLAG_GLOBAL_SYMBOLS) in dlfcn_load() 127 if (!sk_void_push(dso->meth_data, (char *)ptr)) { in dlfcn_load() 132 dso->loaded_filename = filename; in dlfcn_load() [all …]
|
| H A D | dso_vms.c | 37 static int vms_load(DSO *dso); 38 static int vms_unload(DSO *dso); 39 static DSO_FUNC_TYPE vms_bind_func(DSO *dso, const char *symname); 40 static char *vms_name_converter(DSO *dso, const char *filename); 41 static char *vms_merger(DSO *dso, const char *filespec1, 84 static int vms_load(DSO *dso) in vms_load() argument 88 char *filename = DSO_convert_filename(dso, NULL); in vms_load() 203 if (!sk_void_push(dso->meth_data, (char *)p)) { in vms_load() 209 dso->loaded_filename = filename; in vms_load() 223 static int vms_unload(DSO *dso) in vms_unload() argument [all …]
|
| H A D | dso_win32.c | 61 static int win32_load(DSO *dso); 62 static int win32_unload(DSO *dso); 63 static DSO_FUNC_TYPE win32_bind_func(DSO *dso, const char *symname); 64 static char *win32_name_converter(DSO *dso, const char *filename); 65 static char *win32_merger(DSO *dso, const char *filespec1, 96 static int win32_load(DSO *dso) in win32_load() argument 100 char *filename = DSO_convert_filename(dso, NULL); in win32_load() 118 if (!sk_void_push(dso->meth_data, p)) { in win32_load() 123 dso->loaded_filename = filename; in win32_load() 134 static int win32_unload(DSO *dso) in win32_unload() argument [all …]
|
| H A D | dso_local.h | 74 int (*dso_load) (DSO *dso); 76 int (*dso_unload) (DSO *dso); 84 DSO_FUNC_TYPE (*dso_bind_func) (DSO *dso, const char *symname); 89 long (*dso_ctrl) (DSO *dso, int cmd, long larg, void *parg); 101 int (*init) (DSO *dso); 102 int (*finish) (DSO *dso);
|
| /netbsd-src/lib/libc/stdlib/ |
| H A D | atexit.c | 91 atexit_handler_alloc(void *dso) in atexit_handler_alloc() argument 96 if (dso == NULL) { in atexit_handler_alloc() 140 __aeabi_atexit(void *arg, void (*func)(void *), void *dso); 143 __aeabi_atexit(void *arg, void (*func)(void *), void *dso) in __aeabi_atexit() argument 145 return (__cxa_atexit(func, arg, dso)); in __aeabi_atexit() 150 __cxa_atexit_internal(void (*func)(void *), void *arg, void *dso) in __cxa_atexit_internal() argument 158 ah = atexit_handler_alloc(dso); in __cxa_atexit_internal() 166 ah->ah_dso = dso; in __cxa_atexit_internal() 176 __cxa_atexit(void (*func)(void *), void *arg, void *dso) in __cxa_atexit() argument 178 _DIAGASSERT(dso != NULL); in __cxa_atexit() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/include/internal/ |
| H A D | dso.h | 87 int DSO_free(DSO *dso); 88 int DSO_flags(DSO *dso); 89 int DSO_up_ref(DSO *dso); 90 long DSO_ctrl(DSO *dso, int cmd, long larg, void *parg); 96 const char *DSO_get_filename(DSO *dso); 97 int DSO_set_filename(DSO *dso, const char *filename); 108 char *DSO_convert_filename(DSO *dso, const char *filename); 115 char *DSO_merge(DSO *dso, const char *filespec1, const char *filespec2); 124 DSO *DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth, int flags); 127 DSO_FUNC_TYPE DSO_bind_func(DSO *dso, const char *symname);
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/include/internal/ |
| H A D | dso.h | 86 int DSO_free(DSO *dso); 87 int DSO_flags(DSO *dso); 88 int DSO_up_ref(DSO *dso); 89 long DSO_ctrl(DSO *dso, int cmd, long larg, void *parg); 95 const char *DSO_get_filename(DSO *dso); 96 int DSO_set_filename(DSO *dso, const char *filename); 107 char *DSO_convert_filename(DSO *dso, const char *filename); 114 char *DSO_merge(DSO *dso, const char *filespec1, const char *filespec2); 123 DSO *DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth, int flags); 126 DSO_FUNC_TYPE DSO_bind_func(DSO *dso, const char *symname);
|
| /netbsd-src/tests/libexec/ld.elf_so/ |
| H A D | h_thread_local_dtor.c | 59 void *dso; in main() local 63 dso = dlopen("libh_helper_dso3.so", RTLD_LAZY); in main() 64 if (dso == NULL) in main() 66 testfunc = dlsym(dso, "testfunc"); in main() 79 dlclose(dso); in main() 81 dso = dlopen("libh_helper_dso3.so", RTLD_LAZY); in main() 82 if (dso == NULL) in main() 84 dlclose(dso); in main()
|
| H A D | h_locking.c | 63 void *dso; in test_dl_iterate_phdr() local 66 if ((dso = dlopen("libh_helper_dso2.so", RTLD_LAZY)) == NULL) { in test_dl_iterate_phdr() 70 tls_callback_sym = dlsym(dso, "tls_callback"); in test_dl_iterate_phdr() 84 void *dso; in init_fini_helper() local 85 if ((dso = dlopen(arg, RTLD_LAZY)) == NULL) { in init_fini_helper() 89 dlclose(dso); in init_fini_helper()
|
| /netbsd-src/external/gpl2/lvm2/dist/lib/snapshot/ |
| H A D | snapshot.c | 137 static int _get_snapshot_dso_path(struct cmd_context *cmd, char **dso) in _get_snapshot_dso_path() argument 153 *dso = path; in _get_snapshot_dso_path() 159 const char *dso, in _create_dm_event_handler() argument 168 if (dm_event_handler_set_dso(dmevh, dso)) in _create_dm_event_handler() 185 char *dso, *name; in _target_registered() local 195 if (!_get_snapshot_dso_path(vg->cmd, &dso)) in _target_registered() 201 if (!(dmevh = _create_dm_event_handler(name, dso, 0, DM_EVENT_ALL_ERRORS))) in _target_registered() 224 char *dso, *name; in _target_set_events() local 229 if (!_get_snapshot_dso_path(vg->cmd, &dso)) in _target_set_events() 236 if (!(dmevh = _create_dm_event_handler(name, dso, 10, in _target_set_events() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/conf/ |
| H A D | conf_mod.c | 28 DSO *dso; member 61 static CONF_MODULE *module_add(DSO *dso, const char *name, 191 DSO *dso = NULL; in module_load_dso() local 203 dso = DSO_load(NULL, path, NULL, 0); in module_load_dso() 204 if (!dso) { in module_load_dso() 208 ifunc = (conf_init_func *)DSO_bind_func(dso, DSO_mod_init_name); in module_load_dso() 213 ffunc = (conf_finish_func *)DSO_bind_func(dso, DSO_mod_finish_name); in module_load_dso() 215 md = module_add(dso, name, ifunc, ffunc); in module_load_dso() 223 DSO_free(dso); in module_load_dso() 230 static CONF_MODULE *module_add(DSO *dso, const char *name, in module_add() argument [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/conf/ |
| H A D | conf_mod.c | 39 DSO *dso; member 76 static CONF_MODULE *module_add(DSO *dso, const char *name, 288 DSO *dso = NULL; in module_load_dso() local 300 dso = DSO_load(NULL, path, NULL, 0); in module_load_dso() 301 if (dso == NULL) { in module_load_dso() 305 ifunc = (conf_init_func *)DSO_bind_func(dso, DSO_mod_init_name); in module_load_dso() 310 ffunc = (conf_finish_func *)DSO_bind_func(dso, DSO_mod_finish_name); in module_load_dso() 312 md = module_add(dso, name, ifunc, ffunc); in module_load_dso() 320 DSO_free(dso); in module_load_dso() 326 static CONF_MODULE *module_add(DSO *dso, const char *name, in module_add() argument [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/lib/libcrypto/ |
| H A D | dso.inc | 1 # $NetBSD: dso.inc,v 1.1.1.2 2023/04/18 14:19:04 christos Exp $ 5 # SRCS extracted from src/crypto/dist/openssl/crypto/dso/Makefile 8 .PATH: ${OPENSSLSRC}/crypto/dso 16 CPPFLAGS.${cryptosrc} = -I${OPENSSLSRC}/crypto/dso
|
| /netbsd-src/external/gpl2/lvm2/dist/daemons/dmeventd/ |
| H A D | libdevmapper-event.c | 38 char *dso; member 67 dmevh->dso = dmevh->dev_name = dmevh->uuid = NULL; in dm_event_handler_create() 78 if (dmevh->dso) in dm_event_handler_destroy() 79 dm_free(dmevh->dso); in dm_event_handler_destroy() 87 if (dmevh->dso) in dm_event_handler_set_dso() 88 dm_free(dmevh->dso); in dm_event_handler_set_dso() 90 dmevh->dso = dm_strdup(path); in dm_event_handler_set_dso() 91 if (!dmevh->dso) in dm_event_handler_set_dso() 156 return dmevh->dso; in dm_event_handler_get_dso() 338 const char *dso = dso_name ? dso_name : ""; in _daemon_talk() local [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/ |
| H A D | init.c | 158 DSO *dso; in DEFINE_RUN_ONCE_STATIC() local 164 dso = DSO_dsobyaddr(&base_inited, DSO_FLAG_NO_UNLOAD_ON_FREE); in DEFINE_RUN_ONCE_STATIC() 171 (dso == NULL ? "No!" : "Yes.")); in DEFINE_RUN_ONCE_STATIC() 172 DSO_free(dso); in DEFINE_RUN_ONCE_STATIC() 691 DSO *dso = NULL; in OPENSSL_atexit() 700 dso = DSO_dsobyaddr(handlersym.sym, DSO_FLAG_NO_UNLOAD_ON_FREE); in OPENSSL_atexit() 704 (dso == NULL ? "No!" : "Yes.")); in OPENSSL_atexit() 705 DSO_free(dso); in OPENSSL_atexit()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/ |
| H A D | darwin-crt3.c | 55 typedef int (*cxa_atexit_p)(void (*func) (void*), void* arg, const void* dso); 56 typedef void (*cxa_finalize_p)(const void *dso); 447 atexit_common (const struct one_atexit_routine *r, const void *dso) in atexit_common() argument 467 return cxa_atexit (r->callback.cac, r->arg, dso); in atexit_common() 493 return cxa_atexit (cxa_atexit_wrapper, alloced, dso); in atexit_common() 501 const void* dso) __attribute__((visibility("hidden"))); 504 __cxa_atexit (cxa_atexit_callback func, void* arg, const void* dso) in __cxa_atexit() argument 510 return atexit_common (&r, dso); in __cxa_atexit()
|
| /netbsd-src/external/gpl3/gcc/dist/libgcc/config/ |
| H A D | darwin-crt3.c | 55 typedef int (*cxa_atexit_p)(void (*func) (void*), void* arg, const void* dso); 56 typedef void (*cxa_finalize_p)(const void *dso); 447 atexit_common (const struct one_atexit_routine *r, const void *dso) in atexit_common() argument 467 return cxa_atexit (r->callback.cac, r->arg, dso); in atexit_common() 493 return cxa_atexit (cxa_atexit_wrapper, alloced, dso); in atexit_common() 501 const void* dso) __attribute__((visibility("hidden"))); 504 __cxa_atexit (cxa_atexit_callback func, void* arg, const void* dso) in __cxa_atexit() argument 510 return atexit_common (&r, dso); in __cxa_atexit()
|