Lines Matching refs:xp
29 dlobject *xp; in newdlobject() local
30 xp = PyObject_New(dlobject, &Dltype); in newdlobject()
31 if (xp == NULL) in newdlobject()
33 xp->dl_handle = handle; in newdlobject()
34 return (PyObject *)xp; in newdlobject()
38 dl_dealloc(dlobject *xp) in dl_dealloc() argument
40 if (xp->dl_handle != NULL) in dl_dealloc()
41 dlclose(xp->dl_handle); in dl_dealloc()
42 PyObject_Del(xp); in dl_dealloc()
46 dl_close(dlobject *xp) in dl_close() argument
48 if (xp->dl_handle != NULL) { in dl_close()
49 dlclose(xp->dl_handle); in dl_close()
50 xp->dl_handle = NULL; in dl_close()
57 dl_sym(dlobject *xp, PyObject *args) in dl_sym() argument
68 func = dlsym(xp->dl_handle, name); in dl_sym()
77 dl_call(dlobject *xp, PyObject *args) in dl_call() argument
98 dlsym(xp->dl_handle, PyString_AsString(name)); in dl_call()
140 dl_getattr(dlobject *xp, char *name) in dl_getattr() argument
142 return Py_FindMethod(dlobject_methods, (PyObject *)xp, name); in dl_getattr()