Home
last modified time | relevance | path

Searched refs:dll (Results 1 – 25 of 61) sorted by relevance

123

/titanic_51/usr/src/lib/libdll/common/
H A Ddlfcn.c69 void* dll; in dlopen() local
75 if (!(dll = (void*)shl_load(path, mode, 0L))) in dlopen()
77 return dll; in dlopen()
80 extern int dlclose(void* dll) in dlclose() argument
85 extern void* dlsym(void* dll, const char* name) in dlsym() argument
90 handle = dll == (void*)&all ? (shl_t)0 : (shl_t)dll; in dlsym()
135 void* dll; in dlopen() local
137 if (!(dll = (void*)load((char*)path, mode, getenv("LIBPATH")))) in dlopen()
139 return dll; in dlopen()
142 extern int dlclose(void* dll) in dlclose() argument
[all …]
H A Ddllplug.c40 void* dll; in dllplug() local
53 if (dll = dllopen(dle->path, flags|RTLD_GLOBAL|RTLD_PARENT)) in dllplug()
65 return dll; in dllplug()
70 if ((dll = dllopen(name, flags)) && dll && path && size) in dllplug()
72 return dll; in dllplug()
H A Ddlllook.c34 dlllook(void* dll, const char* name) in dlllook() argument
39 if (!(addr = dlsym(dll, name)) && strlen(name) < (sizeof(buf) - 2)) in dlllook()
43 addr = dlsym(dll, buf); in dlllook()
H A Ddllfind.c41 void* dll; in dllfind() local
43 if ((id = error_info.id) && (dll = dllplug(id, lib, ver, flags, path, size))) in dllfind()
44 return dll; in dllfind()
H A Ddllopen.c42 void* dll;
73 dll = dlopen(path, mode);
78 return dll;
H A Ddllnext.c177 register void* dll; in dllnext() local
191 dll = RTLD_NEXT; in dllnext()
210 while (!(dll = dllopen(path, flags))) in dllnext()
222 return dll; in dllnext()
H A DRELEASE25 02-03-17 dllfind.c: fix dll prefix search (for cygwin)
26 02-01-11 features/dll: include <dlfcn.h> only if _hdr_dlfcn&&_lib_dlopen
32 01-02-14 features/dll: fix unbalanced ' quote and ancient hostinfo reference
34 99-04-01 features/dll: drop <stdio.h> -- iffe protos printf
37 98-03-11 features/dll: probe for _DLL_RLD_SYM
/titanic_51/usr/src/contrib/ast/src/lib/libdll/
H A Ddlfcn.c29 static const char id[] = "\n@(#)$Id: dll library (AT&T Research) 2009-04-15 $\0\n";
69 void* dll; in dlopen() local
75 if (!(dll = (void*)shl_load(path, mode, 0L))) in dlopen()
77 return dll; in dlopen()
80 extern int dlclose(void* dll) in dlclose() argument
85 extern void* dlsym(void* dll, const char* name) in dlsym() argument
90 handle = dll == (void*)&all ? (shl_t)0 : (shl_t)dll; in dlsym()
135 void* dll; in dlopen() local
137 if (!(dll in dlopen()
142 dlclose(void * dll) dlclose() argument
279 void* dll; dlopen() local
287 dlclose(void * dll) dlclose() argument
365 Dll_t* dll; dlopen() local
421 Dll_t* dll = (Dll_t*)handle; dlclose() local
435 lookup(Dll_t * dll,const char * name) lookup() argument
467 Dll_t* dll = (Dll_t*)handle; dlsym() local
512 dlclose(void * dll) dlclose() argument
[all...]
H A Ddllplug.c38 void* dll; in dllplugin() local
55 if (dll = dllopen(dle->path, flags|RTLD_GLOBAL|RTLD_PARENT)) in dllplugin()
57 if (!dllcheck(dll, dle->path, rel, cur)) in dllplugin()
60 dlclose(dll); in dllplugin()
61 dll = 0; in dllplugin()
84 dll = dllplugin(lib, s, 0, 0, 0, flags, path, size); in dllplugin()
86 if (dll) in dllplugin()
93 errorf("dll", NiL, 1, "dllplugin: %s dlopen failed: %s", dle->path, dllerror(1)); in dllplugin()
101 if (!dll) in dllplugin()
103 return dll; in dllplugin()
[all...]
H A DMamfile40 make dll
42 make dll.req
51 exec - for i in dll dl dld ast
53 exec - "dll"|dll)
73 exec - } > dll.req
75 done dll.req generated
78 make dll.h implicit
79 done dll.h dontcare virtual
166 make FEATURE/dll
[all...]
H A Ddllcheck.c29 * return plugin version for dll
35 dllversion(void* dll, const char* path) in dllversion() argument
39 if (pvf = (Dll_plugin_version_f)dlllook(dll, "plugin_version")) in dllversion()
45 errorf("dll", NiL, 1, "dllversion: %s: %s", path, state.errorbuf); in dllversion()
51 * check if dll on path has plugin version >= ver
58 dllcheck(void* dll, const char* path, unsigned long ver, unsigned long* cur) in dllcheck() argument
65 v = dllversion(dll, path); in dllcheck()
79 errorf("dll", NiL, 1, "dllcheck: %s: %s", path, state.errorbuf); in dllcheck()
83 errorf("dll", NiL, -1, "dllversion: %s: %lu >= %lu", path, v, ver); in dllcheck()
H A Ddlllook.c35 dlllook(void* dll, const char* name) in dlllook() argument
40 if (!(addr = dlsym(dll, name)) && strlen(name) < (sizeof(buf) - 2)) in dlllook()
45 addr = dlsym(dll, name); in dlllook()
47 errorf("dll", NiL, -1, "dlllook: %s addr %p", name, addr); in dlllook()
H A Ddllfind.c41 void* dll; in dllfind() local
43 if ((id = error_info.id) && (dll = dllplug(id, lib, ver, flags, path, size))) in dllfind()
44 return dll; in dllfind()
H A Ddllopen.c32 * with the path of the dll to be opened
40 void* dll;
72 dll = dlopen(path, mode);
77 return dll;
H A DRELEASE10 10-05-28 dllerror.c: add dllerror(int retain) for dll*() and dl*() messages
35 02-03-17 dllfind.c: fix dll prefix search (for cygwin)
36 02-01-11 features/dll: include <dlfcn.h> only if _hdr_dlfcn&&_lib_dlopen
42 01-02-14 features/dll: fix unbalanced ' quote and ancient hostinfo reference
44 99-04-01 features/dll: drop <stdio.h> -- iffe protos printf
47 98-03-11 features/dll: probe for _DLL_RLD_SYM
H A Ddllnext.c43 * by the main prog and dll's loaded so far
139 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: next %s\n", vp)); in _dll_next()
145 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: skip %s\n", vp)); in _dll_next()
152 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: this %s\n", vp)); in _dll_next()
177 register void* dll; in dllnext() local
191 dll = RTLD_NEXT; in dllnext()
210 while (!(dll = dllopen(path, flags))) in dllnext()
222 return dll; in dllnext()
/titanic_51/usr/src/lib/libcmd/common/
H A Dcmd.h101 void* dll; in main() local
120 if (dll = dlopen(NiL, RTLD_LAZY)) in main()
122 if (fun = (Shbltin_f)dlsym(dll, buf + 1)) in main()
124 if (fun = (Shbltin_f)dlsym(dll, buf)) in main()
127 if (dll = dllplug(NiL, "cmd", NiL, RTLD_LAZY, NiL, 0)) in main()
129 if (fun = (Shbltin_f)dlsym(dll, buf + 1)) in main()
131 if (fun = (Shbltin_f)dlsym(dll, buf)) in main()
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Dcmd.h101 void* dll; in main() local
120 if (dll = dlopen(NiL, RTLD_LAZY)) in main()
122 if (fun = (Shbltin_f)dlsym(dll, buf + 1)) in main()
124 if (fun = (Shbltin_f)dlsym(dll, buf)) in main()
127 if (dll = dllplug(NiL, "cmd", NiL, RTLD_LAZY, NiL, 0)) in main()
129 if (fun = (Shbltin_f)dlsym(dll, buf + 1)) in main()
131 if (fun = (Shbltin_f)dlsym(dll, buf)) in main()
/titanic_51/usr/src/lib/libcmd/sparcv9/include/ast/
H A Dcmd.h110 __V_* dll; local
129 if (dll = dlopen(NiL, RTLD_LAZY))
131 if (fun = (Shbltin_f)dlsym(dll, buf + 1))
133 if (fun = (Shbltin_f)dlsym(dll, buf))
136 if (dll = dllplug(NiL, "cmd", NiL, RTLD_LAZY, NiL, 0))
138 if (fun = (Shbltin_f)dlsym(dll, buf + 1))
140 if (fun = (Shbltin_f)dlsym(dll, buf))
/titanic_51/usr/src/lib/libcmd/amd64/include/ast/
H A Dcmd.h110 __V_* dll; local
129 if (dll = dlopen(NiL, RTLD_LAZY))
131 if (fun = (Shbltin_f)dlsym(dll, buf + 1))
133 if (fun = (Shbltin_f)dlsym(dll, buf))
136 if (dll = dllplug(NiL, "cmd", NiL, RTLD_LAZY, NiL, 0))
138 if (fun = (Shbltin_f)dlsym(dll, buf + 1))
140 if (fun = (Shbltin_f)dlsym(dll, buf))
/titanic_51/usr/src/lib/libcmd/i386/include/ast/
H A Dcmd.h110 __V_* dll; local
129 if (dll = dlopen(NiL, RTLD_LAZY))
131 if (fun = (Shbltin_f)dlsym(dll, buf + 1))
133 if (fun = (Shbltin_f)dlsym(dll, buf))
136 if (dll = dllplug(NiL, "cmd", NiL, RTLD_LAZY, NiL, 0))
138 if (fun = (Shbltin_f)dlsym(dll, buf + 1))
140 if (fun = (Shbltin_f)dlsym(dll, buf))
/titanic_51/usr/src/lib/libcmd/sparc/include/ast/
H A Dcmd.h110 __V_* dll; local
129 if (dll = dlopen(NiL, RTLD_LAZY))
131 if (fun = (Shbltin_f)dlsym(dll, buf + 1))
133 if (fun = (Shbltin_f)dlsym(dll, buf))
136 if (dll = dllplug(NiL, "cmd", NiL, RTLD_LAZY, NiL, 0))
138 if (fun = (Shbltin_f)dlsym(dll, buf + 1))
140 if (fun = (Shbltin_f)dlsym(dll, buf))
/titanic_51/usr/src/lib/libast/common/misc/
H A Dgetenv.c97 HANDLE dll; in getenv() local
103 if (dll = GetModuleHandle("posix.dll")) in getenv()
104 posix_getenv = (char*(*)(const char*))GetProcAddress(dll, "getenv"); in getenv()
/titanic_51/usr/src/contrib/ast/src/lib/libast/misc/
H A Dgetenv.c97 HANDLE dll; in getenv() local
103 if (dll = GetModuleHandle("posix.dll")) in getenv()
104 posix_getenv = (char*(*)(const char*))GetProcAddress(dll, "getenv"); in getenv()
/titanic_51/usr/src/contrib/ast/src/cmd/INIT/
H A Dmake.probe19 probe_dll="'-G 0' -Wc,dll,exportall,longname,rent -Wc,exportall -dynamic $cc_dll_def"
41 probe_shared="'' -G -b -c -shared -Wl,dll"
405 $cc -Wl,dll -o pic.$exe pic.$obj || continue
410 sd=.dll
412 shared=-Wl,dll
655 then rm -f xxx.dll xxx.lib
656 if $cc -shared -Wl,--enable-auto-image-base -Wl,--out-implib=xxx.lib -o xxx.dll exp.$obj &&
657 test -f xxx.lib -a -f xxx.dll
662 sd=.dll
663 so=.dll
[all...]

123