- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for dtolsym (0.18 sec)
-
src/cmd/cgo/internal/testcshared/testdata/main5.c
if (verbose) { fprintf(stderr, "calling dlsym\n"); } resetSIGIO = (void (*)(void))dlsym(handle, "ResetSIGIO"); if (resetSIGIO == NULL) { fprintf(stderr, "%s\n", dlerror()); exit(EXIT_FAILURE); } if (verbose) { fprintf(stderr, "calling ResetSIGIO\n"); } resetSIGIO(); sawSIGIO = (bool (*)(void))dlsym(handle, "SawSIGIO"); if (sawSIGIO == NULL) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue4029.c
#include <dlfcn.h> // Write our own versions of dlopen/dlsym/dlclose so that we represent // the opaque handle as a Go uintptr rather than a Go pointer to avoid // garbage collector confusion. See issue 23663. uintptr_t dlopen4029(char* name, int flags) { return (uintptr_t)(dlopen(name, flags)); } uintptr_t dlsym4029(uintptr_t handle, char* name) { return (uintptr_t)(dlsym((void*)(handle), name)); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 04 15:41:19 UTC 2023 - 781 bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main4.c
if (handle == NULL) { fprintf(stderr, "%s\n", dlerror()); exit(EXIT_FAILURE); } if (verbose) { fprintf(stderr, "calling dlsym\n"); } // Start some goroutines. fn = (void(*)(void))dlsym(handle, "RunGoroutines"); if (fn == NULL) { fprintf(stderr, "%s\n", dlerror()); exit(EXIT_FAILURE); } if (verbose) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 4.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main1.c
// license that can be found in the LICENSE file. #include <stdint.h> #include <stdio.h> #include <dlfcn.h> int check_int8(void* handle, const char* fname, int8_t want) { int8_t (*fn)(); fn = (int8_t (*)())dlsym(handle, fname); if (!fn) { fprintf(stderr, "ERROR: missing %s: %s\n", fname, dlerror()); return 1; } signed char ret = fn(); if (ret != want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue4029.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 04 15:41:19 UTC 2023 - 1.5K bytes - Viewed (0) -
src/runtime/race/race_darwin_amd64.go
//go:cgo_import_dynamic _sanitizer_internal_memset _sanitizer_internal_memset "" //go:cgo_import_dynamic abort abort "" //go:cgo_import_dynamic arc4random_buf arc4random_buf "" //go:cgo_import_dynamic close close "" //go:cgo_import_dynamic dlsym dlsym "" //go:cgo_import_dynamic dup dup "" //go:cgo_import_dynamic dup2 dup2 "" //go:cgo_import_dynamic dyld_shared_cache_iterate_text dyld_shared_cache_iterate_text "" //go:cgo_import_dynamic execve execve ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:29:22 UTC 2023 - 5.6K bytes - Viewed (0) -
src/runtime/race/race_darwin_arm64.go
//go:cgo_import_dynamic abort abort "" //go:cgo_import_dynamic arc4random_buf arc4random_buf "" //go:cgo_import_dynamic bzero bzero "" //go:cgo_import_dynamic close close "" //go:cgo_import_dynamic dlsym dlsym "" //go:cgo_import_dynamic dup dup "" //go:cgo_import_dynamic dup2 dup2 "" //go:cgo_import_dynamic dyld_shared_cache_iterate_text dyld_shared_cache_iterate_text "" //go:cgo_import_dynamic execve execve ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:29:22 UTC 2023 - 5.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main3.c
if (!handle) { fprintf(stderr, "ERROR: failed to open the shared library: %s\n", dlerror()); return 2; } uintptr_t main_fn = (uintptr_t)dlsym(handle, "main.main"); if (!main_fn) { fprintf(stderr, "ERROR: missing main.main: %s\n", dlerror()); return 2; } // TODO(hyangah): check that main.main can run. printf("PASS\n"); return 0;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 785 bytes - Viewed (0) -
src/runtime/cgo/gcc_android.c
if (handle == NULL) { fatalf("inittls: failed to dlopen main program"); return; } // android_get_device_api_level is introduced in Android Q, so its mere presence // is enough. get_ver = dlsym(handle, "android_get_device_api_level"); dlclose(handle); if (get_ver != NULL) { off = (void *)(TLS_SLOT_APP*sizeof(void *)); // tlsg is initialized to Q's free TLS slot. Verify it while we're here. if (*tlsg != off) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 09 23:17:17 UTC 2020 - 2.6K bytes - Viewed (0) -
src/plugin/plugin_dlopen.go
void* h = dlopen(path, RTLD_NOW|RTLD_GLOBAL); if (h == NULL) { *err = (char*)dlerror(); } return (uintptr_t)h; } static void* pluginLookup(uintptr_t h, const char* name, char** err) { void* r = dlsym((void*)h, name); if (r == NULL) { *err = (char*)dlerror(); } return r; } */ import "C" import ( "errors" "sync" "unsafe" ) func open(name string) (*Plugin, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 16:55:22 UTC 2023 - 3.9K bytes - Viewed (0)