Download cpython_2/environment/repo/Python/dynload_dl.c from lolbench26/LoLBench: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/cpython_2/environment/repo/Python/dynload_dl.c
- Command line
-
hf download hf://datasets/lolbench26/LoLBench/cpython_2/environment/repo/Python/dynload_dl.c
-
curl -L -o dynload_dl.c https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/cpython_2/environment/repo/Python/dynload_dl.c
581 Bytes
| /* Support for dynamic loading of extension modules */ | |
| extern char *Py_GetProgramName(void); | |
| const char *_PyImport_DynLoadFiletab[] = {".o", NULL}; | |
| dl_funcptr _PyImport_FindSharedFuncptr(const char *prefix, | |
| const char *shortname, | |
| const char *pathname, FILE *fp) | |
| { | |
| char funcname[258]; | |
| PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname); | |
| return dl_loadmod(Py_GetProgramName(), pathname, funcname); | |
| } | |