Home
last modified time | relevance | path

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

12345678910>>...164

/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/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/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/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 …]
DIOBinding.py184 filename = None variable in IOBinding
187 def set_filename(self, filename): argument
188 if filename and os.path.isdir(filename):
189 self.filename = None
190 self.dirname = filename
192 self.filename = filename
203 filename = self.askopenfile()
205 filename=editFile
206 if filename:
216 not self.filename and
[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/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/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/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/libcxx/utils/google-benchmark/tools/gbench/
Dutil.py15 def is_executable_file(filename): argument
21 if not os.path.isfile(filename):
23 with open(filename, 'r') as f:
40 def is_json_file(filename): argument
46 with open(filename, 'r') as f:
54 def classify_input_file(filename): argument
62 if not os.path.exists(filename):
63 err_msg = "'%s' does not exist" % filename
64 elif not os.path.isfile(filename):
65 err_msg = "'%s' does not name a file" % filename
[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/Lib/test/
Dtest_gzip.py25 filename = test_support.TESTFN variable in TestGzip
28 test_support.unlink(self.filename)
31 test_support.unlink(self.filename)
35 with gzip.GzipFile(self.filename, 'w'+mode) as f:
38 with gzip.GzipFile(self.filename, 'r'+mode) as f:
48 self.filename = unicode_filename
59 with gzip.GzipFile(self.filename, 'wb') as f:
82 with gzip.GzipFile(self.filename, 'wb') as f:
88 with gzip.GzipFile(self.filename, 'rb') as f:
94 with gzip.GzipFile(self.filename, 'r') as f:
[all …]
/external/ImageMagick/coders/
Dhtml.c212 filename[MagickPathExtent], in WriteHTMLImage() local
240 image_info->filename); in WriteHTMLImage()
255 p=strrchr(image->filename,'/'); in WriteHTMLImage()
261 url[strlen(url)+p-image->filename]='\0'; in WriteHTMLImage()
262 (void) ConcatenateMagickString(url,image->filename, in WriteHTMLImage()
263 p-image->filename+2); in WriteHTMLImage()
264 (void) CopyMagickString(image->filename,p,MagickPathExtent); in WriteHTMLImage()
270 (void) CopyMagickString(filename,image->filename,MagickPathExtent); in WriteHTMLImage()
271 AppendImageFormat("map",filename); in WriteHTMLImage()
272 GetPathComponent(filename,BasePath,basename); in WriteHTMLImage()
[all …]
/external/google-benchmark/tools/gbench/
Dutil.py15 def is_executable_file(filename): argument
21 if not os.path.isfile(filename):
23 with open(filename, mode='rb') as f:
40 def is_json_file(filename): argument
46 with open(filename, 'r') as f:
54 def classify_input_file(filename): argument
62 if not os.path.exists(filename):
63 err_msg = "'%s' does not exist" % filename
64 elif not os.path.isfile(filename):
65 err_msg = "'%s' does not name a file" % filename
[all …]
/external/antlr/antlr-3.4/runtime/Perl5/tools/
Dport.pl41 my ($filename) = @_;
43 open my $in, '<', $filename or croak "Can't open $filename: $!";
44 if (filetype($filename) =~ /^text\//xms) {
48 croak "Can't binmode $filename: $!";
54 close $in or warn "Can't close $filename: $!";
64 my ($filename) = @_;
67 if (-e $filename) {
68 $resolved_file = $filename;
73 map { File::Spec->catfile($_, $filename) }
114 my ($filename) = @_;
[all …]
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/helper/
DAbbreviator.java40 public String abbreviate(String filename) { in abbreviate() argument
41 if (filename.length() <= desiredLength) { in abbreviate()
42 return filename; in abbreviate()
45 int firstIndex = filename.indexOf(folderSeparator, invariantPrefixLength); in abbreviate()
48 return filename; in abbreviate()
51 buf.append(filename.substring(0, firstIndex + 1)); in abbreviate()
53 int nextIndex = computeNextIndex(filename, firstIndex); in abbreviate()
55 buf.append(filename.substring(nextIndex)); in abbreviate()
58 return filename; in abbreviate()
61 if (buf.length() < filename.length()) { in abbreviate()
[all …]
/external/python/cpython2/Lib/hotshot/
Dlog.py77 def get_fileno(self, filename): argument
78 filename = os.path.normcase(os.path.normpath(filename))
80 if name == filename:
103 filename, funcname = self._decode_location(fileno, lineno)
104 t = (filename, lineno, funcname)
115 filename, firstlineno, funcname = self._stack[-1]
116 return what, (filename, lineno, funcname), tdelta
119 filename = os.path.normcase(os.path.normpath(tdelta))
120 self._filemap[fileno] = filename
122 filename = self._filemap[fileno]
[all …]
/external/ltp/testcases/kernel/syscalls/swapon/
Dswapon03.c48 static int check_and_swapoff(const char *filename);
59 char *filename; member
85 TEST(ltp_syscall(__NR_swapon, swap_testfiles[0].filename, 0)); in main()
102 (__NR_swapon, swap_testfiles[1].filename, 0)); in main()
112 (__NR_swapon, swap_testfiles[2].filename, in main()
156 char filename[15]; in setup_swap() local
206 if (sprintf(filename, "swapfile%02d", j + 2) < 0) { in setup_swap()
213 make_swapfile(cleanup, filename); in setup_swap()
216 res = ltp_syscall(__NR_swapon, filename, 0); in setup_swap()
227 "swapfile: %s\n", filename); in setup_swap()
[all …]
/external/ltp/testcases/kernel/io/direct_io/
Ddiotest2.c73 char filename[LEN]; variable
144 sprintf(filename, "testdata-2.%ld", syscall(__NR_gettid)); in main()
171 strcpy(filename, optarg); in main()
182 if ((fd_w = open(filename, O_WRONLY | O_CREAT, 0666)) < 0) in main()
184 "open(%s, O_WRONLY..) failed", filename); in main()
185 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) in main()
187 "open(%s, O_DIRECT|O_RDONLY..) failed", filename); in main()
196 unlink(filename); in main()
201 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main()
203 "open(%s, O_DIRECT|O_WRONLY..) failed", filename); in main()
[all …]
/external/vboot_reference/host/lib/
Dhost_misc.c27 uint8_t* ReadFile(const char* filename, uint64_t* sizeptr) { in ReadFile() argument
32 f = fopen(filename, "rb"); in ReadFile()
34 VBDEBUG(("Unable to open file %s\n", filename)); in ReadFile()
49 VBDEBUG(("Unable to read from file %s\n", filename)); in ReadFile()
62 char* ReadFileString(char* dest, int size, const char* filename) { in ReadFileString() argument
66 f = fopen(filename, "rt"); in ReadFileString()
76 int ReadFileInt(const char* filename, unsigned* value) { in ReadFileInt() argument
80 if (!ReadFileString(buf, sizeof(buf), filename)) in ReadFileInt()
92 int ReadFileBit(const char* filename, int bitmask) { in ReadFileBit() argument
94 if (ReadFileInt(filename, &value) < 0) in ReadFileBit()
[all …]

12345678910>>...164