Home
last modified time | relevance | path

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

12345678910>>...235

/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create_common.c32 int check_fallocate(const char *filename, const int lineno, int fd, in check_fallocate() argument
39 tst_brk_(filename, lineno, TFAIL | TERRNO, in check_fallocate()
44 tst_res_(filename, lineno, TPASS, in check_fallocate()
51 int check_fallocate_fail(const char *filename, const int lineno, int fd, in check_fallocate_fail() argument
58 tst_res_(filename, lineno, TFAIL, in check_fallocate_fail()
65 tst_res_(filename, lineno, TPASS | TERRNO, in check_fallocate_fail()
72 void check_ftruncate(const char *filename, const int lineno, int fd, in check_ftruncate() argument
75 safe_ftruncate(filename, lineno, fd, length); in check_ftruncate()
77 tst_res_(filename, lineno, TPASS, "ftruncate(%d, %ld) succeeded", fd, in check_ftruncate()
81 void check_ftruncate_fail(const char *filename, const int lineno, in check_ftruncate_fail() argument
[all …]
/external/python/cpython3/Lib/
Dlinecache.py26 def getline(filename, lineno, module_globals=None): argument
30 lines = getlines(filename, module_globals)
36 def getlines(filename, module_globals=None): argument
40 if filename in cache:
41 entry = cache[filename]
43 return cache[filename][2]
46 return updatecache(filename, module_globals)
52 def checkcache(filename=None): argument
56 if filename is None:
58 elif filename in cache:
[all …]
/external/protobuf/benchmarks/util/
Dresult_parser.py14 def __get_data_size(filename): argument
15 if filename[0] != '/':
16 filename = os.path.dirname(os.path.abspath(__file__)) + "/../" + filename
17 if filename in __file_size_map:
18 return __file_size_map[filename]
21 open(filename, "rb").read())
27 __file_size_map[filename] = (size, 1.0 * size / count)
58 def __parse_cpp_result(filename): argument
59 if filename == "":
61 if filename[0] != '/':
[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/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/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/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/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/libcups/scheduler/
Dfile.c36 char filename[1024]; /* Filename */ in cupsdCleanFiles() local
55 if (pattern && fnmatch(pattern, dent->filename, 0)) in cupsdCleanFiles()
58 snprintf(filename, sizeof(filename), "%s/%s", path, dent->filename); in cupsdCleanFiles()
62 cupsdCleanFiles(filename, pattern); in cupsdCleanFiles()
64 status = rmdir(filename); in cupsdCleanFiles()
67 status = cupsdUnlinkOrRemoveFile(filename); in cupsdCleanFiles()
70 cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to remove \"%s\" - %s", filename, in cupsdCleanFiles()
86 const char *filename) /* I - Filename */ in cupsdCloseCreatedConfFile() argument
101 filename, strerror(errno)); in cupsdCloseCreatedConfFile()
109 filename, strerror(errno)); in cupsdCloseCreatedConfFile()
[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/expat/xmlwf/
Dxmlfile.c78 static int processStream(const XML_Char *filename, XML_Parser parser);
81 reportError(XML_Parser parser, const XML_Char *filename) { in reportError() argument
88 filename, XML_GetErrorLineNumber(parser), in reportError()
91 ftprintf(stderr, T("%s: (unknown message %d)\n"), filename, code); in reportError()
96 processFile(const void *data, size_t size, const XML_Char *filename, in processFile() argument
101 reportError(parser, filename); in processFile()
150 const XML_Char *filename; in externalEntityRefFilemap() local
157 filename = resolveSystemId(base, systemId, &s); in externalEntityRefFilemap()
158 XML_SetBase(entParser, filename); in externalEntityRefFilemap()
159 filemapRes = filemap(filename, processFile, &args); in externalEntityRefFilemap()
[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/mesa3d/.gitlab-ci/tracie/tests/
Dtest.py25 def write_to(content, filename): argument
26 with open(filename, 'w') as f:
30 def read_from(filename): argument
31 with open(filename) as f:
91 def check_results_yaml_content(filename, expectations): argument
104 content = read_from(filename)
108 logger.error("Expectation not found in %s: %s", filename, e)
123 filename = "./tests/traces.yml"
124 content = read_from(filename)
127 write_to(content, 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 …]
Diomenu.py66 filename = None variable in IOBinding
69 def set_filename(self, filename): argument
70 if filename and os.path.isdir(filename):
71 self.filename = None
72 self.dirname = filename
74 self.filename = filename
85 filename = self.askopenfile()
87 filename=editFile
88 if filename:
98 not self.filename and
[all …]
/external/flac/src/metaflac/
Doperations_shorthand_vorbiscomment.c35 static FLAC__bool remove_vc_all(const char *filename, FLAC__StreamMetadata *block, FLAC__bool *need…
36 static FLAC__bool remove_vc_field(const char *filename, FLAC__StreamMetadata *block, const char *fi…
37 static FLAC__bool remove_vc_firstfield(const char *filename, FLAC__StreamMetadata *block, const cha…
38 static FLAC__bool set_vc_field(const char *filename, FLAC__StreamMetadata *block, const Argument_Vc…
39 static FLAC__bool import_vc_from(const char *filename, FLAC__StreamMetadata *block, const Argument_…
40 static FLAC__bool export_vc_to(const char *filename, FLAC__StreamMetadata *block, const Argument_St…
42 FLAC__bool do_shorthand_operation__vorbis_comment(const char *filename, FLAC__bool prefix_with_file… in do_shorthand_operation__vorbis_comment() argument
68 …error_with_chain_status(chain, "%s: ERROR: adding new VORBIS_COMMENT block to metadata", filename); in do_shorthand_operation__vorbis_comment()
85 …write_vc_field(prefix_with_filename? filename : 0, &block->data.vorbis_comment.vendor_string, raw,… in do_shorthand_operation__vorbis_comment()
88 …write_vc_fields(prefix_with_filename? filename : 0, operation->argument.vc_field_name.value, block… in do_shorthand_operation__vorbis_comment()
[all …]
/external/pdfium/samples/
Dpdfium_test_write_helper.cc195 char filename[256]; in WritePpm() local
196 snprintf(filename, sizeof(filename), "%s.%d.ppm", pdf_name, num); in WritePpm()
197 FILE* fp = fopen(filename, "wb"); in WritePpm()
219 fprintf(stderr, "Failed to write to %s\n", filename); in WritePpm()
222 return std::string(filename); in WritePpm()
226 char filename[256]; in WriteText() local
228 snprintf(filename, sizeof(filename), "%s.%d.txt", pdf_name, num); in WriteText()
230 static_cast<size_t>(chars_formatted) >= sizeof(filename)) { in WriteText()
231 fprintf(stderr, "Filename %s is too long\n", filename); in WriteText()
235 FILE* fp = fopen(filename, "w"); in WriteText()
[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/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 …]

12345678910>>...235