Lines Matching refs:NULL

67 	if ((str = elf_strptr(dyn->elf, dyn->dynstr, n->nameoff)) == NULL) {
94 if ((str = elf_strptr(dyn->elf, dyn->dynstr, n->nameoff)) == NULL) {
99 if ((ent = Py_BuildValue("[s,O]", str, pverlist)) == NULL) {
119 if ((str = elf_strptr(dyn->elf, dyn->dynstr, n->nameoff)) == NULL) {
171 static char *kwlist[] = {"f", "elfhash", "sha256", "sha512t_256", NULL};
201 return (NULL);
209 return (NULL);
235 hdrinfo_t *hi = NULL;
236 PyObject *pdict = NULL;
238 return (NULL);
241 if ((hi = getheaderinfo(fd)) == NULL) {
249 if ((ent = Py_BuildValue(valstr, val)) == NULL) { \
267 if (hi != NULL) {
296 hashinfo_t *h = NULL;
297 PyObject *pdict = NULL;
298 PyObject *plist = NULL;
302 return (NULL);
306 hargs.sha256, hargs.sha512t_256)) == NULL) {
310 if ((pdict = PyDict_New()) == NULL) {
331 if (plist == NULL ||
374 if (h != NULL) {
411 dyninfo_t *dyn = NULL;
412 PyObject *ent = NULL;
413 PyObject *pdep = NULL;
414 PyObject *pdef = NULL;
415 PyObject *pdict = NULL;
419 return (NULL);
422 if ((dyn = getdynamic(fd)) == NULL) {
426 if ((pdict = PyDict_New()) == NULL) {
431 if ((pdep = PyList_New(0)) == NULL) {
446 if ((pdef = PyList_New(0)) == NULL)
458 dyn->elf, dyn->dynstr, dyn->def)) == NULL) {
473 dyn->elf, dyn->dynstr, dyn->runpath)) == NULL) {
485 if (dyn != NULL) {
505 { NULL, NULL }
512 NULL,
524 if ((m = PyModule_Create(&elfmodule)) == NULL) {
526 if ((m = Py_InitModule("elf", methods)) == NULL) {
528 return (NULL);
531 ElfError = PyErr_NewException("pkg.elf.ElfError", NULL, NULL);
532 if (ElfError == NULL) {
533 return (NULL);