Searched defs:dll (Results 1 - 25 of 25) sorted by relevance

/ast/src/lib/libdll/
H A Ddlllook.c35 dlllook(void* dll, const char* name) argument
40 if (!(addr = dlsym(dll, name)) && strlen(name) < (sizeof(buf) - 2))
45 addr = dlsym(dll, name);
47 errorf("dll", NiL, -1, "dlllook: %s addr %p", name, addr);
H A Ddllcheck.c29 * return plugin version for dll
35 dllversion(void* dll, const char* path) argument
39 if (pvf = (Dll_plugin_version_f)dlllook(dll, "plugin_version"))
45 errorf("dll", NiL, 1, "dllversion: %s: %s", path, state.errorbuf);
51 * check if dll on path has plugin version >= ver
58 dllcheck(void* dll, const char* path, unsigned long ver, unsigned long* cur) argument
65 v = dllversion(dll, path);
79 errorf("dll", NiL, 1, "dllcheck: %s: %s", path, state.errorbuf);
83 errorf("dll", NiL, -1, "dllversion: %s: %lu >= %lu", path, v, ver);
H A Ddllfind.c41 void* dll; local
43 if ((id = error_info.id) && (dll = dllplug(id, lib, ver, flags, path, size)))
44 return dll;
H A Ddllplug.c38 void* dll; local
55 if (dll = dllopen(dle->path, flags|RTLD_GLOBAL|RTLD_PARENT))
57 if (!dllcheck(dll, dle->path, rel, cur))
60 dlclose(dll);
61 dll = 0;
84 dll = dllplugin(lib, s, 0, 0, 0, flags, path, size);
86 if (dll)
93 errorf("dll", NiL, 1, "dllplugin: %s dlopen failed: %s", dle->path, dllerror(1));
101 if (!dll)
103 return dll;
[all...]
H A Ddll_lib.c112 void* dll; local
138 if (!(dll = dllplugin(names->id, names->name, NiL, version, NiL, RTLD_LAZY, names->path, names->data + sizeof(names->data) - names->path)) && (streq(names->name, names->base) || !(dll = dllplugin(names->id, names->base, NiL, version, NiL, RTLD_LAZY, names->path, names->data + sizeof(names->data) - names->path))))
143 errorf("dll", NiL, -1, "dll_lib: %s version %lu library not found", names->name, version);
152 if (!(libf = (Dll_lib_f)dlllook(dll, sym)))
157 errorf("dll", NiL, -1, "dll_lib: %s version %lu initialization function %s not found in library", names->name, version, sym);
172 errorf("dll", NiL, -1, "dll_lib: %s version %lu loaded from %s", names->name, version, lib->path);
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));
145 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: skip %s\n", vp));
152 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: this %s\n", vp));
177 register void* dll; local
191 dll = RTLD_NEXT;
210 while (!(dll = dllopen(path, flags)))
222 return dll;
H A Ddlfcn.c29 static const char id[] = "\n@(#)$Id: dll library (AT&T Research) 2010-10-20 $\0\n";
69 void* dll; local
75 if (!(dll = (void*)shl_load(path, mode, 0L)))
77 return dll;
80 extern int dlclose(void* dll) argument
85 extern void* dlsym(void* dll, const char* name) argument
90 handle = dll == (void*)&all ? (shl_t)0 : (shl_t)dll;
135 void* dll; local
137 if (!(dll
142 dlclose(void* dll) argument
279 void* dll; local
287 dlclose(void* dll) argument
365 Dll_t* dll; local
421 Dll_t* dll = (Dll_t*)handle; local
435 lookup(Dll_t* dll, const char* name) argument
467 Dll_t* dll = (Dll_t*)handle; local
512 dlclose(void* dll) argument
[all...]
/ast/src/lib/libcodex/
H A Dcodexlist.c40 void* dll; local
52 if (dll = dlopen(dle->path, RTLD_LAZY))
54 if ((lib = (Codexlib_f)dlllook(dll, "codex_lib")) && (np = (*lib)(dle->name)))
57 dlclose(dll);
H A Dcodexmeth.c38 void* dll; local
65 if (dll = dllplug("codex", tmp, NiL, RTLD_LAZY, NiL, 0))
67 if ((lib = (Codexlib_f)dlllook(dll, "codex_lib")) && (meth = (*lib)(name)))
/ast/src/lib/libpz/
H A Dpzlib.c23 * find and load a pzip dll
33 register Pzdll_t* dll; local
45 * see if the dll is already loaded
48 for (dll = state.dll; dll && !streq(dll->name, name); dll = dll->next);
49 if (!dll)
[all...]
H A Dpzlib.h129 typedef struct Pzdllpz_s /* initialized pz list for dll */
132 Pz_t* pz; /* pz initialized for dll */
139 void* dll; /* handle */ member in struct:Pzdll_s
148 Pzdll_t* dll; /* loaded dll list */ member in struct:__anon366
/ast/src/lib/libast/misc/
H A Dgetenv.c97 HANDLE dll; local
103 if (dll = GetModuleHandle("posix.dll"))
104 posix_getenv = (char*(*)(const char*))GetProcAddress(dll, "getenv");
/ast/src/lib/librecsort/
H A Drslib.c42 void* dll; local
52 if (!(dll = dllplugin("sort", path, NiL, RS_PLUGIN_VERSION, NiL, RTLD_LAZY, path, sizeof(path))))
58 if (!(fun = (Rslib_f)dlllook(dll, symbol)))
/ast/src/lib/libcmd/
H A Dcmd.h101 void* dll; local
120 if (dll = dlopen(NiL, RTLD_LAZY))
122 if (fun = (Shbltin_f)dlsym(dll, buf + 1))
124 if (fun = (Shbltin_f)dlsym(dll, buf))
127 if (dll = dllplug(NiL, "cmd", NiL, RTLD_LAZY, NiL, 0))
129 if (fun = (Shbltin_f)dlsym(dll, buf + 1))
131 if (fun = (Shbltin_f)dlsym(dll, buf))
/ast/src/cmd/builtin/
H A Ddlls.c27 * dll scan interface
51 "[i:info?List native dll naming and location information.]"
83 void* dll; local
129 error(2, "cannot determine native dll info");
168 dll = 0;
169 else if (dll = dlopen(dle->path, RTLD_LAZY))
170 ver = dllversion(dll, NiL);
196 if (dll || (dll = dlopen(dle->path, RTLD_LAZY)))
201 if (sym = dlllook(dll, *sym
[all...]
/ast/src/cmd/ie/
H A Deditlib.c129 static void* dll; local
147 if (!(dll = (dllnext)(RTLD_LAZY)))
153 if (!dll && !(dll = dllnext(RTLD_LAZY)))
155 if (!(readfn = (Read_f)dlsym(dll, "_read")) && !(readfn = (Read_f)dlsym(dll, "read")))
/ast/src/lib/libvcodex/
H A Dvcmethod.c118 static Vcmethod_t* plugin(Void_t* dll, const char* path) argument
120 static Vcmethod_t* plugin(dll, path)
121 Void_t* dll;
128 if ((libf = (Vclib_f)dlllook(dll, VC_LIB)) && (meth = (*libf)(path)))
133 dlclose(dll);
149 Void_t *dll; local
157 if (dll = dlopen(dle->path, RTLD_LAZY))
158 plugin(dll, dle->path);
159 else errorf("dll", NiL, 1, "%s: dlopen failed: %s", dle->path, dlerror());
180 Void_t *dll; local
[all...]
/ast/src/cmd/pax/
H A Dmisc.c42 void* dll; local
50 if (dll = dlopen(dle->path, RTLD_LAZY))
52 if (dllcheck(dll, dle->path, PAX_PLUGIN_VERSION, NiL) &&
53 (init = (Paxlib_f)dlllook(dll, "pax_lib")) &&
57 dlclose(dll);
69 * dll format scan kicked in when static formats exhausted
/ast/src/cmd/3d/
H A Dsyscall3d.c57 static void* dll; variable
222 if (dll = dllnext(RTLD_LAZY))
225 if (!(cp->func = (Sysfunc_t)dlsym(dll, cp->name)) && (*cp->name != '_' || !(cp->func = (Sysfunc_t)dlsym(dll, cp->name + 1)) || !*cp->name++))
228 state.libexit = (Exitfunc_t)dlsym(dll, "exit");
467 if (dll && cp->func)
469 if (dll && cp->func && cp->index < 0)
480 if (!(cp->last = (Sysfunc_t)dlsym(dll, cp->name)) && (*cp->name != '_' || !(cp->last = (Sysfunc_t)dlsym(dll, cp->name + 1)) || !*cp->name++))
H A Dinit.c360 void* dll; local
364 if ((dll = dlopen(fs->service, RTLD_LAZY)) && (set = (Fs_set_t)dlsym(dll, "set")))
369 if (get = (Fs_get_t)dlsym(dll, "get"))
509 void* dll; local
526 if (!(dll = dlopen(arg, RTLD_LAZY)))
531 if (!(init = (Init_f)dlsym(dll, sym)))
534 dlclose(dll);
/ast/src/lib/libdss/
H A Ddssopen.c322 init(void* dll, Dsslib_t* lib, const char* path, Dssflags_t flags, Dssdisc_t* disc) argument
331 if (dll)
334 lib = (libf = (Dsslib_f)dlllook(dll, buf)) ? (*libf)(path, disc) : (Dsslib_t*)0;
364 void* dll; local
376 if (dll = dlopen(dle->path, RTLD_LAZY))
377 init(dll, NiL, dle->path, 0, disc);
/ast/src/cmd/ksh93/bltins/
H A Dtypeset.c880 void* dll; member in struct:Libcomp_s
900 int sh_addlib(Shell_t* shp, void* dll, char* name, Pathcomp_t* pp) argument
912 else if (liblist[n].dll == dll)
917 else if ((initfn = (Libinit_f)dlllook(dll, "lib_init")))
924 liblist[nlib].dll = dll;
943 return (Shbltin_f)dlllook(liblist[n].dll, sym);
1071 if(!dlete && !liblist[n].dll)
1073 if(dlete || (addr = (Shbltin_f)dlllook(liblist[n].dll,stkpt
[all...]
/ast/src/cmd/ksh93/sh/
H A Dpath.c784 void *dll; local
826 if (dll = dllplugin(SH_ID, stakptr(m), NiL, SH_PLUGIN_VERSION, NiL, RTLD_LAZY, NiL, 0))
827 sh_addlib(shp,dll,stakptr(m),oldpp);
830 if (dll = dllplug(SH_ID, stakptr(m), NiL, RTLD_LAZY, NiL, 0))
832 if (dll = dllfind(stakptr(m), NiL, RTLD_LAZY, NiL, 0))
840 if (libcmd && !dlllook(dll, "b_pids"))
842 dlclose(dll);
843 dll = 0;
846 sh_addlib(shp,dll,stakptr(m),oldpp);
849 if(dll
[all...]
/ast/src/cmd/sortlib/sync/
H A Dss.c1425 void* dll; local
1433 if (dll = dllplugin(sys[i], lib, NiL, RS_PLUGIN_VERSION, NiL, RTLD_LAZY, path, sizeof(path)))
1435 if (!dll)
1452 if (dll = dllplugin(sys[i], t, NiL, RS_PLUGIN_VERSION, NiL, RTLD_LAZY, path, sizeof(path)))
1454 if (dll)
1460 if (!dll)
1467 if (!(exitf = (Ssexit_f)dlllook(dll, fun)))
1473 if ((interceptf = (Ssintercept_f)dlllook(dll, "rs_intercept")) || (interceptf = (Ssintercept_f)dlllook(NiL, "rs_intercept")))
/ast/src/cmd/warp/
H A Dwarp.c259 void* dll; member in struct:__anon241
302 if (!state.dll)
417 if (!(state.dll = dllnext(RTLD_LAZY)))
423 if (!p->call && !(p->call = (Syscall_f)dlsym(state.dll, p->mangled)))

Completed in 51 milliseconds