Staging
v0.5.1
https://github.com/python/cpython
Revision 1278c21f5234477aab21531773d65ca7ebd1b81f authored by animalize on 26 February 2018, 18:13:51 UTC, committed by Steve Dower on 26 February 2018, 18:13:51 UTC
1 parent fbf7aac
Raw File
Tip revision: 1278c21f5234477aab21531773d65ca7ebd1b81f authored by animalize on 26 February 2018, 18:13:51 UTC
[3.6] bpo-32394: Remove some TCP options on older version Windows. (GH-5585)
Tip revision: 1278c21
dynload_dl.c

/* Support for dynamic loading of extension modules */

#include "dl.h"

#include "Python.h"
#include "importdl.h"


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);
}
back to top