Home
last modified time | relevance | path

Searched refs:filename (Results 1 - 25 of 2636) sorted by relevance

12345678910>>...106

/third_party/ltp/testcases/kernel/syscalls/memfd_create/
H A 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, cons argument
96 get_mfd_all_available_flags(const char *filename, const int lineno) get_mfd_all_available_flags() argument
118 mfd_flags_available(const char *filename, const int lineno, unsigned int flags) mfd_flags_available() argument
136 check_mfd_new(const char *filename, const int lineno, const char *name, loff_t sz, int flags) check_mfd_new() argument
155 check_mfd_fail_new(const char *filename, const int lineno, const char *name, int flags) check_mfd_fail_new() argument
235 check_mfd_fail_add_seals(const char *filename, const int lineno, int fd, int seals) check_mfd_fail_add_seals() argument
248 check_mfd_size(const char *filename, const int lineno, int fd, size_t size) check_mfd_size() argument
264 check_mfd_open(const char *filename, const int lineno, int fd, int flags, mode_t mode) check_mfd_open() argument
280 check_mfd_fail_open(const char *filename, const int lineno, int fd, int flags, mode_t mode) check_mfd_fail_open() argument
300 check_mfd_readable(const char *filename, const int lineno, int fd) check_mfd_readable() argument
322 check_mfd_writeable(const char *filename, const int lineno, int fd) check_mfd_writeable() argument
363 check_mfd_non_writeable(const char *filename, const int lineno, int fd) check_mfd_non_writeable() argument
406 check_mfd_shrinkable(const char *filename, const int lineno, int fd) check_mfd_shrinkable() argument
420 check_mfd_non_shrinkable(const char *filename, const int lineno, int fd) check_mfd_non_shrinkable() argument
427 check_mfd_growable(const char *filename, const int lineno, int fd) check_mfd_growable() argument
436 check_mfd_non_growable(const char *filename, const int lineno, int fd) check_mfd_non_growable() argument
442 check_mfd_growable_by_write(const char *filename, const int lineno, int fd) check_mfd_growable_by_write() argument
460 check_mfd_non_growable_by_write(const char *filename, const int lineno, int fd) check_mfd_non_growable_by_write() argument
[all...]
/third_party/python/Lib/
H A Dlinecache.py3 This is intended to read lines from modules imported -- hence if a filename
26 def getline(filename, lineno, module_globals=None):
30 lines = getlines(filename, module_globals)
36 def getlines(filename, module_globals=None):
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):
56 if filename i
[all...]
H A Dbdb.py39 def canonic(self, filename):
40 """Return canonical form of filename.
47 if filename == "<" + filename[1:-1] + ">":
48 return filename
49 canonic = self.fncache.get(filename)
51 canonic = os.path.abspath(filename)
53 self.fncache[filename] = canonic
223 filename = self.canonic(frame.f_code.co_filename)
224 if filename no
[all...]
/third_party/python/Tools/c-analyzer/c_parser/
H A Dsource.py5 def resolve(source, filename):
7 return _resolve_filename(source, filename)
13 if not filename:
14 filename = None
15 elif not isinstance(filename, str):
16 raise TypeError(f'filename should be str (or None), got {filename!r}')
18 filename, _ = _resolve_filename(filename)
19 return source, filename
[all...]
/third_party/protobuf/benchmarks/util/
H A Dresult_parser.py14 def __get_data_size(filename):
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):
59 if filename
[all...]
/third_party/ltp/testcases/kernel/security/tomoyo/
H A 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_WRONL in stage_file_test()
[all...]
/third_party/python/Tools/c-analyzer/c_common/
H A Dfsutil.py19 filename = old
21 filename = getattr(old, 'name', None)
22 if not filename:
25 backup = f'{filename}.bak'
27 shutil.copyfile(filename, backup)
29 if exc.filename != filename:
38 def fix_filename(filename, relroot=USE_CWD, *,
42 """Return a normalized, absolute-path copy of the given filename."""
44 return os.path.abspath(filename)
[all...]
/third_party/skia/third_party/externals/spirv-tools/test/tools/
H A 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...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/tools/
H A 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...]
/third_party/spirv-tools/test/tools/
H A 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...]
/third_party/skia/third_party/externals/expat/expat/xmlwf/
H A Dxmlfile.c84 static int processStream(const XML_Char *filename, XML_Parser parser);
87 reportError(XML_Parser parser, const XML_Char *filename) { in reportError() argument
94 filename, XML_GetErrorLineNumber(parser), in reportError()
97 ftprintf(stderr, T("%s: (unknown message %d)\n"), filename, code); in reportError()
102 processFile(const void *data, size_t size, const XML_Char *filename, in processFile() argument
107 reportError(parser, filename); in processFile()
156 const XML_Char *filename; in externalEntityRefFilemap() local
163 filename = resolveSystemId(base, systemId, &s); in externalEntityRefFilemap()
164 XML_SetBase(entParser, filename); in externalEntityRefFilemap()
165 filemapRes = filemap(filename, processFil in externalEntityRefFilemap()
184 processStream(const XML_Char *filename, XML_Parser parser) processStream() argument
233 const XML_Char *filename; externalEntityRefStream() local
246 XML_ProcessFile(XML_Parser parser, const XML_Char *filename, unsigned flags) XML_ProcessFile() argument
[all...]
/third_party/libsnd/tests/
H A Derror_test.c76 const char *filename = "error.aiff" ; in error_value_test() local
81 print_test_name ("error_value_test", filename) ; in error_value_test()
83 dump_data_to_file (filename, aiff_data, sizeof (aiff_data)) ; in error_value_test()
87 file = sf_open (filename, SFM_READ, &sfinfo) ; in error_value_test()
98 remove (filename) ; in error_value_test()
104 no_file_test (const char * filename) in no_file_test() argument
108 print_test_name (__func__, filename) ; in no_file_test()
110 unlink (filename) ; in no_file_test()
113 sndfile = sf_open (filename, SFM_READ, &sfinfo) ; in no_file_test()
117 unlink (filename) ; in no_file_test()
122 zero_length_test(const char *filename) zero_length_test() argument
148 bad_wav_test(const char * filename) bad_wav_test() argument
178 wav_list_recover_test(const char * filename) wav_list_recover_test() argument
219 const char *filename = "error_close.wav" ; error_close_test() local
265 { const char *filename = "unrecognised.bin" ; unrecognised_test() local
[all...]
H A Dcpp_test.cc38 LPCWSTR filename = L"wchar_test.wav" ; in ceeplusplus_wchar_test()
44 SndfileHandle file (filename, SFM_WRITE, SF_FORMAT_WAV | SF_FORMAT_PCM_16, 2, 44100) ; in ceeplusplus_wchar_test()
52 ** wchar_t * filename. in ceeplusplus_wchar_test()
55 GetFileAttributesW (filename) == INVALID_FILE_ATTRIBUTES, in ceeplusplus_wchar_test()
61 DeleteFileW (filename) ; in ceeplusplus_wchar_test()
70 create_file (const char * filename, int format) in create_file() argument
78 file = SndfileHandle (filename, SFM_WRITE, format, 2, 48000) ; in create_file()
85 file.setString (SF_STR_TITLE, filename) ; in create_file()
103 check_title (const SndfileHandle & file, const char * filename) in check_title() argument
109 { printf ("\n\n%s %d : Error : No title for %s.\n\n", __func__, __LINE__, filename) ; in check_title()
122 read_file(const char * filename, int format) read_file() argument
207 ceeplusplus_test(const char *filename, int format) ceeplusplus_test() argument
221 const char * filename = "bad_file_name.wav" ; ceeplusplus_extra_test() local
249 ceeplusplus_rawhandle_test(const char *filename) ceeplusplus_rawhandle_test() argument
260 ceeplusplus_takeOwnership_test(const char *filename) ceeplusplus_takeOwnership_test() argument
288 ceeplusplus_handle_test(const char *filename, int format) ceeplusplus_handle_test() argument
[all...]
/third_party/node/deps/openssl/openssl/crypto/
H A Do_fopen.c38 FILE *openssl_fopen(const char *filename, const char *mode) in openssl_fopen() argument
42 int sz, len_0 = (int)strlen(filename) + 1; in openssl_fopen()
46 * Basically there are three cases to cover: a) filename is in openssl_fopen()
50 * If filename is pure ASCII or real UTF-8 encoded string, in openssl_fopen()
52 * filename is locale-ized string, chances are that in openssl_fopen()
58 filename, len_0, NULL, 0)) > 0 || in openssl_fopen()
61 filename, len_0, NULL, 0)) > 0) in openssl_fopen()
67 filename, len_0, wfilename, sz) && in openssl_fopen()
74 * UTF-8 decode succeeded, but no file, filename in openssl_fopen()
77 file = fopen(filename, mod in openssl_fopen()
121 openssl_fopen(const char *filename, const char *mode) openssl_fopen() argument
[all...]
/third_party/openssl/crypto/
H A Do_fopen.c38 FILE *openssl_fopen(const char *filename, const char *mode) in openssl_fopen() argument
42 int sz, len_0 = (int)strlen(filename) + 1; in openssl_fopen()
46 * Basically there are three cases to cover: a) filename is in openssl_fopen()
50 * If filename is pure ASCII or real UTF-8 encoded string, in openssl_fopen()
52 * filename is locale-ized string, chances are that in openssl_fopen()
58 filename, len_0, NULL, 0)) > 0 || in openssl_fopen()
61 filename, len_0, NULL, 0)) > 0) in openssl_fopen()
67 filename, len_0, wfilename, sz) && in openssl_fopen()
74 * UTF-8 decode succeeded, but no file, filename in openssl_fopen()
77 file = fopen(filename, mod in openssl_fopen()
121 openssl_fopen(const char *filename, const char *mode) openssl_fopen() argument
[all...]
/third_party/python/Lib/idlelib/
H A Dfilelist.py18 def open(self, filename, action=None):
19 assert filename
20 filename = self.canonize(filename)
21 if os.path.isdir(filename):
22 # This can happen when bad filename is passed on command line:
25 f"{filename!r} is a directory.",
28 key = os.path.normcase(filename)
35 return action(filename)
37 edit = self.EditorWindow(self, filename, ke
[all...]
H A Diomenu.py63 filename = None variable in IOBinding
66 def set_filename(self, filename):
67 if filename and os.path.isdir(filename):
68 self.filename = None
69 self.dirname = filename
71 self.filename = filename
82 filename = self.askopenfile()
84 filename
[all...]
/third_party/spirv-tools/tools/
H A Dio.h57 bool WasFileCorrectlyRead(FILE* file, const char* filename) { in WasFileCorrectlyRead() argument
59 fprintf(stderr, "error: file does not exist '%s'\n", filename); in WasFileCorrectlyRead()
65 fprintf(stderr, "error: error reading file '%s'\n", filename); in WasFileCorrectlyRead()
73 sizeof(T), filename); in WasFileCorrectlyRead()
80 // Appends the contents of the file named |filename| to |data|, assuming
82 // If |filename| is nullptr or "-", reads from the standard input, but
86 bool ReadBinaryFile(const char* filename, std::vector<T>* data) { in ReadBinaryFile() argument
87 const bool use_file = filename && strcmp("-", filename); in ReadBinaryFile()
90 fp = fopen(filename, "r in ReadBinaryFile()
108 ReadTextFile(const char* filename, std::vector<T>* data) ReadTextFile() argument
130 OutputFile(const char* filename, const char* mode) OutputFile() argument
168 WriteFile(const char* filename, const char* mode, const T* data, size_t count) WriteFile() argument
[all...]
/third_party/json/tools/cpplint/
H A Dcpplint.py960 def ParseNolintSuppressions(filename, raw_line, linenum, error):
968 filename: str, the name of the input file.
988 error(filename, linenum, 'readability/nolint', 5,
1370 def AddJUnitFailure(self, filename, linenum, message, category, confidence):
1371 self._junit_failures.append((filename, linenum, message, category,
1517 def Check(self, error, filename, linenum):
1522 filename: The name of the current file.
1539 error(filename, linenum, 'readability/fn_size', error_level,
1562 def __init__(self, filename):
1563 self._filename = filename
[all...]
/third_party/node/lib/internal/fs/
H A Dwatchers.js96 // At the moment if filename is undefined, we
100 // on a valid filename and the wrap has been initialized
102 StatWatcher.prototype[kFSStatWatcherStart] = function(filename,
118 filename = getValidatedPath(filename, 'filename');
120 const err = this._handle.start(toNamespacedPath(filename), interval);
125 path: filename,
127 error.filename = filename;
[all...]
/third_party/node/lib/internal/modules/cjs/
H A Dloader.js182 * @param {string} filename Absolute path to the file
184 function stat(filename) {
185 filename = path.toNamespacedPath(filename);
187 const result = statCache.get(filename);
190 const result = internalModuleStat(filename);
192 // Only set cache when `internalModuleStat(filename)` succeeds.
193 statCache.set(filename, result);
225 * @param {string} filename Absolute path of the module
227 function reportModuleToWatchMode(filename) {
[all...]
/third_party/ltp/testcases/kernel/syscalls/swapon/
H A Dswapon03.c27 static int check_and_swapoff(const char *filename);
33 char *filename; member
49 TEST(tst_syscall(__NR_swapon, swap_testfiles[0].filename, 0)); in verify_swapon()
65 TEST(tst_syscall(__NR_swapon, swap_testfiles[1].filename, 0)); in verify_swapon()
74 TEST(tst_syscall(__NR_swapon, swap_testfiles[2].filename, 0)); in verify_swapon()
107 char filename[FILENAME_MAX]; in setup_swap() local
150 /* prepare filename for the iteration */ in setup_swap()
151 if (sprintf(filename, "swapfile%02d", j + 2) < 0) { in setup_swap()
153 "filename"); in setup_swap()
158 make_swapfile(filename, in setup_swap()
192 char filename[FILENAME_MAX]; clean_swap() local
223 check_and_swapoff(const char *filename) check_and_swapoff() argument
[all...]
/third_party/skia/third_party/externals/spirv-tools/tools/
H A Dio.h51 bool WasFileCorrectlyRead(FILE* file, const char* filename) { in WasFileCorrectlyRead() argument
53 fprintf(stderr, "error: file does not exist '%s'\n", filename); in WasFileCorrectlyRead()
59 fprintf(stderr, "error: error reading file '%s'\n", filename); in WasFileCorrectlyRead()
67 sizeof(T), filename); in WasFileCorrectlyRead()
74 // Appends the contents of the file named |filename| to |data|, assuming
76 // If |filename| is nullptr or "-", reads from the standard input, but
80 bool ReadBinaryFile(const char* filename, std::vector<T>* data) { in ReadBinaryFile() argument
81 const bool use_file = filename && strcmp("-", filename); in ReadBinaryFile()
84 fp = fopen(filename, "r in ReadBinaryFile()
102 ReadTextFile(const char* filename, std::vector<T>* data) ReadTextFile() argument
123 WriteFile(const char* filename, const char* mode, const T* data, size_t count) WriteFile() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/
H A Dio.h51 bool WasFileCorrectlyRead(FILE* file, const char* filename) { in WasFileCorrectlyRead() argument
53 fprintf(stderr, "error: file does not exist '%s'\n", filename); in WasFileCorrectlyRead()
59 fprintf(stderr, "error: error reading file '%s'\n", filename); in WasFileCorrectlyRead()
67 sizeof(T), filename); in WasFileCorrectlyRead()
74 // Appends the contents of the file named |filename| to |data|, assuming
76 // If |filename| is nullptr or "-", reads from the standard input, but
80 bool ReadBinaryFile(const char* filename, std::vector<T>* data) { in ReadBinaryFile() argument
81 const bool use_file = filename && strcmp("-", filename); in ReadBinaryFile()
84 fp = fopen(filename, "r in ReadBinaryFile()
102 ReadTextFile(const char* filename, std::vector<T>* data) ReadTextFile() argument
123 WriteFile(const char* filename, const char* mode, const T* data, size_t count) WriteFile() argument
[all...]
/third_party/python/Lib/test/
H A Dtest_gzip.py48 filename = os_helper.TESTFN variable in BaseTest
51 os_helper.unlink(self.filename)
54 os_helper.unlink(self.filename)
60 with gzip.GzipFile(self.filename, 'w'+mode) as f:
63 with gzip.GzipFile(self.filename, 'r'+mode) as f:
67 with gzip.GzipFile(self.filename, 'wb') as f:
81 filename = pathlib.Path(self.filename)
82 with gzip.GzipFile(filename, 'w') as f:
85 with gzip.GzipFile(filename, '
[all...]

Completed in 13 milliseconds

12345678910>>...106