Home
last modified time | relevance | path

Searched refs:file (Results 526 - 550 of 7574) sorted by relevance

1...<<21222324252627282930>>...303

/third_party/alsa-utils/alsactl/
H A Dalsactl.h27 void error_handler(const char *file, int line, const char *function, int err, const char *fmt, ...);
52 int load_configuration(const char *file, snd_config_t **top, int *open_failed);
53 int init(const char *cfgdir, const char *file, int flags, const char *cardname);
55 int state_lock(const char *file, int timeout);
56 int state_unlock(int lock_fd, const char *file);
59 int save_state(const char *file, const char *cardname);
60 int load_state(const char *cfgdir, const char *file,
66 int state_daemon(const char *file, const char *cardname, int period,
/third_party/cJSON/tests/unity/test/spec/
H A Dgenerate_module_existing_file_spec.rb5 def touch_src(file)
6 FileUtils.touch "sandbox/src/#{file}"
9 def touch_test(file)
10 FileUtils.touch "sandbox/test/#{file}"
13 def create_src_with_known_content(file)
14 File.open("sandbox/src/#{file}", "w") {|f| f.write("the original #{file}")}
17 def create_test_with_known_content(file)
18 File.open("sandbox/test/#{file}", "w") {|f| f.write("the original #{file}")}
[all...]
/third_party/icu/icu4c/source/samples/ufortune/resources/
H A Dfortune_resources.mak12 # MSVC project file for ufortune
16 # When adding a resource source (.txt) file for a new locale, the corresponding
17 # .res file must be added to this list, AND to the file res-file-list.txt
44 # Inference rule, for compiling a .txt file into a .res file.
56 $(ICUDIR)\$(BIN)\pkgdata --name fortune_resources -v --mode dll -d . res-file-list.txt
/third_party/libsnd/tests/
H A Dcue_test.c13 SNDFILE *file; in get_cues() local
20 if ((file = sf_open(filename, SFM_READ, &sfinfo)) == NULL) in get_cues()
22 printf("can't open file '%s'\n", filename); in get_cues()
26 printf("\n---- get cues of file '%s'\n", filename); in get_cues()
28 if ((err = sf_command(file, SFC_GET_CUE_COUNT, &count, sizeof(uint32_t))) == SF_FALSE) in get_cues()
30 if (sf_error(file)) in get_cues()
32 printf("can't get cue info size for file '%s' (arg size %lu), err %s\n", in get_cues()
33 filename, sizeof(uint32_t), sf_strerror(file)); in get_cues()
37 printf("no cue info for file '%s'\n", filename); in get_cues()
47 if (sf_command(file, SFC_GET_CU in get_cues()
[all...]
/third_party/mbedtls/library/
H A Dentropy_poll.c114 * open file descriptor, and provides up to 256 bytes per call (basically the
151 FILE *file; in mbedtls_platform_entropy_poll() local
170 ((void) file); in mbedtls_platform_entropy_poll()
181 file = fopen("/dev/urandom", "rb"); in mbedtls_platform_entropy_poll()
182 if (file == NULL) { in mbedtls_platform_entropy_poll()
187 mbedtls_setbuf(file, NULL); in mbedtls_platform_entropy_poll()
189 read_len = fread(output, 1, len, file); in mbedtls_platform_entropy_poll()
191 fclose(file); in mbedtls_platform_entropy_poll()
195 fclose(file); in mbedtls_platform_entropy_poll()
/third_party/ltp/testcases/kernel/fs/fs_perms/
H A Dfs_perms.c27 * (05/23/01)v1.1 Added command line parameter to specify test file.
28 * (07/12/01)v1.2 Removed conf file and went to command line parameters.
63 * Create file and set permissions, user id, group id.
65 * If flag is non zero, the file contains #!/PATH/sh shebang otherwise it's
71 FILE *file; in testsetup() local
73 file = fopen(file_name, "w"); in testsetup()
75 if (file == NULL) in testsetup()
77 "Could not create test file %s.", file_name); in testsetup()
79 /* create file with shebang */ in testsetup()
87 if (fprintf(file, "#! in testsetup()
109 FILE *file; testfperm() local
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_opt_copy_propagation.c25 * @file vc4_opt_copy_propagation.c
49 if (inst->dst.file != QFILE_TEMP) in is_copy_mov()
52 if (inst->src[0].file != QFILE_TEMP && in is_copy_mov()
53 inst->src[0].file != QFILE_UNIF) { in is_copy_mov()
71 if (inst->src[i].file != QFILE_TEMP) in try_copy_prop()
88 if (mov->src[0].file == QFILE_TEMP && in try_copy_prop()
97 (mov->src[0].file != QFILE_TEMP || in try_copy_prop()
159 if (inst->dst.file != QFILE_TEMP) in apply_kills()
165 (movs[i]->src[0].file == QFILE_TEMP && in apply_kills()
H A Dvc4_opt_dead_code.c25 * @file vc4_opt_dead_code.c
58 if (inst->src[i].file == QFILE_VPM) { in has_nonremovable_reads()
75 if (inst->src[i].file == QFILE_VARY && in has_nonremovable_reads()
92 if (inst->src[i].file == QFILE_TEMP) in qir_opt_dead_code()
99 if (inst->dst.file != QFILE_NULL && in qir_opt_dead_code()
100 !(inst->dst.file == QFILE_TEMP && in qir_opt_dead_code()
118 if (inst->dst.file == QFILE_TEMP) { in qir_opt_dead_code()
126 inst->dst.file = QFILE_NULL; in qir_opt_dead_code()
133 if (inst->src[i].file != QFILE_VPM) in qir_opt_dead_code()
/third_party/node/lib/internal/process/
H A Dreport.js16 writeReport(file, err) {
17 if (typeof file === 'object' && file !== null) {
18 err = file;
19 file = undefined;
20 } else if (file !== undefined) {
21 validateString(file, 'file');
30 return nr.writeReport('JavaScript API', 'API', file, err);
/third_party/node/test/sequential/
H A Dtest-diagnostic-dir-heap-prof.js33 function findFirstFrame(file, func) {
34 const data = fs.readFileSync(file, 'utf8');
40 function verifyFrames(output, file, func) {
41 const { frame, roots } = findFirstFrame(file, func);
62 .filter((file) => file.endsWith('.heapprofile'))
63 .map((file) => path.join(dir, file));
/third_party/node/deps/ngtcp2/ngtcp2/lib/
H A Dngtcp2_mem.c77 const char *func, const char *file, size_t line) { in ngtcp2_mem_malloc_debug()
81 file, line); in ngtcp2_mem_malloc_debug()
87 const char *file, size_t line) { in ngtcp2_mem_free_debug()
88 fprintf(stderr, "free ptr=%p in %s at %s:%zu\n", ptr, func, file, line); in ngtcp2_mem_free_debug()
94 const char *func, const char *file, size_t line) { in ngtcp2_mem_calloc_debug()
98 size, func, file, line); in ngtcp2_mem_calloc_debug()
104 const char *func, const char *file, in ngtcp2_mem_realloc_debug()
109 size, func, file, line); in ngtcp2_mem_realloc_debug()
76 ngtcp2_mem_malloc_debug(const ngtcp2_mem *mem, size_t size, const char *func, const char *file, size_t line) ngtcp2_mem_malloc_debug() argument
86 ngtcp2_mem_free_debug(const ngtcp2_mem *mem, void *ptr, const char *func, const char *file, size_t line) ngtcp2_mem_free_debug() argument
93 ngtcp2_mem_calloc_debug(const ngtcp2_mem *mem, size_t nmemb, size_t size, const char *func, const char *file, size_t line) ngtcp2_mem_calloc_debug() argument
103 ngtcp2_mem_realloc_debug(const ngtcp2_mem *mem, void *ptr, size_t size, const char *func, const char *file, size_t line) ngtcp2_mem_realloc_debug() argument
/third_party/musl/libc-test/src/functional/
H A Dfopencookie_test.c4 * you may not use this file except in compliance with the License.
108 FILE *file; in main() local
123 file = fopencookie(&myc, "w+", ioFunc); in main()
124 if (file == NULL) { in main()
128 if (fputs("fopencookie", file) == EOF) { in main()
132 if (fseek(file, 0, SEEK_SET) == -1) { in main()
136 nread = fread(buf, memberSize, memberNumbers, file); in main()
138 if (ferror(file) != 0) { in main()
143 fclose(file); in main()
/third_party/python/Tools/scripts/
H A Dparse_html5_entities.py20 """Download the json file from the url and returns a decoded object."""
53 def write_items(entities, file=sys.stdout):
54 """Write the items of the dictionary in the specified file."""
65 print('html5 = {', file=file)
67 print(' {!r}: {!a},'.format(name, entities[name]), file=file)
68 print('}', file=file)
74 # with --patch patch the Lib/html/entities.py file
[all...]
/third_party/python/Lib/idlelib/
H A Dpathbrowser.py61 file = os.path.join(self.dir, name)
62 if self.ispackagedir(file):
64 packages.append((nn, name, file))
67 for nn, name, file in packages:
68 item = DirBrowserTreeItem(file, self.packages + [name])
75 def ispackagedir(self, file):
77 if not os.path.isdir(file):
79 init = os.path.join(file, "__init__.py")
/third_party/skia/third_party/externals/spirv-tools/tools/
H A Dio.h4 // you may not use this file except in compliance with the License.
34 // Appends the contents of the |file| to |data|, assuming each element in the
35 // file is of type |T|.
37 void ReadFile(FILE* file, std::vector<T>* data) { in ReadFile() argument
38 if (file == nullptr) return; in ReadFile()
42 while (size_t len = fread(buf, sizeof(T), buf_size, file)) { in ReadFile()
47 // Returns true if |file| has encountered an error opening the file or reading
48 // the file as a series of element of type |T|. If there was an error, writes an
51 bool WasFileCorrectlyRead(FILE* file, cons argument
[all...]
/third_party/skia/third_party/externals/spirv-cross/tests-other/
H A Dmsl_constexpr_test.cpp31 FILE *file = fopen(path, "rb"); in read_file() local
33 if (!file) in read_file()
36 fseek(file, 0, SEEK_END); in read_file()
37 len = ftell(file); in read_file()
38 rewind(file); in read_file()
41 if (fread(buffer.data(), 1, len, file) != (size_t)len) in read_file()
43 fclose(file); in read_file()
47 fclose(file); in read_file()
H A Dmsl_ycbcr_conversion_test.cpp31 FILE *file = fopen(path, "rb"); in read_file() local
33 if (!file) in read_file()
36 fseek(file, 0, SEEK_END); in read_file()
37 len = ftell(file); in read_file()
38 rewind(file); in read_file()
41 if (fread(buffer.data(), 1, len, file) != (size_t)len) in read_file()
43 fclose(file); in read_file()
47 fclose(file); in read_file()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/
H A Dio.h4 // you may not use this file except in compliance with the License.
34 // Appends the contents of the |file| to |data|, assuming each element in the
35 // file is of type |T|.
37 void ReadFile(FILE* file, std::vector<T>* data) { in ReadFile() argument
38 if (file == nullptr) return; in ReadFile()
42 while (size_t len = fread(buf, sizeof(T), buf_size, file)) { in ReadFile()
47 // Returns true if |file| has encountered an error opening the file or reading
48 // the file as a series of element of type |T|. If there was an error, writes an
51 bool WasFileCorrectlyRead(FILE* file, cons argument
[all...]
/third_party/skia/third_party/externals/icu/source/samples/ufortune/resources/
H A Dfortune_resources.mak12 # MSVC project file for ufortune
16 # When adding a resource source (.txt) file for a new locale, the corresponding
17 # .res file must be added to this list, AND to the file res-file-list.txt
44 # Inference rule, for compiling a .txt file into a .res file.
56 $(ICUDIR)\$(BIN)\pkgdata --name fortune_resources -v --mode dll -d . res-file-list.txt
/third_party/openssl/test/
H A Dcms-examples.pl5 # this file except in compliance with the License. You can obtain a copy
6 # in the file LICENSE in the source distribution or at
66 open( IN, $exfile ) || die "Can't Open RFC examples file $exfile";
105 my ( $file, $tlist ) = @$_;
106 print "Example file $file:\n";
108 run_reencode_test( $exdir, $file );
111 run_certsout_test( $exdir, $file );
114 run_dataout_test( $exdir, $file );
117 run_verify_test( $exdir, $tlist, $file );
[all...]
/third_party/unity/test/spec/
H A Dgenerate_module_existing_file_spec.rb5 def touch_src(file)
6 FileUtils.touch "sandbox/src/#{file}"
9 def touch_test(file)
10 FileUtils.touch "sandbox/test/#{file}"
13 def create_src_with_known_content(file)
14 File.open("sandbox/src/#{file}", "w") {|f| f.write("the original #{file}")}
17 def create_test_with_known_content(file)
18 File.open("sandbox/test/#{file}", "w") {|f| f.write("the original #{file}")}
[all...]
/third_party/skia/gn/
H A Dgn_to_bp_utils.py6 # found in the LICENSE file.
91 # This .gni file we want to read is close enough to Python syntax
116 print('// DO NOT MODIFY! This file is autogenerated by gn_to_bp.py.', file=f)
117 print('// If need to change a define, modify SkUserConfigManual.h', file=f)
118 print('#pragma once', file=f)
119 print('#include "SkUserConfigManual.h"', file=f)
121 print('', file=f)
122 print('#ifndef', define.split('=')[0], file=f)
123 print('#define', define.replace('=', ' ', 1), file
[all...]
/third_party/mksh/
H A Dcheck.pl39 # standard input is a file containing "echo hi*\nfalse\n". The program
46 # - a test file contains a series of tests
56 # script m Value is written to a file which
59 # stdin m Value is written to a file which is
84 # file-setup mps Used to create files, directories
86 # file, dir or symlink; second word is
89 # file; the end-quote should be followed
90 # by a newline, then the file data
94 # file-result mps Used to verify a file, symlin
[all...]
/arkcompiler/runtime_core/scripts/
H A Dmemdump.py5 # you may not use this file except in compliance with the License.
20 Panda runtime writes memory reports into memdump.bin file at runtime destruction and at SIGUSR2
21 signal. This script is aimed to analyse memdump.bin file.
105 def read_string(file):
106 """Reads string from file"""
108 num = struct.unpack('I', file.read(4))[0]
109 return file.read(num).decode('utf-8')
158 help='Filter allocations by a string in stacktrace (it may be a function of file and line)')
173 with open(args.input_file, "rb") as file:
174 num_items, num_stacktraces = struct.unpack('II', file
[all...]
/arkcompiler/runtime_core/static_core/scripts/
H A Dmemdump.py5 # you may not use this file except in compliance with the License.
20 Panda runtime writes memory reports into memdump.bin file at runtime destruction and at SIGUSR2
21 signal. This script is aimed to analyse memdump.bin file.
105 def read_string(file):
106 """Reads string from file"""
108 num = struct.unpack('I', file.read(4))[0]
109 return file.read(num).decode('utf-8')
158 help='Filter allocations by a string in stacktrace (it may be a function of file and line)')
173 with open(args.input_file, "rb") as file:
174 num_items, num_stacktraces = struct.unpack('II', file
[all...]

Completed in 7 milliseconds

1...<<21222324252627282930>>...303