Home
last modified time | relevance | path

Searched refs:file (Results 326 - 350 of 7268) sorted by relevance

1...<<11121314151617181920>>...291

/third_party/rust/crates/rustix/tests/fs/
H A Dfile.rs24 let file = rustix::fs::openat( in test_file()
34 &file, in test_file()
54 rustix::fs::fadvise(&file, 0, 10, rustix::fs::Advice::Normal).unwrap(); in test_file()
57 rustix::io::fcntl_getfd(&file).unwrap(), in test_file()
61 rustix::fs::fcntl_getfl(&file).unwrap(), in test_file()
65 let stat = rustix::fs::fstat(&file).unwrap(); in test_file()
78 let statfs = rustix::fs::fstatfs(&file).unwrap(); in test_file()
90 let statvfs = rustix::fs::fstatvfs(&file).unwrap(); in test_file()
95 assert_eq!(rustix::io::is_read_write(&file).unwrap(), (true, false)); in test_file()
97 assert_ne!(rustix::io::ioctl_fionread(&file) in test_file()
[all...]
/third_party/spirv-tools/tools/
H A Dio.h4 // you may not use this file except in compliance with the License.
40 // Appends the contents of the |file| to |data|, assuming each element in the
41 // file is of type |T|.
43 void ReadFile(FILE* file, std::vector<T>* data) { in ReadFile() argument
44 if (file == nullptr) return; in ReadFile()
48 while (size_t len = fread(buf, sizeof(T), buf_size, file)) { in ReadFile()
53 // Returns true if |file| has encountered an error opening the file or reading
54 // the file as a series of element of type |T|. If there was an error, writes an
57 bool WasFileCorrectlyRead(FILE* file, cons argument
[all...]
/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...]
H A Dnetrc.py11 """Exception raised on syntax errors in the .netrc file."""
67 def __init__(self, file=None):
68 default_netrc = file is None
69 if file is None:
70 file = os.path.join(os.path.expanduser("~"), ".netrc")
74 with open(file, encoding="utf-8") as fp:
75 self._parse(file, fp, default_netrc)
77 with open(file, encoding="locale") as fp:
78 self._parse(file, fp, default_netrc)
80 def _parse(self, file, f
[all...]
/third_party/mbedtls/library/
H A Ddebug_internal.h2 * \file debug_internal.h
18 * context, file and line number parameters.
22 * \param file file the message has occurred in
31 const char *file, int line,
37 * which supplies the ssl context, file and line number parameters.
41 * \param file file the error has occurred in
50 const char *file, int line,
56 * which supplies the ssl context, file an
[all...]
/third_party/node/deps/v8/tools/
H A Dshell-utils.h44 FILE* file = fopen(name, "rb"); in ReadFileAndRepeat() local
46 if (file == NULL) return NULL; in ReadFileAndRepeat()
48 fseek(file, 0, SEEK_END); in ReadFileAndRepeat()
49 int file_size = static_cast<int>(ftell(file)); in ReadFileAndRepeat()
50 rewind(file); in ReadFileAndRepeat()
56 int read = static_cast<int>(fread(&chars[i], 1, file_size - i, file)); in ReadFileAndRepeat()
59 fclose(file); in ReadFileAndRepeat()
H A Dv8_presubmit.py208 for file in files:
210 handle = open(file, "rb")
212 if not file in self.sums or self.sums[file] != file_sum:
213 changed_or_new.append(file)
214 self.sums[file] = file_sum
219 def RemoveFile(self, file):
220 if file in self.sums:
221 self.sums.pop(file)
234 for file i
[all...]
/third_party/node/deps/zlib/
H A Dgzclose.c8 /* gzclose() is in a separate file so that it is linked in only if it is used.
11 int ZEXPORT gzclose(gzFile file) { in gzclose() argument
15 if (file == NULL) in gzclose()
17 state = (gz_statep)file; in gzclose()
19 return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); in gzclose()
21 return gzclose_r(file); in gzclose()
H A Dzlib.h73 file compression on file systems, has a larger header than zlib to maintain
117 int xflags; /* extra flags (not used when writing a gzip file) */
122 Bytef *name; /* pointer to zero-terminated file name or Z_NULL */
128 when writing a gzip file) */
223 compatible with the zlib.h header file used by the application. This check
572 file name, no extra data, no comment, no modification time (set to zero), no
821 gzip file" and give up.
1093 the version of the header file.
1106 inflate() for file
[all...]
H A Dgzread.c38 file is reached, even though there may be unused data in the buffer. Once
39 that data has been used, no more attempts will be made to read the file.
42 available data from the input file. */
73 case, all further file reads will be directly to either the output buffer or
117 gzip file, to wit, if a single 31 byte is written, then we cannot tell in gz_look()
118 whether this is a single-byte file, or just a partially written gzip in gz_look()
119 file -- for here we assume that if a gzip file is being written, then in gz_look()
121 single byte is sufficient indication that it is not a gzip file) */ in gz_look()
168 gz_error(state, Z_BUF_ERROR, "unexpected end of file"); in gz_decomp()
345 gzread(gzFile file, voidp buf, unsigned len) gzread() argument
377 gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file) gzfread() argument
412 gzgetc(gzFile file) gzgetc() argument
437 gzgetc_(gzFile file) gzgetc_() argument
442 gzungetc(int c, gzFile file) gzungetc() argument
499 gzgets(gzFile file, char *buf, int len) gzgets() argument
559 gzdirect(gzFile file) gzdirect() argument
577 gzclose_r(gzFile file) gzclose_r() argument
[all...]
/third_party/zlib/
H A Dgzclose.c8 /* gzclose() is in a separate file so that it is linked in only if it is used.
11 int ZEXPORT gzclose(gzFile file) { in gzclose() argument
15 if (file == NULL) in gzclose()
17 state = (gz_statep)file; in gzclose()
19 return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); in gzclose()
21 return gzclose_r(file); in gzclose()
H A Dgzread.c47 file is reached, even though there may be unused data in the buffer. Once
48 that data has been used, no more attempts will be made to read the file.
51 available data from the input file. */
87 case, all further file reads will be directly to either the output buffer or
136 gzip file, to wit, if a single 31 byte is written, then we cannot tell in gz_look()
137 whether this is a single-byte file, or just a partially written gzip in gz_look()
138 file -- for here we assume that if a gzip file is being written, then in gz_look()
140 single byte is sufficient indication that it is not a gzip file) */ in gz_look()
190 gz_error(state, Z_BUF_ERROR, "unexpected end of file"); in gz_decomp()
396 gzread(gzFile file, voidp buf, unsigned len) gzread() argument
435 gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file) gzfread() argument
471 gzgetc(gzFile file) gzgetc() argument
501 gzgetc_(gzFile file) gzgetc_() argument
507 gzungetc(int c, gzFile file) gzungetc() argument
580 gzgets(gzFile file, char *buf, int len) gzgets() argument
653 gzdirect(gzFile file) gzdirect() argument
676 gzclose_r(gzFile file) gzclose_r() argument
[all...]
H A Dzlib.h73 file compression on file systems, has a larger header than zlib to maintain
117 int xflags; /* extra flags (not used when writing a gzip file) */
122 Bytef *name; /* pointer to zero-terminated file name or Z_NULL */
128 when writing a gzip file) */
223 compatible with the zlib.h header file used by the application. This check
573 file name, no extra data, no comment, no modification time (set to zero), no
822 gzip file" and give up.
1094 the version of the header file.
1107 inflate() for file
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dcgenerator.py52 generated around a feature interface in the header file
104 """True if #ifndef..#endif protection should be generated around a feature interface in the header file."""
161 # This is an ordered list of sections in the header file.
183 write('#ifndef', headerSym, file=self.outFile)
184 write('#define', headerSym, '1', file=self.outFile)
190 write(s, file=self.outFile)
194 write('#ifdef __cplusplus', file=self.outFile)
195 write('extern "C" {', file=self.outFile)
196 write('#endif', file=self.outFile)
205 write('#ifdef __cplusplus', file
[all...]
/third_party/vulkan-headers/registry/
H A Dcgenerator.py52 generated around a feature interface in the header file
104 """True if #ifndef..#endif protection should be generated around a feature interface in the header file."""
161 # This is an ordered list of sections in the header file.
183 write('#ifndef', headerSym, file=self.outFile)
184 write('#define', headerSym, '1', file=self.outFile)
190 write(s, file=self.outFile)
194 write('#ifdef __cplusplus', file=self.outFile)
195 write('extern "C" {', file=self.outFile)
196 write('#endif', file=self.outFile)
205 write('#ifdef __cplusplus', file
[all...]
/third_party/protobuf/src/google/protobuf/
H A Ddescriptor_database.cc119 const FileDescriptorProto& file, Value value) { in AddFile()
120 if (!InsertIfNotPresent(&by_name_, file.name(), value)) { in AddFile()
121 GOOGLE_LOG(ERROR) << "File already exists in database: " << file.name(); in AddFile()
125 // We must be careful here -- calling file.package() if file.has_package() is in AddFile()
128 std::string path = file.has_package() ? file.package() : std::string(); in AddFile()
131 for (int i = 0; i < file.message_type_size(); i++) { in AddFile()
132 if (!AddSymbol(path + file.message_type(i).name(), value)) return false; in AddFile()
133 if (!AddNestedExtensions(file in AddFile()
118 AddFile( const FileDescriptorProto& file, Value value) AddFile() argument
344 Add(const FileDescriptorProto& file) Add() argument
350 AddAndOwn(const FileDescriptorProto* file) AddAndOwn() argument
383 MaybeCopy(const FileDescriptorProto* file, FileDescriptorProto* output) MaybeCopy() argument
557 auto* file = google::protobuf::Arena::CreateMessage<FileDescriptorProto>(&arena); Add() local
627 AddFile(const FileProto& file, Value value) AddFile() argument
898 const FileDescriptor* file = pool_.FindFileByName(filename); FindFileByName() local
907 const FileDescriptor* file = pool_.FindFileContainingSymbol(symbol_name); FindFileContainingSymbol() local
[all...]
/test/xts/acts/kernel_lite/mem_posix/src/
H A DMmapApiTest.cpp4 * you may not use this file except in compliance with the License.
21 #include <sys/file.h>
312 * @tc.name mmap function file private map and read and write permission test
322 char file[] = MMAP_TESTFILE; in HWTEST_F() local
324 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
352 EXPECT_TRUE(remove(file) == 0) << "ERROR: remove() != 0" << errno; in HWTEST_F()
358 * @tc.name mmap function file share map and read and write permission test
368 char file[] = MMAP_TESTFILE; in HWTEST_F() local
370 int fd = open(file, O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO); in HWTEST_F()
398 EXPECT_TRUE(remove(file) in HWTEST_F()
414 char file[] = MMAP_TESTFILE; HWTEST_F() local
454 char file[] = MMAP_TESTFILE; HWTEST_F() local
500 char file[] = MMAP_TESTFILE; HWTEST_F() local
547 char file[] = MMAP_TESTFILE; HWTEST_F() local
594 char file[] = MMAP_TESTFILE; HWTEST_F() local
708 char file[] = MMAP_TESTFILE; HWTEST_F() local
767 char file[] = MMAP_TESTFILE; HWTEST_F() local
807 char file[] = MMAP_TESTFILE; HWTEST_F() local
836 char file[] = MMAP_TESTFILE; HWTEST_F() local
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_reg.h32 /** @file brw_reg.h
34 * This file defines struct brw_reg, which is our representation for EU
72 /** Number of message register file registers */
220 enum brw_reg_file file:3; /* :2 hardware format */ member
260 if (a->file == IMM) { in brw_regs_negative_equal()
382 * \param file one of the BRW_x_REGISTER_FILE values
395 brw_reg(enum brw_reg_file file, in brw_reg() argument
408 if (file == BRW_GENERAL_REGISTER_FILE) in brw_reg()
410 else if (file == BRW_ARCHITECTURE_REGISTER_FILE) in brw_reg()
418 reg.file in brw_reg()
[all...]
/third_party/mesa3d/src/util/format/
H A Du_format_table.py124 def write_format_table_header(file):
125 print('/* This file is autogenerated by u_format_table.py from u_format.csv. Do not edit directly. */', file=file)
126 print(file=file)
127 # This will print the copyright message on the top of this file
128 print(CopyRight.strip(), file=file)
129 print(file
[all...]
/third_party/python/Lib/distutils/
H A Dtext_file.py11 """Provides a file-like object that takes care of all the things you
12 commonly want to do when processing a text file that has some
26 TextFile (filename=None, file=None, **options)
28 It bombs (RuntimeError) if both 'filename' and 'file' are None;
29 'filename' should be a string, and 'file' a file object (or
32 can include it in warning messages. If 'file' is not supplied,
60 error handler used to decode the file content
63 semantics of 'readline()' must differ from those of the builtin file
65 None for end-of-file
[all...]
/third_party/skia/third_party/externals/tint/fuzzers/
H A Dtint_black_box_fuzz_target.cc4 // you may not use this file except in compliance with the License.
35 /// Copies the content from the file named `input_file` to `buffer`,
36 /// assuming each element in the file is of type `T`. If any error occurs,
39 /// @returns true if we successfully read the file.
47 FILE* file = nullptr; in ReadFile() local
49 fopen_s(&file, input_file.c_str(), "rb"); in ReadFile()
51 file = fopen(input_file.c_str(), "rb"); in ReadFile()
53 if (!file) { in ReadFile()
58 fseek(file, 0, SEEK_END); in ReadFile()
59 auto tell_file_size = ftell(file); in ReadFile()
[all...]
/third_party/exfatprogs/include/
H A Dexfat_ondisk.h51 #define IS_EXFAT_DELETED(x) ((x) < 0x80) /* deleted file (0x01~0x7F) */
56 #define EXFAT_FILE 0x85 /* file or dir */
61 #define EXFAT_NAME 0xC1 /* file name entry */
69 /* file attributes */
146 } __attribute__((packed)) vol; /* file directory entry */
165 } __attribute__((packed)) file; /* file directory entry */ member
180 } __attribute__((packed)) name; /* file name directory entry */
199 #define file_num_ext dentry.file.num_ext
200 #define file_checksum dentry.file
[all...]
/third_party/curl/src/
H A Dtool_parsecfg.c10 * This software is licensed as described in the file COPYING, which
16 * furnished to do so, under the terms of the COPYING file.
54 * via inclusions done in setup header file. We assume that we are using in execpath()
84 FILE *file = NULL; in parseconfig() local
94 file = fopen(curlrc, FOPEN_READTEXT); in parseconfig()
95 if(!file) { in parseconfig()
105 file = execpath(".curlrc", &fullp); in parseconfig()
106 if(!file) in parseconfig()
107 file = execpath("_curlrc", &fullp); in parseconfig()
108 if(file) in parseconfig()
[all...]
/third_party/node/deps/openssl/openssl/crypto/rand/
H A Drandfile.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
82 * -1 read the complete file; otherwise read the specified amount.
84 int RAND_load_file(const char *file, long bytes) in RAND_load_file() argument
105 if ((in = openssl_fopen(file, "rb")) == NULL) { in RAND_load_file()
107 "Filename=%s", file); in RAND_load_file()
114 "Filename=%s", file); in RAND_load_file()
138 * Don't buffer, because even if |file| is regular file, we have in RAND_load_file()
174 ERR_raise_data(ERR_LIB_RAND, RAND_R_RESEED_ERROR, "Filename=%s", file); in RAND_load_file()
181 RAND_write_file(const char *file) RAND_write_file() argument
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
H A Ddynamic_annotations.h4 // you may not use this file except in compliance with the License.
15 // This file defines dynamic annotations for use with dynamic analysis tool
29 // This file supports the following configurations:
198 void AnnotateRWLockCreate(const char* file, int line,
200 void AnnotateRWLockCreateStatic(const char* file, int line,
202 void AnnotateRWLockDestroy(const char* file, int line,
204 void AnnotateRWLockAcquired(const char* file, int line,
206 void AnnotateRWLockReleased(const char* file, int line,
208 void AnnotateBenignRace(const char* file, int line,
210 void AnnotateBenignRaceSized(const char* file, in
[all...]

Completed in 21 milliseconds

1...<<11121314151617181920>>...291