Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 5674) sorted by relevance

12345678910>>...227

/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create_common.c42 int check_fallocate(const char *filename, const int lineno, int fd, in check_fallocate() argument
49 tst_brk_(filename, lineno, TFAIL | TERRNO, in check_fallocate()
54 tst_res_(filename, lineno, TPASS, in check_fallocate()
61 int check_fallocate_fail(const char *filename, const int lineno, int fd, in check_fallocate_fail() argument
68 tst_res_(filename, lineno, TFAIL, in check_fallocate_fail()
75 tst_res_(filename, lineno, TPASS | TERRNO, in check_fallocate_fail()
82 void check_ftruncate(const char *filename, const int lineno, int fd, in check_ftruncate() argument
85 safe_ftruncate(filename, lineno, fd, length); in check_ftruncate()
87 tst_res_(filename, lineno, TPASS, "ftruncate(%d, %ld) succeeded", fd, in check_ftruncate()
91 void check_ftruncate_fail(const char *filename, const int lineno, in check_ftruncate_fail() argument
[all …]
/external/python/cpython3/Lib/
Dlinecache.py15 def getline(filename, lineno, module_globals=None): argument
16 lines = getlines(filename, module_globals)
37 def getlines(filename, module_globals=None): argument
41 if filename in cache:
42 entry = cache[filename]
44 return cache[filename][2]
47 return updatecache(filename, module_globals)
53 def checkcache(filename=None): argument
57 if filename is None:
60 if filename in cache:
[all …]
/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_new_file_test.c101 char *filename = ""; in stage_file_test() local
239 filename = "/tmp/mknod_fifo_test"; in stage_file_test()
240 show_result(mknod(filename, S_IFIFO | 0644, 0), 1); in stage_file_test()
242 unlink2(filename); in stage_file_test()
243 show_result(mknod(filename, S_IFIFO | 0644, 0), 0); in stage_file_test()
247 filename = "/dev/null"; in stage_file_test()
248 stat(filename, &sbuf); in stage_file_test()
249 snprintf(pbuffer, sizeof(pbuffer) - 1, "allow_write %s", filename); in stage_file_test()
252 fd = open(filename, O_WRONLY); in stage_file_test()
257 fd = open(filename, O_WRONLY); in stage_file_test()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/lang/
Dwpa_gui_de.ts7 <location filename="../addinterface.cpp" line="38"/>
12 <location filename="../addinterface.cpp" line="47"/>
17 <location filename="../addinterface.cpp" line="48"/>
22 <location filename="../addinterface.cpp" line="49"/>
27 <location filename="../addinterface.cpp" line="221"/>
32 <location filename="../addinterface.cpp" line="229"/>
37 <location filename="../addinterface.cpp" line="238"/>
45 <location filename="../wpagui.cpp" line="1621"/>
53 <location filename="../eventhistory.ui" line="13"/>
58 <location filename="../eventhistory.ui" line="48"/>
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/tools/
Dplaceholder.py68 self.filename = None
79 shader, self.filename = tempfile.mkstemp(
84 return self.filename
87 assert self.filename is not None
88 return self.filename
99 self.filename = None
107 temp_fd, self.filename = tempfile.mkstemp(
112 return '-Oconfig=%s' % self.filename
115 assert self.filename is not None
116 return self.filename
[all …]
/external/deqp-deps/SPIRV-Tools/test/tools/
Dplaceholder.py68 self.filename = None
79 shader, self.filename = tempfile.mkstemp(
84 return self.filename
87 assert self.filename is not None
88 return self.filename
99 self.filename = None
107 temp_fd, self.filename = tempfile.mkstemp(
112 return '-Oconfig=%s' % self.filename
115 assert self.filename is not None
116 return self.filename
[all …]
/external/doclava/src/com/google/doclava/
DDocFile.java31 public static String readFile(String filename) { in readFile() argument
33 File f = new File(filename); in readFile()
58 public static String getPathRoot(String filename) { in getPathRoot() argument
62 int langStart = filename.indexOf("/" + t + "/"); in getPathRoot()
64 int langEnd = filename.indexOf("/", langStart + 1); in getPathRoot()
65 filename = filename.substring(langEnd + 1); in getPathRoot()
69 return filename; in getPathRoot()
183 String filename = outfile; in writePage() local
187 filename = filename.replaceFirst("^en/", ""); in writePage()
191 filename = getPathRoot(filename); in writePage()
[all …]
/external/python/cpython2/Lib/
Dlinecache.py13 def getline(filename, lineno, module_globals=None): argument
14 lines = getlines(filename, module_globals)
33 def getlines(filename, module_globals=None): argument
37 if filename in cache:
38 return cache[filename][2]
41 return updatecache(filename, module_globals)
47 def checkcache(filename=None): argument
51 if filename is None:
54 if filename in cache:
55 filenames = [filename]
[all …]
Dbdb.py29 def canonic(self, filename): argument
30 if filename == "<" + filename[1:-1] + ">":
31 return filename
32 canonic = self.fncache.get(filename)
34 canonic = os.path.abspath(filename)
36 self.fncache[filename] = canonic
127 filename = self.canonic(frame.f_code.co_filename)
128 if not filename in self.breaks:
131 if not lineno in self.breaks[filename]:
135 if not lineno in self.breaks[filename]:
[all …]
/external/expat/xmlwf/
Dxmlfile.c80 processStream(const XML_Char *filename, XML_Parser parser);
83 reportError(XML_Parser parser, const XML_Char *filename) in reportError() argument
93 filename, in reportError()
98 ftprintf(stderr, T("%s: (unknown message %d)\n"), filename, code); in reportError()
104 const XML_Char *filename, void *args) in processFile() argument
109 reportError(parser, filename); in processFile()
165 const XML_Char *filename; in externalEntityRefFilemap() local
171 filename = resolveSystemId(base, systemId, &s); in externalEntityRefFilemap()
172 XML_SetBase(entParser, filename); in externalEntityRefFilemap()
173 filemapRes = filemap(filename, processFile, &args); in externalEntityRefFilemap()
[all …]
/external/python/setuptools/setuptools/tests/
Dtest_sdist.py72 def read_all_bytes(filename): argument
73 with io.open(filename, 'rb') as fp:
79 desc, filename = tempfile.mkstemp(suffix=Filenames.latin_1)
81 os.remove(filename)
176 filename = os.path.join('sdist_test', 'smörbröd.py')
179 open(filename, 'w').close()
184 mm.filelist.append(filename)
195 filename = filename.decode(fs_enc)
197 assert posix(filename) in u_contents
209 filename = os.path.join(b'sdist_test', Filenames.utf_8)
[all …]
/external/python/cpython2/Lib/idlelib/
DFileList.py17 def open(self, filename, action=None): argument
18 assert filename
19 filename = self.canonize(filename)
20 if os.path.isdir(filename):
24 "%r is a directory." % (filename,),
27 key = os.path.normcase(filename)
34 return action(filename)
36 return self.EditorWindow(self, filename, key)
38 def gotofileline(self, filename, lineno=None): argument
39 edit = self.open(filename)
[all …]
DScriptBinding.py61 filename = self.getfilename()
62 if not filename:
64 if not self.checksyntax(filename):
66 if not self.tabnanny(filename):
69 def tabnanny(self, filename): argument
70 f = open(filename, 'r')
86 def checksyntax(self, filename): argument
90 with open(filename, 'r') as f:
102 return compile(source, filename, "exec")
107 err.args = msg, (filename, lineno, offset, line)
[all …]
/external/autotest/client/site_tests/firmware_TouchMTB/tests/
Dvalidators_unittest.py55 def _test_count_tracking_id(self, filename, criteria, device): argument
56 packets = parse_tests_data(filename)
66 filename = 'two_finger_id_change.dat'
67 score = self._test_count_tracking_id(filename, '== 2', lumpy)
75 filename = 'one_finger_fast_swipe_id_split.dat'
76 score = self._test_count_tracking_id(filename, '== 1', lumpy)
84 filename = 'two_finger_fast_flick_id_split.dat'
85 score = self._test_count_tracking_id(filename, '== 2', lumpy)
95 def _test_drumroll(self, filename, criteria, device): argument
96 packets = parse_tests_data(filename)
[all …]
/external/compiler-rt/lib/sanitizer_common/scripts/
Dcpplint.py360 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
385 error(filename, linenum, 'readability/nolint', 5,
700 def Check(self, error, filename, linenum): argument
719 error(filename, linenum, 'readability/fn_size', error_level,
742 def __init__(self, filename): argument
743 self._filename = filename
852 def Error(filename, linenum, category, confidence, message): argument
878 filename, linenum, message, category, confidence))
881 filename, linenum, message, category, confidence))
884 filename, linenum, message, category, confidence))
[all …]
/external/python/cpython3/Lib/idlelib/
Dfilelist.py18 def open(self, filename, action=None): argument
19 assert filename
20 filename = self.canonize(filename)
21 if os.path.isdir(filename):
25 "%r is a directory." % (filename,),
28 key = os.path.normcase(filename)
35 return action(filename)
37 edit = self.EditorWindow(self, filename, key)
44 def gotofileline(self, filename, lineno=None): argument
45 edit = self.open(filename)
[all …]
Drunscript.py46 filename = self.getfilename()
47 if not filename:
49 if not self.checksyntax(filename):
51 if not self.tabnanny(filename):
55 def tabnanny(self, filename): argument
57 with tokenize.open(filename) as f:
73 def checksyntax(self, filename): argument
77 with open(filename, 'rb') as f:
89 return compile(source, filename, "exec")
125 filename = self.getfilename()
[all …]
/external/libvpx/libvpx/tools/
Dcpplint.py455 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
480 error(filename, linenum, 'readability/nolint', 5,
825 def Check(self, error, filename, linenum): argument
844 error(filename, linenum, 'readability/fn_size', error_level,
867 def __init__(self, filename): argument
868 self._filename = filename
977 def Error(filename, linenum, category, confidence, message): argument
1003 filename, linenum, message, category, confidence))
1006 filename, linenum, message, category, confidence))
1009 filename, linenum, message, category, confidence))
[all …]
/external/libaom/libaom/tools/
Dcpplint.py455 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
480 error(filename, linenum, 'readability/nolint', 5,
825 def Check(self, error, filename, linenum): argument
844 error(filename, linenum, 'readability/fn_size', error_level,
867 def __init__(self, filename): argument
868 self._filename = filename
977 def Error(filename, linenum, category, confidence, message): argument
1003 filename, linenum, message, category, confidence))
1006 filename, linenum, message, category, confidence))
1009 filename, linenum, message, category, confidence))
[all …]
/external/epid-sdk/example/util/src/
Dbufutil.c37 bool FileExists(char const* filename) { in FileExists() argument
39 if (!filename || !filename[0]) { in FileExists()
42 fp = fopen(filename, "rb"); in FileExists()
50 size_t GetFileSize(char const* filename) { in GetFileSize() argument
52 FILE* fp = fopen(filename, "rb"); in GetFileSize()
61 size_t GetFileSize_S(char const* filename, size_t max_size) { in GetFileSize_S() argument
62 size_t size = GetFileSize(filename); in GetFileSize_S()
81 void* NewBufferFromFile(const char* filename, size_t* size) { in NewBufferFromFile() argument
87 if (!FileExists(filename)) { in NewBufferFromFile()
88 log_error("cannot access '%s'", filename); in NewBufferFromFile()
[all …]
/external/python/cpython3/Lib/test/
Dtest_gzip.py47 filename = support.TESTFN variable in BaseTest
50 support.unlink(self.filename)
53 support.unlink(self.filename)
59 with gzip.GzipFile(self.filename, 'w'+mode) as f:
62 with gzip.GzipFile(self.filename, 'r'+mode) as f:
66 with gzip.GzipFile(self.filename, 'wb') as f:
80 filename = pathlib.Path(self.filename)
81 with gzip.GzipFile(filename, 'w') as f:
84 with gzip.GzipFile(filename, 'a') as f:
86 with gzip.GzipFile(filename) as f:
[all …]
/external/iptables/
Diptables-test.py42 def print_error(reason, filename=None, lineno=None): argument
46 print (filename + ": " + Colors.RED + "ERROR" +
50 def delete_rule(iptables, rule, filename, lineno): argument
55 ret = execute_cmd(cmd, filename, lineno)
58 print_error(reason, filename, lineno)
64 def run_test(iptables, rule, rule_save, res, filename, lineno): argument
79 ret = execute_cmd(cmd, filename, lineno)
87 print_error(reason, filename, lineno)
95 print_error(reason, filename, lineno)
96 delete_rule(iptables, rule, filename, lineno)
[all …]
/external/ppp/pppd/plugins/radius/
Dconfig.c53 static int set_option_str(char *filename, int line, OPTION *option, char *p) in set_option_str() argument
63 static int set_option_int(char *filename, int line, OPTION *option, char *p) in set_option_int() argument
68 error("%s: line %d: bogus option value", filename, line); in set_option_int()
83 static int set_option_srv(char *filename, int line, OPTION *option, char *p) in set_option_srv() argument
91 error("%s: line %d: bogus option value", filename, line); in set_option_srv()
120 error("%s: line %d: no default port for %s", filename, line, option->name); in set_option_srv()
133 static int set_option_auo(char *filename, int line, OPTION *option, char *p) in set_option_auo() argument
138 warn("%s: line %d: bogus option value", filename, line); in set_option_auo()
155 error("%s: auth_order: unknown keyword: %s", filename, p); in set_option_auo()
167 error("%s: auth_order: unknown or unexpected keyword: %s", filename, p); in set_option_auo()
[all …]
/external/python/cpython2/Demo/scripts/
Dupdate.py17 def __init__(self, filename): argument
18 self.filename = filename
21 self.lines = open(filename, 'r').readlines()
23 print '*** Can\'t open "%s":' % filename, msg
26 print 'diffing', self.filename
30 print 'no changes to', self.filename
33 os.rename(self.filename, self.filename + '~')
34 fp = open(self.filename, 'w')
36 print '*** Can\'t rewrite "%s":' % self.filename, msg
38 print 'writing', self.filename
[all …]
/external/google-styleguide/cpplint/
Dcpplint.py577 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
605 error(filename, linenum, 'readability/nolint', 5,
1053 def Check(self, error, filename, linenum): argument
1075 error(filename, linenum, 'readability/fn_size', error_level,
1098 def __init__(self, filename): argument
1099 self._filename = filename
1210 def Error(filename, linenum, category, confidence, message): argument
1236 filename, linenum, category, message, confidence))
1239 filename, linenum, message, category, confidence))
1242 filename, linenum, message, category, confidence))
[all …]

12345678910>>...227