/ast/src/lib/libpz/ |
H A D | pzlib.c | 23 * 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 D | pzlib.h | 129 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/libdll/ |
H A D | dllplug.c | 38 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 D | dlfcn.c | 29 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...] |
H A D | dllfind.c | 41 void* dll; local 43 if ((id = error_info.id) && (dll = dllplug(id, lib, ver, flags, path, size))) 44 return dll;
|
H A D | dlllook.c | 35 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 D | dllcheck.c | 29 * 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 D | dllopen.c | 32 * with the path of the dll to be opened 40 void* dll; 72 dll = dlopen(path, mode); 77 return dll;
|
H A D | Makefile | 7 dll 1.0 :LIBRARY: dlfcn.c dllopen.c dllfind.c dllplug.c dll_lib.c \ 15 dlldefs.h :COPY: FEATURE/dll
|
H A D | dllnext.c | 43 * 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 D | dll_lib.c | 112 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);
|
/ast/src/lib/libcodex/ |
H A D | codexlist.c | 40 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 D | codexmeth.c | 38 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/cmd/builtin/ |
H A D | dlls.c | 27 * 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/lib/libcmd/ |
H A D | cmd.h | 101 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/ie/ |
H A D | ie.sh | 23 typeset env histfile show command opt prefix dll suffix ifs root path s 45 on file descriptor 0 with a dll that is preloaded at process startup 66 located on \b$PATH\b and the \bie\b dll (shared library), located 70 multiple versions of the \bie\b dll. In all cases the \bie\b script 71 handles the dll search.] 110 : find the dll root dir 119 set -A lib $root/@(bin|lib)/@(lib|)edit*([0-9]).@(dll|s[ol]*([0-9.])) 120 dll=${lib[${#lib[@]}-1]} 121 if test -f $dll 125 prefix=${dll [all...] |
H A D | editlib.c | 129 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/libast/misc/ |
H A D | getenv.c | 97 HANDLE dll; local 103 if (dll = GetModuleHandle("posix.dll")) 104 posix_getenv = (char*(*)(const char*))GetProcAddress(dll, "getenv");
|
/ast/src/lib/librecsort/ |
H A D | rslib.c | 42 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/cmd/warp/ |
H A D | warp.sh | 23 typeset env show command opt prefix dll suffix ifs root path s 65 [+?Processes are warped by intercepting system calls with a dll that is 102 located on \b$PATH\b; the \bwarp\b dll (shared library), located either 108 versions of the \bwarp\b dll. In all cases the \bwarp\b script handles 109 the dll search.] 143 : find the warp dll root dir 152 set -A lib $root/@(bin|lib)/@(lib|)warp*([0-9]).@(dll|dylib|s[ol]*([0-9.])) 153 dll=${lib[${#lib[@]}-1]} 154 if test -f $dll 158 prefix=${dll [all...] |
/ast/src/lib/libvcodex/ |
H A D | vcmethod.c | 118 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/3d/ |
H A D | syscall3d.c | 57 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++))
|
/ast/src/cmd/ksh93/sh/ |
H A D | path.c | 784 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/lib/libdss/ |
H A D | dssopen.c | 322 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 D | typeset.c | 880 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...] |