/external/python/cpython3/Lib/test/ |
D | test___all__.py | 16 def check_all(self, modname): argument 23 exec("import %s" % modname, names) 28 raise FailedImport(modname) 29 if not hasattr(sys.modules[modname], "__all__"): 30 raise NoAll(modname) 32 with self.subTest(module=modname): 34 exec("from %s import *" % modname, names) 38 modname, e.__class__.__name__, e)) 44 all_list = sys.modules[modname].__all__ 46 self.assertCountEqual(all_set, all_list, "in module {}".format(modname)) [all …]
|
D | test_file_eintr.py | 43 self.modname) 184 modname = '_io' variable in CTestFileIOSignalInterrupt 187 modname = '_pyio' variable in PyTestFileIOSignalInterrupt 195 self.modname) 206 modname = '_io' variable in CTestBufferedIOSignalInterrupt 209 modname = '_pyio' variable in PyTestBufferedIOSignalInterrupt 218 self.modname) 245 modname = '_io' variable in CTestTextIOSignalInterrupt 248 modname = '_pyio' variable in PyTestTextIOSignalInterrupt
|
/external/selinux/python/sepolgen/src/sepolgen/ |
D | module.py | 40 def is_valid_name(modname): argument 43 m = re.findall(r"[^a-zA-Z0-9_\-\.]", modname) 44 if len(m) == 0 and modname[0].isalpha(): 50 def __init__(self, modname): argument 51 self.modname = modname 58 return self.dirname + "/" + self.modname + ".te" 61 return self.dirname + "/" + self.modname + ".fc" 64 return self.dirname + "/" + self.modname + ".if" 67 return self.dirname + "/" + self.modname + ".pp" 73 self.dirname = parent_dirname + "/" + self.modname [all …]
|
/external/python/cpython2/Lib/test/ |
D | test___all__.py | 24 def check_all(self, modname): argument 29 exec "import %s" % modname in names 34 raise FailedImport(modname) 35 if not hasattr(sys.modules[modname], "__all__"): 36 raise NoAll(modname) 39 exec "from %s import *" % modname in names 43 modname, e.__class__.__name__, e)) 47 all = set(sys.modules[modname].__all__) 90 for path, modname in self.walk_modules(lib_dir, ""): 91 m = modname [all …]
|
/external/kmod/libkmod/ |
D | libkmod-config.c | 40 char modname[]; member 45 char modname[]; member 50 char modname[]; member 73 return alias->modname; in kmod_alias_get_modname() 83 return alias->modname; in kmod_option_get_modname() 93 return alias->modname; in kmod_command_get_modname() 114 const char *modname, in kmod_config_add_command() argument 121 size_t modnamelen = strlen(modname) + 1; in kmod_config_add_command() 124 DBG(config->ctx, "modname='%s' cmd='%s %s'\n", modname, command_name, in kmod_config_add_command() 132 memcpy(cmd->modname, modname, modnamelen); in kmod_config_add_command() [all …]
|
/external/kmod/testsuite/ |
D | init_module.c | 72 const char *modname; in parse_retcodes() local 78 modname = p; in parse_retcodes() 79 if (modname == NULL || modname[0] == '\0') in parse_retcodes() 83 if (modname[modnamelen] != ':') in parse_retcodes() 86 p = modname + modnamelen + 1; in parse_retcodes() 108 memcpy(mod->name, modname, modnamelen); in parse_retcodes() 150 static int create_sysfs_files(const char *modname) in create_sysfs_files() argument 157 strcpy(buf + len, modname); in create_sysfs_files() 158 len += strlen(modname); in create_sysfs_files() 166 static struct mod *find_module(struct mod *_modules, const char *modname) in find_module() argument [all …]
|
D | delete_module.c | 56 const char *modname; in parse_retcodes() local 62 modname = p; in parse_retcodes() 63 if (modname == NULL || modname[0] == '\0') in parse_retcodes() 67 if (modname[modnamelen] != ':') in parse_retcodes() 70 p = modname + modnamelen + 1; in parse_retcodes() 93 memcpy(mod->name, modname, modnamelen); in parse_retcodes() 102 static struct mod *find_module(struct mod *_modules, const char *modname) in find_module() argument 107 if (streq(mod->name, modname)) in find_module() 146 long delete_module(const char *modname, unsigned int flags) in delete_module() argument 151 mod = find_module(modules, modname); in delete_module()
|
D | test-blacklist.c | 72 const char *modname; in blacklist_1() local 74 modname = kmod_module_get_name(mod); in blacklist_1() 75 if (streq("pcspkr", modname) || streq("floppy", modname)) in blacklist_1()
|
/external/python/cpython3/Lib/ |
D | pkgutil.py | 158 modname = inspect.getmodulename(fn) 159 if modname=='__init__' or modname in yielded: 165 if not modname and os.path.isdir(path) and '.' not in fn: 166 modname = fn 180 if modname and '.' not in modname: 181 yielded[modname] = 1 182 yield prefix + modname, ispkg 241 modname = inspect.getmodulename(fn) 242 if modname=='__init__' or modname in yielded: 248 if not modname and os.path.isdir(path) and '.' not in fn: [all …]
|
D | pydoc.py | 106 def classname(object, modname): argument 109 if object.__module__ != modname: 557 def classlink(self, object, modname): argument 562 module.__name__, name, classname(object, modname)) 563 return classname(object, modname) 631 def formattree(self, tree, modname, parent=None): argument 638 result = result + self.classlink(c, modname) 642 parents.append(self.classlink(base, modname)) 647 entry, modname, c) 702 key, modname = base.__name__, base.__module__ [all …]
|
/external/ltp/testcases/kernel/syscalls/delete_module/ |
D | delete_module02.c | 39 static char modname[20]; variable 42 char *modname; member 48 { modname, ENOENT, "nonexistent module", 0}, 52 { modname, EPERM, "non-superuser", 1}, 59 if (!tc->modname) in do_delete_module() 60 tc->modname = tst_get_bad_addr(NULL); in do_delete_module() 66 TEST(tst_syscall(__NR_delete_module, tc->modname, 0)); in do_delete_module() 88 sprintf(modname, "%s_%d", BASEMODNAME, getpid()); in setup()
|
/external/python/cpython2/Lib/plat-mac/ |
D | macresource.py | 15 def need(restype, resid, filename=None, modname=None): argument 24 if modname is None and filename is None: 44 if '.' in modname: 45 filename = modname.split('.')[-1] + '.rsrc' 47 filename = modname + '.rsrc' 51 if modname == '__main__': 54 if modname in sys.modules: 55 mod = sys.modules[modname] 117 need('Estr', 1, filename="errors.rsrc", modname=__name__)
|
D | gensuitemodule.py | 474 code, modname, precompinfo = compiler.precompilesuite() 478 suiteinfo = suite, pathname, modname 479 suitelist.append((code, modname)) 494 for code, modname in suitelist: 495 fp.write("import %s\n" % modname) 497 for code, modname in suitelist: 498 fp.write(" '%s' : %s,\n"%(ascii(code), modname)) 501 for code, modname in suitelist: 502 fp.write(" '%s' : ('%s.%s', '%s'),\n"%(ascii(code), packagename, modname, modname)) 504 for code, modname in suitelist: [all …]
|
/external/kmod/testsuite/rootfs-pristine/test-new-module/from_name/ |
D | correct.txt | 1 modname: ext4 2 modname: balbalbalbbalbalbalbalbalbalbal 3 modname: snd_hda_intel 4 modname: snd_timer 5 modname: iTCO_wdt
|
/external/elfutils/tests/ |
D | line2addr.c | 45 const char *modname = dwfl_module_info (mod, NULL, NULL, NULL, in print_address() local 49 printf ("%s(%s)+%#" PRIx64, modname, secname, address); in print_address() 51 printf ("%s+%#" PRIx64, modname, address); in print_address() 70 const char *modname, Dwarf_Addr base __attribute__ ((unused)), in handle_module() argument 91 if (modname[0] != '\0') in handle_module() 92 printf (" (%s:", modname); in handle_module() 94 printf (" %s%s:%d", modname[0] != '\0' ? "" : "(", in handle_module() 98 if (modname[0] != '\0' in handle_module()
|
/external/python/cpython3/Python/ |
D | makeopcodetargets.py | 15 def find_module(modname): argument 20 return imp.load_module(modname, *imp.find_module(modname, [modpath])) 22 def find_module(modname): argument 26 os.path.dirname(os.path.dirname(__file__)), "Lib", modname + ".py") 27 return SourceFileLoader(modname, modpath).load_module()
|
/external/u-boot/scripts/ |
D | Makefile.build | 158 modname = $(basetarget) 160 $(multi-objs-m) : modname = $(modname-multi) 161 $(multi-objs-m:.o=.i) : modname = $(modname-multi) 162 $(multi-objs-m:.o=.s) : modname = $(modname-multi) 163 $(multi-objs-m:.o=.lst) : modname = $(modname-multi) 164 $(multi-objs-y) : modname = $(modname-multi) 165 $(multi-objs-y:.o=.i) : modname = $(modname-multi) 166 $(multi-objs-y:.o=.s) : modname = $(modname-multi) 167 $(multi-objs-y:.o=.lst) : modname = $(modname-multi)
|
/external/python/cpython2/Lib/ |
D | pkgutil.py | 202 modname = inspect.getmodulename(fn) 203 if modname=='__init__' or modname in yielded: 209 if not modname and os.path.isdir(path) and '.' not in fn: 210 modname = fn 224 if modname and '.' not in modname: 225 yielded[modname] = 1 226 yield prefix + modname, ispkg 350 modname = inspect.getmodulename(fn[0]) 351 if modname=='__init__': 354 if modname and '.' not in modname and modname not in yielded: [all …]
|
D | pydoc.py | 97 def classname(object, modname): argument 100 if object.__module__ != modname: 533 def classlink(self, object, modname): argument 538 module.__name__, name, classname(object, modname)) 539 return classname(object, modname) 603 def formattree(self, tree, modname, parent=None): argument 610 result = result + self.classlink(c, modname) 614 parents.append(self.classlink(base, modname)) 619 entry, modname, c) 677 key, modname = base.__name__, base.__module__ [all …]
|
D | imputil.py | 263 def _import_one(self, parent, modname, fqname): argument 273 result = self.get_code(parent, modname, fqname) 281 setattr(parent, modname, module) 370 def get_code(self, parent, modname, fqname): argument 505 def get_code(self, parent, modname, fqname): argument 511 if imp.is_builtin(modname): 513 elif imp.is_frozen(modname): 520 module = imp.load_module(modname, None, modname, ('', '', type)) 542 def get_code(self, parent, modname, fqname): argument 550 code = self._import_pathname(_os_path_join(submodule_path, modname), fqname) [all …]
|
/external/kmod/tools/ |
D | static-nodes.c | 62 static int write_human(FILE *out, char modname[], char devname[], char type, unsigned int maj, unsi… in write_human() argument 72 modname, devname, in write_human() 86 static int write_tmpfiles(FILE *out, char modname[], char devname[], char type, unsigned int maj, u… in write_tmpfiles() argument 113 static int write_devname(FILE *out, char modname[], char devname[], char type, unsigned int maj, un… in write_devname() argument 117 ret = fprintf(out, "%s %s %c%u:%u\n", modname, devname, type, maj, min); in write_devname() 245 char modname[PATH_MAX]; in do_static_nodes() local 254 matches = sscanf(buf, "%s %s %c%u:%u", modname, devname, in do_static_nodes() 262 format->write(out, modname, devname, type, maj, min); in do_static_nodes()
|
/external/autotest/utils/ |
D | run_pylint.py | 67 def patch_modname(modname): argument 74 if modname.startswith(ROOT_MODULE) or modname.startswith(ROOT_MODULE[:-1]): 75 modname = modname[len(ROOT_MODULE):] 76 return modname 106 node.modname = patch_modname(node.modname) 131 node.modname = patch_modname(node.modname)
|
/external/lua/src/ |
D | loadlib.c | 512 static int loadfunc (lua_State *L, const char *filename, const char *modname) { in loadfunc() argument 515 modname = luaL_gsub(L, modname, ".", LUA_OFSEP); in loadfunc() 516 mark = strchr(modname, *LUA_IGMARK); in loadfunc() 519 openfunc = lua_pushlstring(L, modname, mark - modname); in loadfunc() 523 modname = mark + 1; /* else go ahead and try old-style name */ in loadfunc() 525 openfunc = lua_pushfstring(L, LUA_POF"%s", modname); in loadfunc() 658 static void modinit (lua_State *L, const char *modname) { in modinit() argument 662 lua_pushstring(L, modname); in modinit() 664 dot = strrchr(modname, '.'); /* look for last dot in module name */ in modinit() 665 if (dot == NULL) dot = modname; in modinit() [all …]
|
/external/python/cpython2/Lib/encodings/ |
D | __init__.py | 93 for modname in modnames: 94 if not modname or '.' in modname: 99 mod = __import__('encodings.' + modname, fromlist=_import_tail, 151 _aliases[alias] = modname
|
/external/python/cpython3/Lib/encodings/ |
D | __init__.py | 93 for modname in modnames: 94 if not modname or '.' in modname: 99 mod = __import__('encodings.' + modname, fromlist=_import_tail, 150 _aliases[alias] = modname
|