Home
last modified time | relevance | path

Searched refs:modname (Results 1 – 25 of 101) sorted by relevance

12345

/external/selinux/python/sepolgen/src/sepolgen/
Dmodule.py40 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/
Dtest___all__.py24 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/
Dlibkmod-config.c40 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/
Dinit_module.c72 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 …]
Ddelete_module.c56 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()
Dtest-blacklist.c72 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/ltp/testcases/kernel/module/create_module/
Dcreate_module02.c108 char *modname; member
122 static char modname[20]; /* Name of the module */ variable
132 {modname, MODSIZE, (caddr_t) - 1, EPERM,
141 {modname, MODSIZE, (caddr_t) - 1, EEXIST,
143 {modname, SMALLMODSIZE, (caddr_t) - 1, EINVAL,
152 {modname, MAXMODSIZE, (caddr_t) - 1, ENOMEM,
176 TEST(create_module(tdat[testno].modname, in main()
222 if (create_module(modname, MODSIZE) == -1) { in setup2()
224 " for %s", modname); in setup2()
233 if (delete_module(modname) == -1) { in cleanup2()
[all …]
Dcreate_module01.c80 static char modname[20]; /* Name of the module */ variable
96 TEST(create_module(modname, MODSIZE)); in main()
105 if (delete_module(modname) != 0) { in main()
108 modname); in main()
136 if (sprintf(modname, "%s_%d", BASEMODNAME, getpid()) == -1) { in setup()
153 if (delete_module(modname) == -1) { in cleanup()
157 "entry for %s errno returned %d", modname, in cleanup()
/external/python/cpython2/Lib/plat-mac/
Dmacresource.py15 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__)
Dgensuitemodule.py474 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/
Dcorrect.txt1 modname: ext4
2 modname: balbalbalbbalbalbalbalbalbalbal
3 modname: snd_hda_intel
4 modname: snd_timer
5 modname: iTCO_wdt
/external/ltp/testcases/kernel/module/delete_module/
Ddelete_module02.c56 static char modname[20]; variable
64 char *modname; member
70 { modname, ENOENT, "nonexistent module", NULL, NULL},
75 { modname, EPERM, "non-superuser", setup1, cleanup1},
98 tdat[i].modname, 0)); in main()
145 if (sprintf(modname, "%s_%d", BASEMODNAME, getpid()) <= 0) in setup()
148 tdat[2].modname = SAFE_MMAP(cleanup, 0, 1, PROT_NONE, in setup()
/external/elfutils/tests/
Dline2addr.c45 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/cpython2/Lib/
Dpkgutil.py205 modname = inspect.getmodulename(fn)
206 if modname=='__init__' or modname in yielded:
212 if not modname and os.path.isdir(path) and '.' not in fn:
213 modname = fn
227 if modname and '.' not in modname:
228 yielded[modname] = 1
229 yield prefix + modname, ispkg
352 modname = inspect.getmodulename(fn[0])
353 if modname=='__init__':
356 if modname and '.' not in modname and modname not in yielded:
[all …]
Dpydoc.py97 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 …]
Dimputil.py263 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/
Dstatic-nodes.c62 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/skia/third_party/lua/src/
Dloadlib.c419 static int loadfunc (lua_State *L, const char *filename, const char *modname) { in loadfunc() argument
422 modname = luaL_gsub(L, modname, ".", LUA_OFSEP); in loadfunc()
423 mark = strchr(modname, *LUA_IGMARK); in loadfunc()
426 funcname = lua_pushlstring(L, modname, mark - modname); in loadfunc()
430 modname = mark + 1; /* else go ahead and try old-style name */ in loadfunc()
432 funcname = lua_pushfstring(L, LUA_POF"%s", modname); in loadfunc()
570 static void modinit (lua_State *L, const char *modname) { in modinit() argument
574 lua_pushstring(L, modname); in modinit()
576 dot = strrchr(modname, '.'); /* look for last dot in module name */ in modinit()
577 if (dot == NULL) dot = modname; in modinit()
[all …]
/external/autotest/utils/
Drun_pylint.py87 def patch_modname(modname): argument
94 if modname.startswith(ROOT_MODULE) or modname.startswith(ROOT_MODULE[:-1]):
95 modname = modname[len(ROOT_MODULE):]
96 return modname
125 node.modname = patch_modname(node.modname)
150 node.modname = patch_modname(node.modname)
/external/syslinux/com32/lua/src/
Dloadlib.c468 static int loadfunc (lua_State *L, const char *filename, const char *modname) { in loadfunc() argument
471 modname = luaL_gsub(L, modname, ".", LUA_OFSEP); in loadfunc()
472 mark = strchr(modname, *LUA_IGMARK); in loadfunc()
475 funcname = lua_pushlstring(L, modname, mark - modname); in loadfunc()
479 modname = mark + 1; /* else go ahead and try old-style name */ in loadfunc()
481 funcname = lua_pushfstring(L, LUA_POF"%s", modname); in loadfunc()
619 static void modinit (lua_State *L, const char *modname) { in modinit() argument
623 lua_pushstring(L, modname); in modinit()
625 dot = strrchr(modname, '.'); /* look for last dot in module name */ in modinit()
626 if (dot == NULL) dot = modname; in modinit()
[all …]
/external/python/cpython2/Lib/encodings/
D__init__.py93 for modname in modnames:
94 if not modname or '.' in modname:
99 mod = __import__('encodings.' + modname, fromlist=_import_tail,
151 _aliases[alias] = modname
/external/ltp/testcases/kernel/module/query_module/
Dquery_module01.c112 char *modname; member
174 TEST(query_module(tdat[testno].modname, in main()
202 char *modname; in test_functionality() local
213 modname = DUMMY_MOD; in test_functionality()
218 modname = DUMMY_MOD_DEP; in test_functionality()
254 if (strcmp(buf, modname)) { in test_functionality()
/external/python/cpython2/Lib/distutils/tests/
D__init__.py28 modname = "distutils.tests." + fn[:-3]
29 __import__(modname)
30 module = sys.modules[modname]
/external/python/cpython2/Lib/unittest/test/
D__init__.py13 modname = "unittest.test." + fn[:-3]
14 __import__(modname)
15 module = sys.modules[modname]
/external/python/cpython2/Lib/ctypes/test/
D__init__.py65 for modname in find_package_modules(package, mask):
66 if modname.split(".")[-1] in exclude:
67 skipped.append(modname)
69 print >> sys.stderr, "Skipped %s: excluded" % modname
72 mod = __import__(modname, globals(), locals(), ['*'])
74 skipped.append(modname)
76 print >> sys.stderr, "Skipped %s: %s" % (modname, detail)

12345