Home
last modified time | relevance | path

Searched refs:file (Results 26 - 50 of 7900) sorted by relevance

12345678910>>...316

/third_party/icu/icu4c/source/io/
H A Dufile.cpp153 return result; /* not a file leak */ in u_fopen()
157 // stack-allocated buffer to contain a file name or path. If PATH_MAX (POSIX) or MAX_PATH
160 // allocate a buffer for any file name or path that is that length or longer.
214 return result; /* not a file leak */ in u_fopen_u()
266 u_fflush(UFILE *file) in u_fflush() argument
268 ufile_flush_translit(file); in u_fflush()
269 ufile_flush_io(file); in u_fflush()
270 if (file->fFile) { in u_fflush()
271 fflush(file->fFile); in u_fflush()
273 else if (file in u_fflush()
280 u_frewind(UFILE *file) u_frewind() argument
295 u_fclose(UFILE *file) u_fclose() argument
322 u_fgetlocale( UFILE *file) u_fgetlocale() argument
328 u_fsetlocale(UFILE *file, const char *locale) u_fsetlocale() argument
339 u_fgetcodepage(UFILE *file) u_fgetcodepage() argument
353 u_fsetcodepage( const char *codepage, UFILE *file) u_fsetcodepage() argument
372 u_fgetConverter(UFILE *file) u_fgetConverter() argument
377 u_fgetNumberFormat(UFILE *file) u_fgetNumberFormat() argument
[all...]
/third_party/skia/third_party/externals/icu/source/io/
H A Dufile.cpp143 return result; /* not a file leak */ in u_fopen()
147 // stack-allocated buffer to contain a file name or path. If PATH_MAX (POSIX) or MAX_PATH
150 // allocate a buffer for any file name or path that is that length or longer.
204 return result; /* not a file leak */ in u_fopen_u()
256 u_fflush(UFILE *file) in u_fflush() argument
258 ufile_flush_translit(file); in u_fflush()
259 ufile_flush_io(file); in u_fflush()
260 if (file->fFile) { in u_fflush()
261 fflush(file->fFile); in u_fflush()
263 else if (file in u_fflush()
270 u_frewind(UFILE *file) u_frewind() argument
285 u_fclose(UFILE *file) u_fclose() argument
312 u_fgetlocale( UFILE *file) u_fgetlocale() argument
318 u_fsetlocale(UFILE *file, const char *locale) u_fsetlocale() argument
329 u_fgetcodepage(UFILE *file) u_fgetcodepage() argument
343 u_fsetcodepage( const char *codepage, UFILE *file) u_fsetcodepage() argument
362 u_fgetConverter(UFILE *file) u_fgetConverter() argument
367 u_fgetNumberFormat(UFILE *file) u_fgetNumberFormat() argument
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/
H A Dmali_kbase_csf_tiler_heap_debugfs.c32 * @file: The seq_file for printing to
37 static int kbasep_csf_tiler_heap_debugfs_show(struct seq_file *file, void *data) in kbasep_csf_tiler_heap_debugfs_show() argument
39 struct kbase_context *kctx = file->private; in kbasep_csf_tiler_heap_debugfs_show()
44 seq_printf(file, "MALI_CSF_TILER_HEAP_DEBUGFS_VERSION: v%u\n", MALI_CSF_TILER_HEAP_DEBUGFS_VERSION); in kbasep_csf_tiler_heap_debugfs_show()
52 seq_printf(file, "HEAP(gpu_va = 0x%llx):\n", heap->gpu_va); in kbasep_csf_tiler_heap_debugfs_show()
53 seq_printf(file, "\tchunk_size = %u\n", heap->chunk_size); in kbasep_csf_tiler_heap_debugfs_show()
54 seq_printf(file, "\tchunk_count = %u\n", heap->chunk_count); in kbasep_csf_tiler_heap_debugfs_show()
55 seq_printf(file, "\tmax_chunks = %u\n", heap->max_chunks); in kbasep_csf_tiler_heap_debugfs_show()
56 seq_printf(file, "\ttarget_in_flight = %u\n", heap->target_in_flight); in kbasep_csf_tiler_heap_debugfs_show()
59 seq_printf(file, "\ in kbasep_csf_tiler_heap_debugfs_show()
77 kbasep_csf_tiler_heap_total_debugfs_show(struct seq_file *file, void *data) kbasep_csf_tiler_heap_total_debugfs_show() argument
93 kbasep_csf_tiler_heap_debugfs_open(struct inode *in, struct file *file) kbasep_csf_tiler_heap_debugfs_open() argument
98 kbasep_csf_tiler_heap_total_debugfs_open(struct inode *in, struct file *file) kbasep_csf_tiler_heap_total_debugfs_open() argument
119 struct dentry *file; kbase_csf_tiler_heap_debugfs_init() local
135 struct dentry *file; kbase_csf_tiler_heap_total_debugfs_init() local
[all...]
H A Dmali_kbase_csf_csg_debugfs.c81 struct seq_file *file, u32 wait_status, u32 wait_sync_value, in kbasep_csf_scheduler_dump_active_queue_cs_status_wait()
88 seq_printf(file, "SB_MASK: %d\n", in kbasep_csf_scheduler_dump_active_queue_cs_status_wait()
90 seq_printf(file, "PROGRESS_WAIT: %s\n", in kbasep_csf_scheduler_dump_active_queue_cs_status_wait()
93 seq_printf(file, "PROTM_PEND: %s\n", in kbasep_csf_scheduler_dump_active_queue_cs_status_wait()
96 seq_printf(file, "SYNC_WAIT: %s\n", in kbasep_csf_scheduler_dump_active_queue_cs_status_wait()
99 seq_printf(file, "WAIT_CONDITION: %s\n", in kbasep_csf_scheduler_dump_active_queue_cs_status_wait()
102 seq_printf(file, "SYNC_POINTER: 0x%llx\n", wait_sync_pointer); in kbasep_csf_scheduler_dump_active_queue_cs_status_wait()
103 seq_printf(file, "SYNC_VALUE: %d\n", wait_sync_value); in kbasep_csf_scheduler_dump_active_queue_cs_status_wait()
104 seq_printf(file, "SYNC_LIVE_VALUE: 0x%016llx\n", wait_sync_live_value); in kbasep_csf_scheduler_dump_active_queue_cs_status_wait()
105 seq_printf(file, "SB_STATU in kbasep_csf_scheduler_dump_active_queue_cs_status_wait()
80 kbasep_csf_scheduler_dump_active_queue_cs_status_wait( struct seq_file *file, u32 wait_status, u32 wait_sync_value, u64 wait_sync_live_value, u64 wait_sync_pointer, u32 sb_status, u32 blocked_reason) kbasep_csf_scheduler_dump_active_queue_cs_status_wait() argument
112 kbasep_csf_scheduler_dump_active_cs_trace(struct seq_file *file, struct kbase_csf_cmd_stream_info const *const stream) kbasep_csf_scheduler_dump_active_cs_trace() argument
145 kbasep_csf_scheduler_dump_active_queue(struct seq_file *file, struct kbase_queue *queue) kbasep_csf_scheduler_dump_active_queue() argument
274 update_active_group_status(struct seq_file *file, struct kbase_queue_group *const group) update_active_group_status() argument
323 kbasep_csf_scheduler_dump_active_group(struct seq_file *file, struct kbase_queue_group *const group) kbasep_csf_scheduler_dump_active_group() argument
398 kbasep_csf_queue_group_debugfs_show(struct seq_file *file, void *data) kbasep_csf_queue_group_debugfs_show() argument
441 kbasep_csf_scheduler_dump_active_groups(struct seq_file *file, void *data) kbasep_csf_scheduler_dump_active_groups() argument
475 kbasep_csf_queue_group_debugfs_open(struct inode *in, struct file *file) kbasep_csf_queue_group_debugfs_open() argument
482 kbasep_csf_active_queue_groups_debugfs_open(struct inode *in, struct file *file) kbasep_csf_active_queue_groups_debugfs_open() argument
498 struct dentry *file; kbase_csf_queue_group_debugfs_init() local
580 kbase_csf_debugfs_scheduler_state_get(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) kbase_csf_debugfs_scheduler_state_get() argument
614 kbase_csf_debugfs_scheduler_state_set(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) kbase_csf_debugfs_scheduler_state_set() argument
[all...]
/third_party/mesa3d/src/freedreno/rnn/
H A Drnn.c111 static char *getattrib (struct rnndb *db, char *file, int line, xmlAttr *attr) { in getattrib() argument
115 rnn_err(db, "%s:%d: unknown attribute child \"%s\" in attribute \"%s\"\n", file, line, chain->name, attr->name); in getattrib()
124 static int getboolattrib (struct rnndb *db, char *file, int line, xmlAttr *attr) { in getboolattrib() argument
125 char *c = getattrib(db, file, line, attr); in getboolattrib()
130 rnn_err(db, "%s:%d: invalid boolean value \"%s\" in attribute \"%s\"\n", file, line, c, attr->name); in getboolattrib()
134 static uint64_t getnum(struct rnndb *db, char *file, int line, xmlAttr *attr, char *c) in getnum() argument
143 rnn_err(db, "%s:%d: invalid numeric value \"%s\" in attribute \"%s\"\n", file, line, c, attr->name); in getnum()
148 static uint64_t getnumattrib (struct rnndb *db, char *file, int line, xmlAttr *attr) { in getnumattrib() argument
149 char *c = getattrib(db, file, line, attr); in getnumattrib()
150 return getnum(db, file, lin in getnumattrib()
155 trydoc(struct rnndb *db, char *file, xmlNode *node) trydoc() argument
167 trytypetag(struct rnndb *db, char *file, xmlNode *node, struct rnntypeinfo *ti) trytypetag() argument
181 trytypeattr(struct rnndb *db, char *file, xmlNode *node, xmlAttr *attr, struct rnntypeinfo *ti) trytypeattr() argument
220 parsevalue(struct rnndb *db, char *file, xmlNode *node) parsevalue() argument
255 parsespectype(struct rnndb *db, char *file, xmlNode *node) parsespectype() argument
288 parseenum(struct rnndb *db, char *file, xmlNode *node) parseenum() argument
357 parsebitfield(struct rnndb *db, char *file, xmlNode *node) parsebitfield() argument
393 parsebitset(struct rnndb *db, char *file, xmlNode *node) parsebitset() argument
462 trydelem(struct rnndb *db, char *file, xmlNode *node) trydelem() argument
625 parsegroup(struct rnndb *db, char *file, xmlNode *node) parsegroup() argument
665 parsedomain(struct rnndb *db, char *file, xmlNode *node) parsedomain() argument
741 parsecopyright(struct rnndb *db, char *file, xmlNode *node) parsecopyright() argument
810 trytop(struct rnndb *db, char *file, xmlNode *node) trytop() argument
858 FILE *file = find_in_path(file_orig, rnn_path, &fname); find_file() local
960 copyvalue(struct rnnvalue *val, char *file) copyvalue() argument
973 copytypeinfo(struct rnntypeinfo *dst, struct rnntypeinfo *src, char *file) copytypeinfo() argument
989 copybitfield(struct rnnbitfield *bf, char *file) copybitfield() argument
998 copydelem(struct rnndelem *elem, char *file) copydelem() argument
1156 preptypeinfo(struct rnndb *db, struct rnntypeinfo *ti, char *prefix, struct rnnvarinfo *vi, char *file) preptypeinfo() argument
[all...]
/third_party/libsnd/tests/
H A Dmpeg_test.c54 SNDFILE * file ; in mpeg_short_test() local
70 /* Set up output file type. */ in mpeg_short_test()
75 /* Write the output file. */ in mpeg_short_test()
76 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_FALSE, __LINE__) ; in mpeg_short_test()
77 test_write_short_or_die (file, 0, data_out.s, ARRAY_LEN (data_out.s), __LINE__) ; in mpeg_short_test()
78 sf_close (file) ; in mpeg_short_test()
80 /* Read the file in again. */ in mpeg_short_test()
83 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ; in mpeg_short_test()
84 test_read_short_or_die (file, 0, data_in.s, ARRAY_LEN (data_in.s), __LINE__) ; in mpeg_short_test()
85 sf_close (file) ; in mpeg_short_test()
112 SNDFILE * file ; mpeg_int_test() local
167 SNDFILE * file ; mpeg_float_test() local
216 SNDFILE * file ; mpeg_double_test() local
267 SNDFILE * file ; mpeg_stereo_seek_test() local
[all...]
H A Dogg_test.c53 SNDFILE * file ; in ogg_short_test() local
69 /* Set up output file type. */ in ogg_short_test()
74 /* Write the output file. */ in ogg_short_test()
75 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_FALSE, __LINE__) ; in ogg_short_test()
76 test_write_short_or_die (file, 0, data_out.s, ARRAY_LEN (data_out.s), __LINE__) ; in ogg_short_test()
77 sf_close (file) ; in ogg_short_test()
79 /* Read the file in again. */ in ogg_short_test()
82 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ; in ogg_short_test()
83 test_read_short_or_die (file, 0, data_in.s, ARRAY_LEN (data_in.s), __LINE__) ; in ogg_short_test()
84 sf_close (file) ; in ogg_short_test()
111 SNDFILE * file ; ogg_int_test() local
166 SNDFILE * file ; ogg_float_test() local
215 SNDFILE * file ; ogg_double_test() local
266 SNDFILE * file ; ogg_stereo_seek_test() local
[all...]
H A Dlossy_comp_test.c71 static void check_comment (SNDFILE * file, int format, int lineno) ;
75 static int check_opus_version (SNDFILE *file) ;
95 "to screw up the encoders and decoders if the file container format does "
98 "the end of the file." ;
108 printf (" wav_ima - test IMA ADPCM WAV file functions\n") ; in main()
109 printf (" wav_msadpcm - test MS ADPCM WAV file functions\n") ; in main()
110 printf (" wav_gsm610 - test GSM 6.10 WAV file functions\n") ; in main()
111 printf (" wav_ulaw - test u-law WAV file functions\n") ; in main()
112 printf (" wav_alaw - test A-law WAV file functions\n") ; in main()
113 printf (" wve - test Psion WVE file function in main()
650 { SNDFILE *file ; lcomp_test_short() local
837 { SNDFILE *file ; lcomp_test_int() local
1035 { SNDFILE *file ; lcomp_test_float() local
1230 { SNDFILE *file ; lcomp_test_double() local
1426 { SNDFILE *file ; sdlcomp_test_short() local
1646 { SNDFILE *file ; sdlcomp_test_int() local
1870 { SNDFILE *file ; sdlcomp_test_float() local
2117 { SNDFILE *file ; sdlcomp_test_double() local
2361 { SNDFILE *file ; read_raw_test() local
2558 check_comment(SNDFILE * file, int format, int lineno) check_comment() argument
2606 check_opus_version(SNDFILE *file) check_opus_version() argument
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/fcntl/fcntl_gtest/
H A Dfcntl_open64_test.cpp13 * @tc.desc: Verify whether the "/proc/version" file could be successfully opened through open and open64 functions.
18 int file = open("/proc/version", O_RDONLY); in HWTEST_F() local
19 ASSERT_NE(file, -1); in HWTEST_F()
20 close(file); in HWTEST_F()
21 file = open64("/proc/version", O_RDONLY); in HWTEST_F()
22 ASSERT_NE(file, -1); in HWTEST_F()
23 close(file); in HWTEST_F()
33 int file = open("/proc/version", O_WRONLY); in HWTEST_F() local
34 ASSERT_NE(file, -1); in HWTEST_F()
35 close(file); in HWTEST_F()
49 int file = open("/proc/version", O_RDWR); HWTEST_F() local
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dextensionmetadocgenerator.py182 def resolveDeprecationChain(self, extensions, succeededBy, isRefpage, file):
184 write(f' ** *NOTE* The extension `{succeededBy}` is not supported for the API specification being generated', file=file)
193 write(' ** Which in turn was _promoted_ to\n' + ext.conditionalLinkCoreAPI(ext.supercedingAPIVersion, '-promotions', isRefpage), file=file)
195 write(' ** Which in turn was _promoted_ to extension\n' + ext.conditionalLinkExt(ext.supercedingExtension), file=file)
196 ext.resolveDeprecationChain(extensions, ext.supercedingExtension, file)
199 write(' ** Which in turn was _deprecated_ by\n' + ext.conditionalLinkCoreAPI(ext.supercedingAPIVersion, '-new-feature', isRefpage), file=file)
[all...]
H A Dpromote.py12 # -out specifies directory to create output file in, default 'out'
16 # For error and file-loading interfaces only
31 print('[[' + anchorname(anchor) + ']]', file=fp)
32 print('This anchor:', anchorname(anchor), file=fp)
33 print('<<' + anchorname(anchor+1) + ', OINK>>', file=fp)
45 print('ifdef::VK_VERSION_1_1[]', file=fp)
46 print(line, file=fp, end='')
47 print('endif::VK_VERSION_1_1[]', file=fp)
48 print('', file=fp)
50 '[or the equivalent command]', file
[all...]
/third_party/typescript/tests/baselines/reference/
H A DtypeGuardOfFormThisMember.js29 let file: FileSystemObject = new File("foo/bar.txt", "foo");
30 file.isNetworked = false;
31 file.isFSO = file.isFile;
32 file.isFile = true;
33 let x = file.isFile;
34 if (file.isFile) {
35 file.content;
36 if (file.isNetworked) {
37 file
[all...]
/third_party/elfutils/tests/
H A Dtest-subr.sh3 # This file is part of elfutils.
5 # This file is free software; you can redistribute it and/or modify
19 # This file is sourced by ". $srcdir/test-subr.sh" at the start of
49 for file; do
50 bunzip2 -c ${abs_srcdir}/${file}.bz2 > ${file} || exit 77
51 remove_files="$remove_files $file"
136 for file in $self_test_files; do
137 testrun $* $file \
138 || { echo "*** failure in $* $file"; exit_statu
[all...]
/third_party/vk-gl-cts/framework/delibs/deutil/
H A DdeFile.c8 * you may not use this file except in compliance with the License.
20 * \file
55 deFile* file = (deFile*)deCalloc(sizeof(deFile)); in deFile_createFromHandle() local
56 if (!file) in deFile_createFromHandle()
59 return file; in deFile_createFromHandle()
62 file->fd = fd; in deFile_createFromHandle()
63 return file; in deFile_createFromHandle()
109 void deFile_destroy (deFile* file) in deFile_destroy() argument
111 close(file->fd); in deFile_destroy()
112 deFree(file); in deFile_destroy()
115 deFile_setFlags(deFile* file, deUint32 flags) deFile_setFlags() argument
149 deFile_seek(deFile* file, deFilePosition base, deInt64 offset) deFile_seek() argument
154 deFile_getPosition(const deFile* file) deFile_getPosition() argument
159 deFile_getSize(const deFile* file) deFile_getSize() argument
187 deFile_read(deFile* file, void* buf, deInt64 bufSize, deInt64* numReadPtr) deFile_read() argument
197 deFile_write(deFile* file, const void* buf, deInt64 bufSize, deInt64* numWrittenPtr) deFile_write() argument
230 deFile* file = (deFile*)deCalloc(sizeof(deFile)); deFile_createFromHandle() local
294 deFile_destroy(deFile* file) deFile_destroy() argument
300 deFile_setFlags(deFile* file, deUint32 flags) deFile_setFlags() argument
313 deFile_seek(deFile* file, deFilePosition base, deInt64 offset) deFile_seek() argument
332 deFile_getPosition(const deFile* file) deFile_getPosition() argument
340 deFile_getSize(const deFile* file) deFile_getSize() argument
365 deFile_read(deFile* file, void* buf, deInt64 bufSize, deInt64* numReadPtr) deFile_read() argument
382 deFile_write(deFile* file, const void* buf, deInt64 bufSize, deInt64* numWrittenPtr) deFile_write() argument
[all...]
/third_party/skia/third_party/externals/libpng/contrib/tools/
H A Dchkfmt16 # -e: spawn an editor for each file that needs a change ($EDITOR must be
40 # Function to edit a single file - if the file isn't changed ask the user
44 cp "$file" "$file".orig
45 "$EDITOR" "$file" 0>&3 1>&4 2>&5 3>&- 4>&- 5>&- || exit 1
46 if cmp -s "$file".orig "$file"
48 rm "$file".orig
49 echo -n "$file
[all...]
/third_party/ltp/lib/
H A Dsafe_net.c85 int tst_getsockport(const char *file, const int lineno, int sockfd) in tst_getsockport() argument
91 safe_getsockname(file, lineno, NULL, sockfd, sa, &addrlen); in tst_getsockport()
108 int safe_socket(const char *file, const int lineno, void (cleanup_fn)(void), in safe_socket() argument
128 tst_brkm_(file, lineno, ttype | TERRNO, cleanup_fn, in safe_socket()
131 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_socket()
139 int safe_socketpair(const char *file, const int lineno, int domain, int type, in safe_socketpair() argument
157 tst_brkm_(file, lineno, ttype | TERRNO, NULL, in safe_socketpair()
161 tst_brkm_(file, lineno, TBROK | TERRNO, NULL, in safe_socketpair()
169 int safe_getsockopt(const char *file, const int lineno, int sockfd, int level, in safe_getsockopt() argument
175 tst_brkm_(file, linen in safe_getsockopt()
187 safe_setsockopt(const char *file, const int lineno, int sockfd, int level, int optname, const void *optval, socklen_t optlen) safe_setsockopt() argument
207 safe_send(const char *file, const int lineno, char len_strict, int sockfd, const void *buf, size_t len, int flags) safe_send() argument
227 safe_sendto(const char *file, const int lineno, char len_strict, int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) safe_sendto() argument
253 safe_sendmsg(const char *file, const int lineno, size_t len, int sockfd, const struct msghdr *msg, int flags) safe_sendmsg() argument
276 safe_recv(const char *file, const int lineno, size_t len, int sockfd, void *buf, size_t size, int flags) safe_recv() argument
301 safe_recvmsg(const char *file, const int lineno, size_t len, int sockfd, struct msghdr *msg, int flags) safe_recvmsg() argument
325 safe_bind(const char *file, const int lineno, void (cleanup_fn)(void), int socket, const struct sockaddr *address, socklen_t address_len) safe_bind() argument
367 safe_listen(const char *file, const int lineno, void (cleanup_fn)(void), int socket, int backlog) safe_listen() argument
389 safe_accept(const char *file, const int lineno, void (cleanup_fn)(void), int sockfd, struct sockaddr *addr, socklen_t *addrlen) safe_accept() argument
408 safe_connect(const char *file, const int lineno, void (cleanup_fn)(void), int sockfd, const struct sockaddr *addr, socklen_t addrlen) safe_connect() argument
431 safe_getsockname(const char *file, const int lineno, void (cleanup_fn)(void), int sockfd, struct sockaddr *addr, socklen_t *addrlen) safe_getsockname() argument
455 safe_gethostname(const char *file, const int lineno, char *name, size_t size) safe_gethostname() argument
472 safe_sethostname(const char *file, const int lineno, const char *name, size_t size) safe_sethostname() argument
492 tst_get_unused_port(const char *file, const int lineno, void (cleanup_fn)(void), unsigned short family, int type) tst_get_unused_port() argument
[all...]
H A Dsafe_file_ops.c15 * otherwise, applies only to this software file. Patent licenses, if
69 int file_scanf(const char *file, const int lineno, in file_scanf() argument
79 tst_resm_(file, lineno, TINFO, "Failed to open FILE '%s'", in file_scanf()
91 tst_resm_(file, lineno, TINFO, in file_scanf()
97 tst_resm_(file, lineno, TINFO, in file_scanf()
104 tst_resm_(file, lineno, TINFO, "Failed to close FILE '%s'", in file_scanf()
113 tst_resm_(file, lineno, TINFO, "Failed to close FILE '%s'", in file_scanf()
120 void safe_file_scanf(const char *file, const int lineno, in safe_file_scanf() argument
131 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_file_scanf()
143 tst_brkm_(file, linen in safe_file_scanf()
168 file_lines_scanf(const char *file, const int lineno, void (*cleanup_fn)(void), int strict, const char *path, const char *fmt, ...) file_lines_scanf() argument
212 file_printf(const char *file, const int lineno, const char *path, const char *fmt, ...) file_printf() argument
253 safe_file_vprintf(const char *file, const int lineno, void (*cleanup_fn)(void), const char *path, const char *fmt, va_list va) safe_file_vprintf() argument
280 safe_file_printf(const char *file, const int lineno, void (*cleanup_fn)(void), const char *path, const char *fmt, ...) safe_file_printf() argument
290 safe_try_file_printf(const char *file, const int lineno, void (*cleanup_fn)(void), const char *path, const char *fmt, ...) safe_try_file_printf() argument
304 safe_cp(const char *file, const int lineno, void (*cleanup_fn) (void), const char *src, const char *dst) safe_cp() argument
344 safe_touch(const char *file, const int lineno, void (*cleanup_fn)(void), const char *pathname, mode_t mode, const struct timespec times[2]) safe_touch() argument
[all...]
H A Dtst_assert.c12 void tst_assert_int(const char *file, const int lineno, const char *path, int val) in tst_assert_int() argument
16 safe_file_scanf(file, lineno, NULL, path, "%d", &sys_val); in tst_assert_int()
19 tst_res_(file, lineno, TPASS, "%s = %d", path, val); in tst_assert_int()
23 tst_res_(file, lineno, TFAIL, "%s != %d got %d", path, val, sys_val); in tst_assert_int()
26 void tst_assert_ulong(const char *file, const int lineno, const char *path, unsigned long val) in tst_assert_ulong() argument
30 safe_file_scanf(file, lineno, NULL, path, "%lu", &sys_val); in tst_assert_ulong()
33 tst_res_(file, lineno, TPASS, "%s = %lu", path, val); in tst_assert_ulong()
37 tst_res_(file, lineno, TFAIL, "%s != %lu got %lu", path, val, sys_val); in tst_assert_ulong()
40 void tst_assert_file_int(const char *file, const int lineno, const char *path, const char *prefix, int val) in tst_assert_file_int() argument
46 file_lines_scanf(file, linen in tst_assert_file_int()
56 tst_assert_str(const char *file, const int lineno, const char *path, const char *val) tst_assert_str() argument
69 tst_assert_file_str(const char *file, const int lineno, const char *path, const char *prefix, const char *val) tst_assert_file_str() argument
[all...]
H A Dtst_safe_sysv_ipc.c64 int safe_msgget(const char *file, const int lineno, key_t key, int msgflg) in safe_msgget() argument
71 tst_brk_(file, lineno, TBROK | TERRNO, "msgget(%i, %x) failed", in safe_msgget()
74 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgget()
82 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, in safe_msgsnd() argument
90 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgsnd()
94 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgsnd()
102 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, in safe_msgrcv() argument
110 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgrcv()
114 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgrcv()
122 int safe_msgctl(const char *file, cons argument
141 safe_shmget(const char *file, const int lineno, key_t key, size_t size, int shmflg) safe_shmget() argument
160 safe_shmat(const char *file, const int lineno, int shmid, const void *shmaddr, int shmflg) safe_shmat() argument
175 safe_shmdt(const char *file, const int lineno, const void *shmaddr) safe_shmdt() argument
192 safe_shmctl(const char *file, const int lineno, int shmid, int cmd, struct shmid_ds *buf) safe_shmctl() argument
211 safe_semget(const char *file, const int lineno, key_t key, int nsems, int semflg) safe_semget() argument
230 safe_semctl(const char *file, const int lineno, int semid, int semnum, int cmd, ...) safe_semctl() argument
266 safe_semop(const char *file, const int lineno, int semid, struct sembuf *sops, size_t nsops) safe_semop() argument
[all...]
/test/xts/acts/storage/storagefileiov9jstest/entry/src/ohosTest/js/test/members/
H A Dstat.test.js4 * you may not use this file except in compliance with the License.
33 * Enter the path or fd parameter to get the file stat.
47 let file = fileIO.openSync(fpath);
48 let stat2 = fileIO.statSync(file.fd);
50 fileIO.closeSync(file);
62 * The path point to nothing, no such file.
76 expect(e.code == 13900002 && e.message == 'No such file or directory').assertTrue();
104 * Enter the path or fd parameter to get stat.ino of the file.
118 let file = fileIO.openSync(fpath);
119 let stat2 = fileIO.statSync(file
[all...]
/test/xts/acts/multimedia/av_codec/demuxer/src/
H A Dfunc_test.cpp4 * you may not use this file except in compliance with the License.
191 const char *file = "/data/media/noPermission.mp4"; in HWTEST_F() local
192 int fd = open(file, O_RDONLY); in HWTEST_F()
193 int64_t size = GetFileSize(file); in HWTEST_F()
194 cout << file << "----------------------" << fd << "---------" << size << endl; in HWTEST_F()
195 cout << file << "------" << size << endl; in HWTEST_F()
210 const char *file = "/data/test/media/invalid.mp4"; in HWTEST_F() local
211 int fd = open(file, O_RDONLY); in HWTEST_F()
212 int64_t size = GetFileSize(file); in HWTEST_F()
213 cout << file << " in HWTEST_F()
230 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local
278 const char *file = "/data/test/media/avcc_10sec.mp4"; HWTEST_F() local
336 const char *file = "/data/test/media/hvcc.mp4"; HWTEST_F() local
393 const char *file = "/data/test/media/mpeg2.mp4"; HWTEST_F() local
450 const char *file = "/data/test/media/audio/M4A_48000_1.m4a"; HWTEST_F() local
501 const char *file = "/data/test/media/audio/AAC_48000_1.aac"; HWTEST_F() local
550 const char *file = "/data/test/media/audio/MP3_48000_1.mp3"; HWTEST_F() local
599 const char *file = "/data/test/media/audio/OGG_48000_1.ogg"; HWTEST_F() local
648 const char *file = "/data/test/media/audio/FLAC_48000_1.flac"; HWTEST_F() local
698 const char *file = "/data/test/media/audio/wav_48000_1.wav"; HWTEST_F() local
750 const char *file = "/data/test/media/ts_video.ts"; HWTEST_F() local
803 const char *file = "/data/test/media/mkv.mkv"; HWTEST_F() local
819 const char *file = "/data/test/media/zero_track.mp4"; HWTEST_F() local
850 const char *file = "/data/test/media/MP3_avcc_10sec.bin"; HWTEST_F() local
907 const char *file = "/data/test/media/MP3_avcc_10sec.bin"; HWTEST_F() local
966 const char *file = "/data/test/media/MP3_OGG_48000_1.bin"; HWTEST_F() local
1022 const char *file = "/data/test/media/MP3_OGG_48000_1.bin"; HWTEST_F() local
1076 const char *file = "/data/test/media/test_video_avcc_10sec.bin"; HWTEST_F() local
1130 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local
1192 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local
1253 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local
1313 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local
1368 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local
1424 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local
1485 const char *file = "/data/test/media/01_video_audio.mp4"; HWTEST_F() local
[all...]
/test/xts/acts/bundlemanager/zlib/actszlibtest/
H A DActsZlibTest.cpp4 * you may not use this file except in compliance with the License.
67 static int TestGzPrintf(gzFile file, const char *format, ...) in TestGzPrintf() argument
74 ret = gzvprintf(file, format, va); in TestGzPrintf()
162 gzFile file; in HWTEST_F()
164 file = gzopen(TESTFILE, "wb"); in HWTEST_F()
165 ASSERT_TRUE(file != NULL); in HWTEST_F()
167 gzputc(file, 'h'); in HWTEST_F()
168 ASSERT_TRUE(gzputs(file, "ello") == FOUR); in HWTEST_F()
169 if (gzprintf(file, ", %s!", "hello") != EIGHT) { in HWTEST_F()
170 fprintf(stderr, "gzprintf err: %s\n", gzerror(file, in HWTEST_F()
1042 gzFile file; HWTEST_F() local
1059 gzFile file; HWTEST_F() local
1075 gzFile file; HWTEST_F() local
1211 gzFile file; HWTEST_F() local
1256 gzFile file; HWTEST_F() local
1268 gzFile file; HWTEST_F() local
[all...]
/third_party/fsverity-utils/programs/
H A Dutils.c8 * license that can be found in the LICENSE file or at
90 __noreturn void assertion_failed(const char *expr, const char *file, int line) in assertion_failed() argument
92 fatal_error("Assertion failed: %s at %s:%d", expr, file, line); in assertion_failed()
107 bool open_file(struct filedes *file, const char *filename, int flags, int mode) in open_file() argument
109 file->fd = open(filename, flags | O_BINARY, mode); in open_file()
110 if (file->fd < 0) { in open_file()
117 file->name = xstrdup(filename); in open_file()
121 bool get_file_size(struct filedes *file, u64 *size_ret) in get_file_size() argument
125 if (fstat(file->fd, &stbuf) != 0) { in get_file_size()
126 error_msg_errno("can't stat file ' in get_file_size()
133 preallocate_file(struct filedes *file, u64 size) preallocate_file() argument
153 full_read(struct filedes *file, void *buf, size_t count) full_read() argument
172 full_write(struct filedes *file, const void *buf, size_t count) full_write() argument
205 full_pwrite(struct filedes *file, const void *buf, size_t count, u64 offset) full_pwrite() argument
222 filedes_close(struct filedes *file) filedes_close() argument
237 read_callback(void *file, void *buf, size_t count) read_callback() argument
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_file.c36 #include <linux/file.h>
94 * DOC: file operations
96 * Drivers must define the file operations structure that forms the DRM
109 * userspace through the file descriptor. They are used to send vblank event and
122 * No other file operations are supported by the DRM userspace API. Overall the
148 * drm_file_alloc - allocate file context
151 * This allocates a new DRM file context. It is not linked into any context and
161 struct drm_file *file; in drm_file_alloc() local
164 file = kzalloc(sizeof(*file), GFP_KERNE in drm_file_alloc()
257 drm_file_free(struct drm_file *file) drm_file_free() argument
935 struct file *file; mock_drm_getfile() local
1031 drm_get_unmapped_area(struct file *file, unsigned long uaddr, unsigned long len, unsigned long pgoff, unsigned long flags, struct drm_vma_offset_manager *mgr) drm_get_unmapped_area() argument
1091 drm_get_unmapped_area(struct file *file, unsigned long uaddr, unsigned long len, unsigned long pgoff, unsigned long flags, struct drm_vma_offset_manager *mgr) drm_get_unmapped_area() argument
[all...]
/third_party/libsnd/src/
H A Dfile_io.c21 ** The file is split into three sections as follows:
31 ** The header file sfconfig.h MUST be included before the others to ensure
32 ** that large file support is enabled correctly on Unix systems.
69 ** Neat solution to the Win32/OS2 binary file flage requirement.
84 if (strlen (path) > 1 && strlen (path) - 1 >= sizeof (psf->file.path)) in psf_copy_filename()
89 snprintf (psf->file.path, sizeof (psf->file.path), "%s", path) ; in psf_copy_filename()
95 snprintf (psf->file.name, sizeof (psf->file.name), "%s", ccptr) ; in psf_copy_filename()
98 snprintf (psf->file in psf_copy_filename()
[all...]

Completed in 19 milliseconds

12345678910>>...316