| /third_party/icu/icu4c/source/tools/toolutil/ |
| H A D | unewdata.cpp | 10 * file name: unewdata.c 30 FileStream *file; member 96 /* open the output file */ in udata_create() 112 pData->file=T_FileStream_open(filename, "wb"); in udata_create() 113 if(pData->file==NULL) { in udata_create() 132 T_FileStream_write(pData->file, &pData->headerSize, 4); in udata_create() 135 T_FileStream_write(pData->file, pInfo, pInfo->size); in udata_create() 139 T_FileStream_write(pData->file, comment, commentLength); in udata_create() 147 T_FileStream_write(pData->file, bytes, headerSize); in udata_create() 162 if(pData->file! in udata_finish() [all...] |
| /third_party/node/deps/icu-small/source/tools/toolutil/ |
| H A D | unewdata.cpp | 10 * file name: unewdata.c 30 FileStream *file; member 96 /* open the output file */ in udata_create() 112 pData->file=T_FileStream_open(filename, "wb"); in udata_create() 113 if(pData->file==nullptr) { in udata_create() 132 T_FileStream_write(pData->file, &pData->headerSize, 4); in udata_create() 135 T_FileStream_write(pData->file, pInfo, pInfo->size); in udata_create() 139 T_FileStream_write(pData->file, comment, commentLength); in udata_create() 147 T_FileStream_write(pData->file, bytes, headerSize); in udata_create() 162 if(pData->file! in udata_finish() [all...] |
| /third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
| H A D | unewdata.cpp | 10 * file name: unewdata.c 30 FileStream *file; member 96 /* open the output file */ in udata_create() 112 pData->file=T_FileStream_open(filename, "wb"); in udata_create() 113 if(pData->file==NULL) { in udata_create() 132 T_FileStream_write(pData->file, &pData->headerSize, 4); in udata_create() 135 T_FileStream_write(pData->file, pInfo, pInfo->size); in udata_create() 139 T_FileStream_write(pData->file, comment, commentLength); in udata_create() 147 T_FileStream_write(pData->file, bytes, headerSize); in udata_create() 162 if(pData->file! in udata_finish() [all...] |
| /third_party/icu/icu4c/source/python/icutools/databuilder/ |
| H A D | utils.py | 13 def dir_for(file): 14 if isinstance(file, LocalFile): 15 return get_local_dirname(file.dirname) 16 if isinstance(file, SrcFile): 18 if isinstance(file, InFile): 20 if isinstance(file, TmpFile): 22 if isinstance(file, OutFile): 24 if isinstance(file, PkgFile): 50 file=sys.stderr 91 INPUT_FILES = [file [all...] |
| /third_party/skia/third_party/externals/icu/source/python/icutools/databuilder/ |
| H A D | utils.py | 13 def dir_for(file): 14 if isinstance(file, LocalFile): 15 return get_local_dirname(file.dirname) 16 if isinstance(file, SrcFile): 18 if isinstance(file, InFile): 20 if isinstance(file, TmpFile): 22 if isinstance(file, OutFile): 24 if isinstance(file, PkgFile): 50 file=sys.stderr 91 INPUT_FILES = [file [all...] |
| /third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/resolver/ |
| H A D | resolver_test.go | 4 // you may not use this file except in compliance with the License. 147 file.txt:1:6 'A' already declared 148 First declared here: file.txt:1:6 154 file.txt:1:13 'X' already declared 155 First declared here: file.txt:1:6`, 159 file.txt:1:3 unknown decoration 164 file.txt:1:3 expected a single value for 'display' decoration`, 170 file.txt:2:6 'e' already declared 171 First declared here: file.txt:1:6`, 177 file [all...] |
| /third_party/node/test/parallel/ |
| H A D | test-module-nodemodulepaths.js | 30 file: 'C:\\Users\\hefangshi\\AppData\\Roaming\ 45 file: 'C:\\Users\\Rocko Artischocko\\node_stuff\\foo', 54 file: 'C:\\Users\\Rocko Artischocko\\node_stuff\\foo_node_modules', 64 file: 'C:\\node_modules', 69 file: 'C:\\', 75 file: '/usr/lib/node_modules/npm/node_modules/\ 89 file: '/usr/test/lib/node_modules/npm/foo', 99 file: '/usr/test/lib/node_modules/npm/foo_node_modules', 109 file: '/node_modules', 114 file [all...] |
| /third_party/libsnd/tests/ |
| H A D | long_read_write_test.c | 60 printf (" alac - test CAF/ALAC file functions\n") ; in main() 91 { SNDFILE *file ; in short_lrw_test() local 105 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in short_lrw_test() 107 test_write_short_or_die (file, 0, output, out_len, __LINE__) ; in short_lrw_test() 109 sf_close (file) ; in short_lrw_test() 113 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in short_lrw_test() 116 exit_if_true (sfinfo.frames < out_len, "\n\nLine %d: Incorrect number of frames in file (too short). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ; in short_lrw_test() 117 exit_if_true (sfinfo.channels != 1, "\n\nLine %d: Incorrect number of channels in file.\n", __LINE__) ; in short_lrw_test() 119 check_log_buffer_or_die (file, __LINE__) ; in short_lrw_test() 121 test_read_short_or_die (file, in short_lrw_test() 137 { SNDFILE *file ; int_lrw_test() local 183 { SNDFILE *file ; float_lrw_test() local 229 { SNDFILE *file ; double_lrw_test() local [all...] |
| H A D | error_test.c | 77 SNDFILE *file ; in error_value_test() local 87 file = sf_open (filename, SFM_READ, &sfinfo) ; in error_value_test() 88 if (file != NULL) in error_value_test() 89 { printf ("\n\nLine %d : Should not have been able to open this file.\n\n", __LINE__) ; in error_value_test() 125 FILE *file ; in zero_length_test() local 129 /* Create a zero length file. */ in zero_length_test() 130 file = fopen (filename, "w") ; in zero_length_test() 131 exit_if_true (file == NULL, "\n\nLine %d : fopen ('%s') failed.\n", __LINE__, filename) ; in zero_length_test() 132 fclose (file) ; in zero_length_test() 152 FILE *file ; in bad_wav_test() local 182 FILE *file ; wav_list_recover_test() local 222 FILE *file ; error_close_test() local 268 FILE *file ; unrecognised_test() local [all...] |
| /third_party/rust/crates/rustix/tests/fs/ |
| H A D | invalid_offset.rs | 1 //! Tests for extreme `u64` file offsets. 3 //! POSIX-ish interfaces tend to use signed integers for file offsets, while 5 //! take file offsets are properly diagnosed. 19 let file = openat( in invalid_offset_seek() 27 seek(&file, SeekFrom::Start(u64::MAX)).unwrap_err(); in invalid_offset_seek() 28 seek(&file, SeekFrom::Start(i64::MAX as u64 + 1)).unwrap_err(); in invalid_offset_seek() 29 seek(&file, SeekFrom::End(-1)).unwrap_err(); in invalid_offset_seek() 30 seek(&file, SeekFrom::End(i64::MIN)).unwrap_err(); in invalid_offset_seek() 31 seek(&file, SeekFrom::Current(-1)).unwrap_err(); in invalid_offset_seek() 32 seek(&file, SeekFro in invalid_offset_seek() [all...] |
| /third_party/ltp/include/ |
| H A D | tst_safe_clocks.h | 18 static inline int safe_clock_getres(const char *file, const int lineno, in safe_clock_getres() argument 26 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_getres() 29 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_getres() 37 static inline int safe_clock_gettime(const char *file, const int lineno, in safe_clock_gettime() argument 45 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_gettime() 48 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_gettime() 57 static inline int safe_clock_settime(const char *file, const int lineno, in safe_clock_settime() argument 65 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_settime() 68 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_settime() 76 static inline int safe_timer_create(const char *file, cons argument 96 safe_timer_settime(const char *file, const int lineno, timer_t timerid, int flags, const struct itimerspec *new_value, struct itimerspec *old_value) safe_timer_settime() argument 116 safe_timer_gettime(const char *file, const int lineno, timer_t timerid, struct itimerspec *curr_value) safe_timer_gettime() argument 135 safe_timer_delete(const char *file, const int lineno, timer_t timerid) safe_timer_delete() argument [all...] |
| H A D | safe_net_fn.h | 28 int safe_socket(const char *file, const int lineno, void (cleanup_fn)(void), 31 int safe_socketpair(const char *file, const int lineno, int domain, int type, 34 int safe_getsockopt(const char *file, const int lineno, int sockfd, int level, 37 int safe_setsockopt(const char *file, const int lineno, int sockfd, int level, 40 ssize_t safe_send(const char *file, const int lineno, char len_strict, 43 ssize_t safe_sendto(const char *file, const int lineno, char len_strict, 47 ssize_t safe_sendmsg(const char *file, const int lineno, size_t msg_len, 50 ssize_t safe_recv(const char *file, const int lineno, size_t len, 53 ssize_t safe_recvmsg(const char *file, const int lineno, size_t msg_len, 56 int safe_bind(const char *file, cons [all...] |
| /third_party/vk-gl-cts/external/vulkan-docs/src/scripts/Retired/ |
| H A D | fixupRef.py | 34 file=fp) 39 file=fp) 40 print('--', file=fp) 44 print('--', file=fp) 46 # print("// end [open,refpage='" + pi.name + "']", file=fp) 49 # file with open blocks, per # ??? . 51 # outDir - output directory to write updated file to, if not overwritten 52 # overwrite - True if the file should be overwritten in place 56 file = loadFile(specFile) 57 if file [all...] |
| /base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/ |
| H A D | file_util.cpp | 4 * you may not use this file except in compliance with the License.
32 bool IsFileExists(const std::string& file)
in IsFileExists() argument 34 return access(file.c_str(), F_OK) == 0;
in IsFileExists() 37 bool IsFile(const std::string& file)
in IsFile() argument 40 return lstat(file.c_str(), &statBuf) == 0 ? S_ISREG(statBuf.st_mode) : false;
in IsFile() 49 bool RemoveFile(const std::string& file)
in RemoveFile() argument 51 return !IsFileExists(file) || (remove(file.c_str()) == 0);
in RemoveFile() 135 for (auto& file : files) {
in GetDirSize() 136 if (stat(file in GetDirSize() 143 GetFileSize(const std::string& file) GetFileSize() argument 149 ChangeMode(const std::string& file, const mode_t& mode) ChangeMode() argument 154 CreateFile(const std::string& file, const mode_t& mode) CreateFile() argument 168 SaveStringToFile(const std::string& file, const std::string& content, bool isTrunc) SaveStringToFile() argument [all...] |
| /third_party/musl/libc-test/src/functionalext/supplement/misc/ |
| H A D | nftw.c | 4 * you may not use this file except in compliance with the License. 107 char file[PATH_MAX]; in nftw_build_testfile() local 108 int result = snprintf(file, sizeof(file), "%s/normal_file.txt", path); in nftw_build_testfile() 109 if (result >= sizeof(file)) { in nftw_build_testfile() 112 // Create plain file in nftw_build_testfile() 113 int fd = open(file, O_WRONLY | O_CREAT, 0644); in nftw_build_testfile() 120 result = snprintf(file, sizeof(file), "%s/non-executable_file.txt", path); in nftw_build_testfile() 121 if (result >= sizeof(file)) { in nftw_build_testfile() [all...] |
| /third_party/node/deps/openssl/openssl/crypto/ |
| H A D | mem.c | 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 141 /* suppressed on Windows as POSIX-like file descriptors are non-inheritable */ in shouldfail() 177 void *CRYPTO_malloc(size_t num, const char *file, int line) in CRYPTO_malloc() argument 181 return malloc_impl(num, file, line); in CRYPTO_malloc() 199 void *CRYPTO_zalloc(size_t num, const char *file, int line) in CRYPTO_zalloc() argument 203 ret = CRYPTO_malloc(num, file, line); in CRYPTO_zalloc() 210 void *CRYPTO_realloc(void *str, size_t num, const char *file, int line) in CRYPTO_realloc() argument 214 return realloc_impl(str, num, file, line); in CRYPTO_realloc() 217 return CRYPTO_malloc(num, file, lin in CRYPTO_realloc() 228 CRYPTO_clear_realloc(void *str, size_t old_len, size_t num, const char *file, int line) CRYPTO_clear_realloc() argument 255 CRYPTO_free(void *str, const char *file, int line) CRYPTO_free() argument 266 CRYPTO_clear_free(void *str, size_t num, const char *file, int line) CRYPTO_clear_free() argument 290 CRYPTO_mem_debug_push(const char *info, const char *file, int line) CRYPTO_mem_debug_push() argument 301 CRYPTO_mem_debug_malloc(void *addr, size_t num, int flag, const char *file, int line) CRYPTO_mem_debug_malloc() argument 307 CRYPTO_mem_debug_realloc(void *addr1, void *addr2, size_t num, int flag, const char *file, int line) CRYPTO_mem_debug_realloc() argument 313 CRYPTO_mem_debug_free(void *addr, int flag, const char *file, int line) CRYPTO_mem_debug_free() argument [all...] |
| /third_party/openssl/crypto/ |
| H A D | mem.c | 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 137 /* suppressed on Windows as POSIX-like file descriptors are non-inheritable */ in shouldfail() 171 void *CRYPTO_malloc(size_t num, const char *file, int line) in CRYPTO_malloc() argument 175 return malloc_impl(num, file, line); in CRYPTO_malloc() 193 void *CRYPTO_zalloc(size_t num, const char *file, int line) in CRYPTO_zalloc() argument 197 ret = CRYPTO_malloc(num, file, line); in CRYPTO_zalloc() 205 void *CRYPTO_realloc(void *str, size_t num, const char *file, int line) in CRYPTO_realloc() argument 209 return realloc_impl(str, num, file, line); in CRYPTO_realloc() 213 return CRYPTO_malloc(num, file, lin in CRYPTO_realloc() 223 CRYPTO_clear_realloc(void *str, size_t old_len, size_t num, const char *file, int line) CRYPTO_clear_realloc() argument 250 CRYPTO_free(void *str, const char *file, int line) CRYPTO_free() argument 261 CRYPTO_clear_free(void *str, size_t num, const char *file, int line) CRYPTO_clear_free() argument 285 CRYPTO_mem_debug_push(const char *info, const char *file, int line) CRYPTO_mem_debug_push() argument 296 CRYPTO_mem_debug_malloc(void *addr, size_t num, int flag, const char *file, int line) CRYPTO_mem_debug_malloc() argument 302 CRYPTO_mem_debug_realloc(void *addr1, void *addr2, size_t num, int flag, const char *file, int line) CRYPTO_mem_debug_realloc() argument 308 CRYPTO_mem_debug_free(void *addr, int flag, const char *file, int line) CRYPTO_mem_debug_free() argument [all...] |
| /third_party/python/Lib/test/ |
| H A D | test_print.py | 10 # sep, end, and file. 16 lambda args, sep, end, file: print(*args), 18 lambda args, sep, end, file: print(file=file, *args), 20 lambda args, sep, end, file: print(end=end, *args), 22 lambda args, sep, end, file: print(end=end, file=file, *args), 24 lambda args, sep, end, file [all...] |
| /third_party/mbedtls/library/ |
| H A D | debug.c | 35 const char *file, int line, in debug_send_line() 46 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, idstr); in debug_send_line() 48 ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, str); in debug_send_line() 54 const char *file, int line, in mbedtls_debug_print_msg() 84 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_msg() 88 const char *file, int line, in mbedtls_debug_print_ret() 112 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_ret() 116 const char *file, int line, const char *text, in mbedtls_debug_print_buf() 133 debug_send_line(ssl, level, file, line, str); in mbedtls_debug_print_buf() 144 debug_send_line(ssl, level, file, lin in mbedtls_debug_print_buf() 34 debug_send_line(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *str) debug_send_line() argument 53 mbedtls_debug_print_msg(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *format, ...) mbedtls_debug_print_msg() argument 87 mbedtls_debug_print_ret(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *text, int ret) mbedtls_debug_print_ret() argument 115 mbedtls_debug_print_buf(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *text, const unsigned char *buf, size_t len) mbedtls_debug_print_buf() argument 171 mbedtls_debug_print_ecp(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *text, const mbedtls_ecp_point *X) mbedtls_debug_print_ecp() argument 193 mbedtls_debug_print_ec_coord(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *text, const unsigned char *buf, size_t len) mbedtls_debug_print_ec_coord() argument 233 mbedtls_debug_print_psa_ec(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *text, const mbedtls_pk_context *pk) mbedtls_debug_print_psa_ec() argument 265 mbedtls_debug_print_mpi(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *text, const mbedtls_mpi *X) mbedtls_debug_print_mpi() argument 316 debug_print_pk(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *text, const mbedtls_pk_context *pk) debug_print_pk() argument 360 debug_print_line_by_line(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *text) debug_print_line_by_line() argument 384 mbedtls_debug_print_crt(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *text, const mbedtls_x509_crt *crt) mbedtls_debug_print_crt() argument 417 mbedtls_debug_printf_ecdh_internal(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const mbedtls_ecdh_context *ecdh, mbedtls_debug_ecdh_attr attr) mbedtls_debug_printf_ecdh_internal() argument 447 mbedtls_debug_printf_ecdh(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const mbedtls_ecdh_context *ecdh, mbedtls_debug_ecdh_attr attr) mbedtls_debug_printf_ecdh() argument [all...] |
| /third_party/python/Include/ |
| H A D | dynamic_annotations.h | 33 /* This file defines dynamic annotations for use with dynamic analysis 49 This file supports the following dynamic analysis tools: 375 void AnnotateRWLockCreate(const char *file, int line, 377 void AnnotateRWLockDestroy(const char *file, int line, 379 void AnnotateRWLockAcquired(const char *file, int line, 381 void AnnotateRWLockReleased(const char *file, int line, 383 void AnnotateBarrierInit(const char *file, int line, 386 void AnnotateBarrierWaitBefore(const char *file, int line, 388 void AnnotateBarrierWaitAfter(const char *file, int line, 390 void AnnotateBarrierDestroy(const char *file, in [all...] |
| /third_party/skia/third_party/externals/tint/src/utils/io/ |
| H A D | tmpfile_test.cc | 4 // you may not use this file except in compliance with the License. 30 GTEST_SKIP() << "Unable to create a temporary file"; in TEST() 35 // Write a string to the temporary file in TEST() 38 // Check the content of the file in TEST() 40 std::ifstream file(path); in TEST() 41 ASSERT_TRUE(file); in TEST() 43 EXPECT_TRUE(std::getline(file, line)); in TEST() 45 EXPECT_FALSE(std::getline(file, line)); in TEST() 48 // Write some more content to the file in TEST() 51 // Check the content of the file agai in TEST() [all...] |
| /third_party/ltp/testcases/kernel/syscalls/fanotify/ |
| H A D | fanotify04.c | 53 static void check_mark(char *file, unsigned long long flag, char *flagstr, in check_mark() argument 57 file) != expect) { in check_mark() 60 "AT_FDCWD, '%s') %s", fd_notify, flagstr, file, in check_mark() 65 "AT_FDCWD, '%s') %s", fd_notify, flagstr, file, in check_mark() 73 test_event(file); in check_mark() 76 FAN_OPEN, AT_FDCWD, file); in check_mark() 80 #define CHECK_MARK(file, flag, expect, func) check_mark(file, flag, #flag, expect, func) 82 static void do_open(char *file, int flag) in do_open() argument 86 fd = SAFE_OPEN(file, O_RDONL in do_open() 90 open_file(char *file) open_file() argument 95 open_dir(char *file) open_dir() argument 124 do_open_test(char *file, int flag, int mask) do_open_test() argument 131 test_open_file(char *file) test_open_file() argument 158 test_open_symlink(char *file) test_open_symlink() argument [all...] |
| /third_party/node/deps/v8/third_party/zlib/ |
| H A D | gzlib.c | 74 /* Reset gzip file state */ 80 state->eof = 0; /* not at end of file */ 90 /* Open a gzip file either by name or file descriptor. */ 187 state->direct = 1; /* for empty file */ 240 /* open the file with the appropriate flags (or just use fd) */ 316 int ZEXPORT gzbuffer(file, size) in gzbuffer() 317 gzFile file; in gzbuffer() 323 if (file == NULL) 325 state = (gz_statep)file; [all...] |
| /third_party/ltp/tools/sparse/sparse-src/validation/ |
| H A D | test-suite | 8 default_cmd="sparse \$file" 70 # get_tag_value(file) - get the 'check-<...>' tags & values 259 error "Can't open file $1" 278 echo " [file ...] Runs the test suite on the given file(s)." 280 echo " If no file is given, run the whole testsuite." 281 echo " single file Run the test in 'file'." 282 echo " format file [name [cmd]] Help writing a new test case using cmd." 296 # do_test(file) [all...] |
| /third_party/libwebsockets/win32port/zlib/ |
| H A D | gzlib.c | 70 /* Reset gzip file state */
76 state->eof = 0; /* not at end of file */
78 state->direct = 1; /* default for empty file */
86 /* Open a gzip file either by name or file descriptor. */
158 /* open the file with the appropriate mode (or just use fd) */
228 int ZEXPORT gzbuffer(file, size)
in gzbuffer() 229 gzFile file;
in gzbuffer() 235 if (file == NULL)
237 state = (gz_statep)file;
[all...] |