Home
last modified time | relevance | path

Searched refs:file (Results 451 - 475 of 8763) sorted by relevance

1...<<11121314151617181920>>...351

/third_party/ltp/testcases/network/tcp_cmds/sendfile/
H A Dsendfile01.sh35 local file lfile size
37 for file in $(ls $TST_NET_DATAROOT/ascii.*); do
38 lfile="$(basename $file)"
39 size=$(stat -c '%s' $file)
40 tst_res TINFO "test IP: $(tst_ipaddr rhost), port: $port, file: $lfile"
42 ROD $client $(tst_ipaddr rhost) $port $lfile $file $size \> /dev/null
43 EXPECT_PASS diff $file $lfile
/third_party/ltp/testcases/open_posix_testsuite/bin/
H A DMakefile20 set -e; for file in $(INSTALL_BIN_TARGETS); do \
21 install -m 00755 $$file $(DESTDIR)/$(bindir)/$$file; \
26 set -e; for file in $(INSTALL_TESTCASE_BIN_TARGETS); do \
27 install -m 00755 $$file $(DESTDIR)/$(testdir_bin)/$$file; \
/third_party/skia/third_party/externals/dawn/src/common/
H A DAssert.h4 // you may not use this file except in compliance with the License.
28 // - Logging of the error with file, line and function information.
44 # define DAWN_ASSERT_CALLSITE_HELPER(file, func, line, condition) \
47 HandleAssertionFailure(file, func, line, #condition); \
52 # define DAWN_ASSERT_CALLSITE_HELPER(file, func, line, condition) __assume(condition)
54 # define DAWN_ASSERT_CALLSITE_HELPER(file, func, line, condition) __builtin_assume(condition)
56 # define DAWN_ASSERT_CALLSITE_HELPER(file, func, line, condition) \
75 void HandleAssertionFailure(const char* file,
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
H A Dparser_test.cc4 // you may not use this file except in compliance with the License.
29 Source::File file("test.wgsl", ""); in TEST_F()
30 auto program = Parse(&file); in TEST_F()
36 Source::File file("test.wgsl", R"( in TEST_F()
42 auto program = Parse(&file); in TEST_F()
50 Source::File file("test.wgsl", R"( in TEST_F()
55 auto program = Parse(&file); in TEST_F()
/third_party/skia/third_party/externals/tint/src/utils/io/
H A Dtmpfile_posix.cc4 // you may not use this file except in compliance with the License.
33 // mkstemps requires an `int` for the file extension name but STL represents in TmpFilePath()
36 // defined. While such a large file extension is unlikely in practice, we in TmpFilePath()
41 int file = mkstemps(&name[0], static_cast<int>(ext.length())); in TmpFilePath() local
42 if (file != -1) { in TmpFilePath()
43 close(file); in TmpFilePath()
61 if (auto* file = fopen(path_.c_str(), "ab")) { in Append()
62 fwrite(data, size, 1, file); in Append()
63 fclose(file); in Append()
/third_party/selinux/checkpolicy/
H A Dparse_util.c35 int read_source_policy(policydb_t * p, const char *file, const char *progname) in read_source_policy() argument
37 yyin = fopen(file, "r"); in read_source_policy()
39 fprintf(stderr, "%s: unable to open %s: %s\n", progname, file, strerror(errno)); in read_source_policy()
42 set_source_file(file); in read_source_policy()
50 policydbp->name = strdup(file); in read_source_policy()
62 set_source_file(file); in read_source_policy()
/third_party/rust/crates/syn/tests/regression/
H A Dissue1235.rs12 let file = syn::parse2::<syn::File>(tokens).unwrap(); in main()
13 println!("{:#?}", file); in main()
21 let file = syn::parse2::<syn::File>(tokens).unwrap(); in main()
22 println!("{:#?}", file); in main()
30 let file = syn::parse2::<syn::File>(tokens).unwrap(); in main()
31 println!("{:#?}", file); in main()
/third_party/ltp/testcases/kernel/fs/racer/
H A Dfs_racer_file_concat.sh26 cat $DIR/$file >> $DIR/$new_file
27 cat $DIR/$file/$file/$file >> $DIR/$new_file
32 file=$(($RANDOM%$MAX))
/third_party/python/Lib/
H A Dos.py15 - os.devnull is the file path of the null device ('/dev/null', etc.)
266 file.
295 To get a full path (which begins with top) to a file or directory in
439 and `dirfd` is a file descriptor referring to the directory `dirpath`.
444 If dir_fd is not None, it should be a file descriptor open to a directory,
449 Since fwalk() yields file descriptors, those are only valid until the
480 # Note: This uses O(depth of the directory tree) file descriptors: if
537 def execl(file, *args):
538 """execl(file, *args)
540 Execute the executable file wit
[all...]
/third_party/gn/src/base/files/
H A Dfile_posix.cc3 // found in the LICENSE file.
5 #include "base/files/file.h"
40 // them or wrap them in order to minimize the number of #ifdef's in this file.
42 bool IsOpenAppend(PlatformFile file) { in IsOpenAppend() argument
43 return (fcntl(file, F_GETFL) & O_APPEND) != 0; in IsOpenAppend()
46 int CallFtruncate(PlatformFile file, int64_t length) { in CallFtruncate() argument
47 return HANDLE_EINTR(ftruncate(file, length)); in CallFtruncate()
51 File::Error CallFcntlFlock(PlatformFile file, bool do_lock) { in CallFcntlFlock() argument
56 lock.l_len = 0; // Lock entire file. in CallFcntlFlock()
57 if (HANDLE_EINTR(fcntl(file, F_SETL in CallFcntlFlock()
65 IsOpenAppend(PlatformFile file) IsOpenAppend() argument
72 CallFtruncate(PlatformFile file, int64_t length) CallFtruncate() argument
77 CallFcntlFlock(PlatformFile file, bool do_lock) CallFcntlFlock() argument
381 SetPlatformFile(PlatformFile file) global() argument
[all...]
/third_party/fsverity-utils/programs/
H A Dcmd_sign.c8 * license that can be found in the LICENSE file or at
19 struct filedes file; in write_signature() local
22 if (!open_file(&file, filename, O_WRONLY|O_CREAT|O_TRUNC, 0644)) in write_signature()
24 ok = full_write(&file, sig, sig_size); in write_signature()
25 ok &= filedes_close(&file); in write_signature()
43 /* Sign a file for fs-verity by computing its digest, then signing it. */
47 struct filedes file = { .fd = -1 }; in fsverity_cmd_sign() local
116 if (!open_file(&file, argv[0], O_RDONLY, 0)) in fsverity_cmd_sign()
119 if (!get_file_size(&file, &tree_params.file_size)) in fsverity_cmd_sign()
122 if (libfsverity_compute_digest(&file, read_callbac in fsverity_cmd_sign()
[all...]
/third_party/cJSON/tests/
H A Dcommon.h48 FILE *file = NULL; in read_file() local
54 file = fopen(filename, "rb"); in read_file()
55 if (file == NULL) in read_file()
61 if (fseek(file, 0, SEEK_END) != 0) in read_file()
65 length = ftell(file); in read_file()
70 if (fseek(file, 0, SEEK_SET) != 0) in read_file()
82 /* read the file into memory */ in read_file()
83 read_chars = fread(content, sizeof(char), (size_t)length, file); in read_file()
94 if (file != NULL) in read_file()
96 fclose(file); in read_file()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dtextfile.cpp24 file(0), in TextFile()
62 file = T_FileStream_open(buffer, "rb"); in TextFile()
63 if (file == 0) { in TextFile()
70 if (file != 0) T_FileStream_close(file); in ~TextFile()
79 if (T_FileStream_eof(file)) { in readLine()
89 int c = T_FileStream_getc(file); // sic: int, not int32_t in readLine()
93 c = T_FileStream_getc(file); in readLine()
95 T_FileStream_ungetc(c, file); in readLine()
/third_party/libsnd/programs/
H A Dsndfile-metadata-get.c49 static void process_args (SNDFILE * file, const SF_BROADCAST_INFO_2K * binfo, int argc, char * argv []) ;
53 { SNDFILE *file ; in main() local
81 if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL) in main()
82 { printf ("Error : Open of file '%s' failed : %s\n\n", filename, sf_strerror (file)) ; in main()
87 if (sf_command (file, SFC_GET_BROADCAST_INFO, &binfo, sizeof (binfo)) == 0) in main()
90 process_args (file, &binfo, argc - 2, argv + start) ; in main()
92 sf_close (file) ; in main()
102 { printf ("\nUsage :\n %s [options] <file>\n\nOptions:\n", progname) ; in usage_exit()
134 process_args (SNDFILE * file, cons argument
[all...]
/third_party/lzma/CPP/Common/
H A DListFileUtils.cpp34 static bool My_File_Read(CSysInFile &file, void *data, size_t size, DWORD &lastError) in My_File_Read() argument
37 if (!file.ReadFull(data, size, processed)) in My_File_Read()
54 CSysInFile file; in ReadNamesFromListFile2() local
55 if (!file.Open(fileName)) in ReadNamesFromListFile2()
61 if (!file.GetLength(fileSize)) in ReadNamesFromListFile2()
75 if (!My_File_Read(file, buf, (size_t)fileSize, lastError)) in ReadNamesFromListFile2()
78 file.Close(); in ReadNamesFromListFile2()
105 if (!My_File_Read(file, p, (size_t)fileSize, lastError)) in ReadNamesFromListFile2()
108 file.Close(); in ReadNamesFromListFile2()
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_ir.h43 assert(file == ARF || file == FIXED_GRF || file == MRF || file == IMM); in as_brw_reg()
50 assert(file == ARF || file == FIXED_GRF || file == MRF || file == IMM); in as_brw_reg()
68 using brw_reg::file;
/third_party/lz4/programs/
H A Dplatform.h62 #if !defined(__64BIT__) || defined(__MINGW32__) /* No point defining Large file for 64 bit but MinGW-w64 requires it */
70 # define _LARGE_FILES /* Large file support on 32-bits AIX and HP-UX */
138 # define SET_BINARY_MODE(file) { int unused=_setmode(_fileno(file), _O_BINARY); (void)unused; }
139 # define SET_SPARSE_FILE_MODE(file) { DWORD dw; DeviceIoControl((HANDLE) _get_osfhandle(_fileno(file)), FSCTL_SET_SPARSE, 0, 0, 0, 0, &dw, 0); }
141 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
142 # define SET_SPARSE_FILE_MODE(file)
145 # define SET_BINARY_MODE(file)
[all...]
/third_party/musl/libc-test/src/common/
H A Dcfi_util.h4 * you may not use this file except in compliance with the License.
67 static void CheckCfiLog(char *file, const char *needle) in CheckCfiLog() argument
70 printf("[cfi checking]:%s\n", file); in CheckCfiLog()
73 FILE *fp = fopen(file, "r"); in CheckCfiLog()
83 t_error("FAIL %s size is <=0!\n", file); in CheckCfiLog()
131 auto callback = [=](char *file) { CheckCfiLog(file, pattern); }; in FindAndCheck()
141 auto callback = [=](char *file) { CheckCfiLog(file, pattern); }; in FindAndCheck()
150 auto callback = [](char *file) { t_erro in ExpectCfiOk()
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Djsgenerator.py38 write(self.beginDict(name), file=self.outFile)
44 write(f'{enquote(key)} : {value},', file=self.outFile)
45 write(self.endDict(), file=self.outFile)
77 write(self.beginDict('mapDict'), file=self.outFile)
81 file=self.outFile)
82 write(self.endDict(), file=self.outFile)
92 write(self.beginDict('requiredBy'), file=self.outFile)
97 write('{} : [{}],'.format(enquote(api), reqs), file=self.outFile)
98 write(self.endDict(), file=self.outFile)
H A Dpygenerator.py31 write(self.beginDict(name), file=self.outFile)
37 write(f'{enquote(key)} : {value},', file=self.outFile)
38 write(self.endDict(), file=self.outFile)
72 write(self.beginDict('mapDict'), file=self.outFile)
75 pprint.pformat(self.mapDict[baseType])), file=self.outFile)
76 write(self.endDict(), file=self.outFile)
86 write(self.beginDict('requiredBy'), file=self.outFile)
91 write('{} : [{}],'.format(enquote(api), reqs), file=self.outFile)
92 write(self.endDict(), file=self.outFile)
/third_party/vk-gl-cts/framework/common/
H A DtcuDefs.hpp10 * you may not use this file except in compliance with the License.
22 * \file
54 Exception (const char* message, const char* expr, const char* file, int line);
70 TestException (const char* message, const char* expr, const char* file, int line, qpTestResult result);
85 TestError (const char* message, const char* expr, const char* file, int line);
86 TestError (const std::string& message, const char* expr, const char* file, int line);
95 InternalError (const char* message, const char* expr, const char* file, int line);
96 InternalError (const std::string& message, const char* expr, const char* file, int line);
105 ResourceError (const char* message, const char* expr, const char* file, int line);
116 NotSupportedError (const char* message, const char* expr, const char* file, in
[all...]
/third_party/node/deps/openssl/openssl/engines/
H A De_loader_attic.c5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
12 /* This file has quite some overlap with providers/implementations/storemgmt/file_store.c */
153 * EMBEDDED is a special type of OSSL_STORE_INFO, specially for the file
217 * The file scheme decoders
231 * pem_name: If this blob comes from a PEM file, this holds
233 * file, this is NULL.
234 * pem_header: If this blob comes from a PEM file, this holds
236 * file, this is NULL.
875 BIO *file; member
883 } file; global() member
[all...]
/third_party/openssl/engines/
H A De_loader_attic.c5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
12 /* This file has quite some overlap with providers/implementations/storemgmt/file_store.c */
153 * EMBEDDED is a special type of OSSL_STORE_INFO, specially for the file
217 * The file scheme decoders
231 * pem_name: If this blob comes from a PEM file, this holds
233 * file, this is NULL.
234 * pem_header: If this blob comes from a PEM file, this holds
236 * file, this is NULL.
875 BIO *file; member
883 } file; global() member
[all...]
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dglobal.c4 * you may not use this file except in compliance with the License.
159 int32_t file = open(realResourcePath, O_RDONLY, S_IRUSR | S_IRGRP | S_IROTH); in GLOBAL_GetValueByIdInternal() local
160 if (file < 0) { in GLOBAL_GetValueByIdInternal()
163 int32_t ret = utilsImpl->GetIdHeaderByOffset(file, idHeaderOffset, &idHeader); in GLOBAL_GetValueByIdInternal()
165 close(file); in GLOBAL_GetValueByIdInternal()
173 ret = utilsImpl->GetIdItem(file, idHeader.idParams[i].offset, &idItem); in GLOBAL_GetValueByIdInternal()
175 close(file); in GLOBAL_GetValueByIdInternal()
181 close(file); in GLOBAL_GetValueByIdInternal()
191 close(file); in GLOBAL_GetValueByIdInternal()
227 int32_t file in GLOBAL_GetValueByNameInternal() local
[all...]
/third_party/gn/src/base/
H A Dlogging.cc3 // found in the LICENSE file.
143 LogMessage::LogMessage(const char* file, int line, LogSeverity severity) in LogMessage() argument
145 Init(file, line); in LogMessage()
148 LogMessage::LogMessage(const char* file, int line, const char* condition) in LogMessage() argument
150 Init(file, line); in LogMessage()
154 LogMessage::LogMessage(const char* file, int line, std::string* result) in LogMessage() argument
156 Init(file, line); in LogMessage()
161 LogMessage::LogMessage(const char* file, in LogMessage() argument
166 Init(file, line); in LogMessage()
190 void LogMessage::Init(const char* file, in argument
268 Win32ErrorLogMessage(const char* file, int line, LogSeverity severity, SystemErrorCode err) Win32ErrorLogMessage() argument
278 ErrnoLogMessage(const char* file, int line, LogSeverity severity, SystemErrorCode err) ErrnoLogMessage() argument
322 LogErrorNotReached(const char* file, int line) LogErrorNotReached() argument
[all...]

Completed in 12 milliseconds

1...<<11121314151617181920>>...351