Home
last modified time | relevance | path

Searched refs:file (Results 226 - 250 of 7900) sorted by relevance

12345678910>>...316

/third_party/libsnd/src/G72x/
H A Dg72x_test.c193 { FILE *file ; in oct_save_short() local
196 if (! (file = fopen ("error.dat", "w"))) in oct_save_short()
199 fprintf (file, "# Not created by Octave\n") ; in oct_save_short()
201 fprintf (file, "# name: a\n") ; in oct_save_short()
202 fprintf (file, "# type: matrix\n") ; in oct_save_short()
203 fprintf (file, "# rows: %d\n", len) ; in oct_save_short()
204 fprintf (file, "# columns: 1\n") ; in oct_save_short()
207 fprintf (file, "% d\n", a [k]) ; in oct_save_short()
209 fprintf (file, "# name: b\n") ; in oct_save_short()
210 fprintf (file, "# typ in oct_save_short()
[all...]
/third_party/python/Lib/
H A Dpy_compile.py1 """Routine to "compile" a .py file to a .pyc file.
20 compile the file.
24 raise PyCompileError(exc_type,exc_value,file[,msg])
35 file: name of file being compiled to be used in error message
36 can be accesses as class variable 'file'
46 def __init__(self, exc_type, exc_value, file, msg=''):
51 errmsg = tbtext.replace('File "<string>"', 'File "%s"' % file)
55 Exception.__init__(self,msg or errmsg,exc_type_name,exc_value,file)
[all...]
H A Dnntplib.py20 To post an article from a file:
21 >>> f = open(filename, 'rb') # file containing article, including header
38 # - the `file` argument to various methods is keyword-only
57 # - NNTP.post() and NNTP.ihave() accept file objects, bytes-like objects and
325 - usenetrc: allow loading username and password from ~/.netrc file
338 self.file = None
340 self.file = self.sock.makefile("rwb")
345 if self.file:
346 self.file.close()
388 is_connected = lambda: hasattr(self, "file")
[all...]
/third_party/fsverity-utils/programs/
H A Dutils.h8 * license that can be found in the LICENSE file or at
30 const char *file, int line);
41 bool open_file(struct filedes *file, const char *filename, int flags, int mode);
42 bool get_file_size(struct filedes *file, u64 *size_ret);
43 bool preallocate_file(struct filedes *file, u64 size);
44 bool full_read(struct filedes *file, void *buf, size_t count);
45 bool full_write(struct filedes *file, const void *buf, size_t count);
46 bool full_pwrite(struct filedes *file, const void *buf, size_t count,
48 bool filedes_close(struct filedes *file);
49 int read_callback(void *file, voi
[all...]
/third_party/ltp/lib/
H A Dtst_safe_timerfd.c14 int safe_timerfd_create(const char *file, const int lineno, in safe_timerfd_create() argument
22 tst_brk_(file, lineno, TTYPE | TERRNO, in safe_timerfd_create()
25 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timerfd_create()
33 int safe_timerfd_gettime(const char *file, const int lineno, in safe_timerfd_gettime() argument
41 tst_brk_(file, lineno, TTYPE | TERRNO, in safe_timerfd_gettime()
44 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timerfd_gettime()
51 int safe_timerfd_settime(const char *file, const int lineno, in safe_timerfd_settime() argument
61 tst_brk_(file, lineno, TTYPE | TERRNO, in safe_timerfd_settime()
64 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timerfd_settime()
H A Dtst_mkfs.c25 void tst_mkfs_(const char *file, const int lineno, void (cleanup_fn)(void), in tst_mkfs_() argument
36 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
42 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
48 tst_resm_(file, lineno, TINFO, in tst_mkfs_()
60 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
78 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
92 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
96 tst_resm_(file, lineno, TINFO, in tst_mkfs_()
106 tst_brkm_(file, lineno, TCONF, cleanup_fn, in tst_mkfs_()
110 tst_brkm_(file, linen in tst_mkfs_()
[all...]
/third_party/vk-gl-cts/scripts/src_util/
H A Dcheck_whitespace.py10 # you may not use this file except in compliance with the License.
27 def checkFileWhitespace (file):
29 f = open(file, 'rt')
31 f = open(file, 'rt', encoding="ascii", errors='replace', newline='')
36 print("%s:%i trailing whitespace" % (file, lineNum+1))
39 print("%s:%i merged <space><tab>" % (file, lineNum+1))
42 print("%s:%i incorrect line ending" % (file, lineNum+1))
49 for file in files:
50 if isTextFile(file):
51 if not checkFileWhitespace(file)
[all...]
/third_party/vk-gl-cts/framework/opengl/
H A DgluDefs.cpp8 * you may not use this file except in compliance with the License.
20 * \file
35 Error::Error (int error, const char* message, const char* expr, const char* file, int line) in Error() argument
36 : tcu::TestError (message, expr, file, line) in Error()
51 OutOfMemoryError::OutOfMemoryError (const char* message, const char* expr, const char* file, int line) in OutOfMemoryError() argument
52 : tcu::ResourceError(message, expr, file, line) in OutOfMemoryError()
65 void checkError (const RenderContext& context, const char* msg, const char* file, int line) in checkError() argument
67 checkError(context.getFunctions().getError(), msg, file, line); in checkError()
70 void checkError (deUint32 err, const char* msg, const char* file, int line) in checkError() argument
81 throw OutOfMemoryError(msgStr.str().c_str(), DE_NULL, file, lin in checkError()
[all...]
/third_party/ltp/include/
H A Dtst_netdevice.h11 int tst_netdev_index_by_name(const char *file, const int lineno,
17 int tst_netdev_set_state(const char *file, const int lineno,
23 int tst_create_veth_pair(const char *file, const int lineno, int strict,
28 int tst_netdev_add_device(const char *file, const int lineno, int strict,
33 int tst_netdev_remove_device(const char *file, const int lineno, int strict,
38 int tst_netdev_add_address(const char *file, const int lineno, int strict,
45 int tst_netdev_add_address_inet(const char *file, const int lineno, int strict,
52 int tst_netdev_remove_address(const char *file, const int lineno, int strict,
59 int tst_netdev_remove_address_inet(const char *file, const int lineno,
65 int tst_netdev_change_ns_fd(const char *file, cons
[all...]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
H A DDescriptorsTest.cs49 FileDescriptor file = UnittestProto3Reflection.Descriptor; in FileDescriptor()
51 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Name); in FileDescriptor()
52 Assert.AreEqual("protobuf_unittest", file.Package); in FileDescriptor()
54 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in FileDescriptor()
55 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Proto.Name); in FileDescriptor()
58 Assert.AreEqual(0, file.PublicDependencies.Count); in FileDescriptor()
62 Assert.AreEqual(1, file.Dependencies.Count); in FileDescriptor()
63 Assert.AreEqual(UnittestImportProto3Reflection.Descriptor, file.Dependencies[0]); in FileDescriptor()
68 Assert.AreEqual(messageType, file.MessageTypes[0]); in FileDescriptor()
69 Assert.AreEqual(messageType, file in FileDescriptor()
[all...]
/third_party/node/deps/v8/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(file) in gzclose()
12 gzFile file; in gzclose()
17 if (file == NULL)
19 state = (gz_statep)file;
21 return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
23 return gzclose_r(file);
/third_party/skia/third_party/externals/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(file) in gzclose()
12 gzFile file; in gzclose()
17 if (file == NULL)
19 state = (gz_statep)file;
21 return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
23 return gzclose_r(file);
/third_party/alsa-lib/src/
H A Duserfile.c27 * \brief Get the full file name
28 * \param file The file name string to parse
29 * \param result The pointer to store the resultant file name
32 * Parses the given file name with POSIX-Shell-like expansion and
38 int snd_user_file(const char *file, char **result) in snd_user_file() argument
43 assert(file && result); in snd_user_file()
44 err = wordexp(file, &we, WRDE_NOCMD); in snd_user_file()
72 int snd_user_file(const char *file, char **result) in snd_user_file() argument
78 assert(file in snd_user_file()
[all...]
/third_party/PyYAML/tests/lib/
H A Dtest_errors.py6 with open(error_filename, 'rb') as file:
7 list(yaml.load_all(file, yaml.FullLoader))
18 with open(error_filename, 'rb') as file:
19 list(yaml.load_all(file.read(), yaml.FullLoader))
30 with open(error_filename, 'rb') as file:
31 yaml.load(file.read(), yaml.FullLoader)
41 with open(error_filename, 'rb') as file:
42 events = list(yaml.load(file, Loader=test_emitter.EventsLoader))
54 with open(error_filename, 'rb') as file:
55 code = file
[all...]
H A Dtest_resolver.py9 with open(detect_filename, 'r') as file:
10 correct_tag = file.read().strip()
11 with open(data_filename, 'rb') as file:
12 node = yaml.compose(file)
63 with open(data_filename, 'rb') as file:
64 nodes1 = list(yaml.compose_all(file.read(), Loader=MyLoader))
65 with open(path_filename, 'rb') as file:
66 nodes2 = list(yaml.compose_all(file.read()))
81 with open(filename, 'rb') as file:
82 output = yaml.serialize_all(yaml.compose_all(file), Dumpe
[all...]
/third_party/node/deps/v8/src/torque/
H A Dsource-positions.cc3 // found in the LICENSE file.
19 const std::string& SourceFileMap::PathFromV8Root(SourceId file) { in PathFromV8Root() argument
20 CHECK(file.IsValid()); in PathFromV8Root()
21 return Get().sources_[file.id_]; in PathFromV8Root()
25 std::string SourceFileMap::AbsolutePath(SourceId file) { in AbsolutePath() argument
26 const std::string& root_path = PathFromV8Root(file); in AbsolutePath()
27 if (StringStartsWith(root_path, "file://")) return root_path; in AbsolutePath()
28 return Get().v8_root_ + "/" + PathFromV8Root(file); in AbsolutePath()
32 std::string SourceFileMap::PathFromV8RootWithoutExtension(SourceId file) { in PathFromV8RootWithoutExtension() argument
33 std::string path_from_root = PathFromV8Root(file); in PathFromV8RootWithoutExtension()
70 const std::string file = Get().v8_root_ + "/" + path; FileRelativeToV8RootExists() local
[all...]
/base/powermgr/battery_manager/charger/src/
H A Dbattery_vibrate.cpp4 * you may not use this file except in compliance with the License.
97 FILE* file = fopen(VIBRATOR_PLAYMODE_PATH.c_str(), "w"); in SetPlayMode() local
98 if (file == nullptr) { in SetPlayMode()
102 if (fprintf(file, "%s\n", modeName.c_str()) < 0) { in SetPlayMode()
105 if (fclose(file) < 0) { in SetPlayMode()
113 FILE* file = fopen(VIBRATOR_ACTIVATEMODE_PATH.c_str(), "w"); in ActivateVibration() local
114 if (file == nullptr) { in ActivateVibration()
118 if (fprintf(file, "%d\n", value) < 0) { in ActivateVibration()
121 if (fclose(file) < 0) { in ActivateVibration()
128 FILE* file in SetDuration() local
[all...]
/third_party/libsnd/tests/
H A Dchannel_test.c67 { SNDFILE *file ; in channel_test() local
79 /* Write the test file. */ in channel_test()
80 file = test_open_file_or_die (filename, SFM_WRITE, &wsfinfo, SF_FALSE, __LINE__) ; in channel_test()
81 test_writef_float_or_die (file, 0, float_data, wframes, __LINE__) ; in channel_test()
82 sf_close (file) ; in channel_test()
85 file = test_open_file_or_die (filename, SFM_READ, &rsfinfo, SF_FALSE, __LINE__) ; in channel_test()
87 "\n\nLine %d : Frames in file %" PRId64 ".\n\n", __LINE__, rsfinfo.frames) ; in channel_test()
91 sf_command (file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE) ; in channel_test()
93 test_readf_float_or_die (file, 0, read_float, rsfinfo.frames, __LINE__) ; in channel_test()
97 test_seek_or_die (file, in channel_test()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Dvfscanf.c4 * you may not use this file except in compliance with the License.
40 char file[PATH_MAX] = {0}; in vfscanf_0100() local
41 FILE_ABSOLUTE_PATH(STR_VFSCANF_TXT, file); in vfscanf_0100()
42 fp = fopen(file, "w+"); in vfscanf_0100()
64 remove(file); in vfscanf_0100()
77 char file[PATH_MAX] = {0}; in vfscanf_0200() local
78 FILE_ABSOLUTE_PATH(STR_VFSCANF_TXT, file); in vfscanf_0200()
79 fp = fopen(file, "w+"); in vfscanf_0200()
101 remove(file); in vfscanf_0200()
114 char file[PATH_MA in vfscanf_0300() local
[all...]
/third_party/openssl/test/testutil/
H A Dload.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
18 X509 *load_cert_pem(const char *file, OSSL_LIB_CTX *libctx) in load_cert_pem() argument
23 if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new(BIO_s_file()))) in load_cert_pem()
25 if (TEST_int_gt(BIO_read_filename(bio, file), 0) in load_cert_pem()
33 STACK_OF(X509) *load_certs_pem(const char *file) in STACK_OF()
39 if (!TEST_ptr(file) || (bio = BIO_new_file(file, "r")) == NULL) in STACK_OF()
69 EVP_PKEY *load_pkey_pem(const char *file, OSSL_LIB_CTX *libctx) in load_pkey_pem() argument
74 if (!TEST_ptr(file) || !TEST_pt in load_pkey_pem()
92 load_csr_der(const char *file, OSSL_LIB_CTX *libctx) load_csr_der() argument
[all...]
/third_party/skia/third_party/externals/freetype/src/base/
H A Dftsystem.c10 * This file is part of the FreeType project, and may only be used,
13 * this file you indicate that you have read the license and
20 * This file contains the default interface used by FreeType to access
219 FT_FILE* file; in ft_ansi_stream_io() local
225 file = STREAM_FILE( stream ); in ft_ansi_stream_io()
228 ft_fseek( file, (long)offset, SEEK_SET ); in ft_ansi_stream_io()
230 return (unsigned long)ft_fread( buffer, 1, count, file ); in ft_ansi_stream_io()
240 FT_FILE* file; in FT_BASE_DEF() local
253 file = ft_fopen( filepathname, "rb" ); in FT_BASE_DEF()
254 if ( !file ) in FT_BASE_DEF()
[all...]
/third_party/typescript/tests/baselines/reference/tscWatch/programUpdates/
H A Dshouldnt-report-error-about-unused-function-incorrectly-when-file-changes-from-global-to-module.js2 //// [/a/b/file.ts]
24 /a/lib/tsc.js -w /a/b/file.ts --noUnusedLocals
29 [12:00:16 AM] Found 0 errors. Watching for file changes.
33 Program root files: ["/a/b/file.ts"]
38 /a/b/file.ts
42 /a/b/file.ts
46 /a/b/file.ts (used version)
51 /a/b/file.ts:
60 //// [/a/b/file.js]
70 Change:: Change file t
[all...]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/
H A Dosal_device.c74 static int osal_open(struct inode *inode, struct file *file) in osal_open() argument
81 dev = (osal_dev *)file->private_data; in osal_open()
109 file->private_data = fileops_node; in osal_open()
114 static ssize_t osal_read(struct file *file, char __user *buf, size_t size, loff_t *offset) in osal_read() argument
120 fileops_node = file->private_data; in osal_read()
139 static ssize_t osal_write(struct file *file, const char __user *buf, size_t size, loff_t *offset) in osal_write() argument
141 (void)file; in osal_write()
148 osal_llseek(struct file *file, loff_t offset, int whence) osal_llseek() argument
156 osal_release(struct inode *inode, struct file *file) osal_release() argument
260 osal_ioctl(struct file *file, unsigned int cmd, unsigned long arg) osal_ioctl() argument
319 __osal_poll(struct file *file, struct poll_table_struct *table) __osal_poll() argument
367 osal_mmap(struct file *file, struct vm_area_struct *vm) osal_mmap() argument
[all...]
/test/xts/acts/bundlemanager/zlib/actszlibndktest/entry/src/main/cpp/
H A Dzlibndk.cpp4 * you may not use this file except in compliance with the License.
1077 gzFile file; in GzWrite() local
1078 file = gzopen(TESTFILE, "wb"); in GzWrite()
1079 NAPI_ASSERT(env, file != nullptr, "gzopen error"); in GzWrite()
1080 int err = gzwrite(file, HELLO, len); in GzWrite()
1082 gzclose(file); in GzWrite()
1086 static int TestGzPrintf(gzFile file, const char *format, ...) in TestGzPrintf() argument
1092 ret = gzvprintf(file, format, va); in TestGzPrintf()
1100 gzFile file; in GzvPrintf() local
1101 file in GzvPrintf()
1113 gzFile file; GzUnGetC() local
1125 gzFile file; GzTell64() local
1147 gzFile file; GzTell() local
1161 gzFile file; GzSetParams() local
1175 gzFile file; GzSeek64() local
1192 gzFile file; GzSeek() local
1206 gzFile file; GzRewind() local
1220 gzFile file; GzRead() local
1236 gzFile file; GzPuts() local
1249 gzFile file; GzPutc() local
1262 gzFile file; GzPrintf() local
1274 gzFile file = nullptr; GzOpenW() local
1286 gzFile file; GzOpen() local
1298 gzFile file = nullptr; GzOpen64() local
1311 gzFile file; GzOffset64() local
1326 gzFile file; GzGets() local
1345 gzFile file; GzGetC_() local
1359 gzFile file; GzGetC() local
1374 gzFile file; GzFWrite() local
1389 gzFile file; GzFRead() local
1402 gzFile file; GzFlush() local
1422 gzFile file; GzError() local
1436 gzFile file; GzEof() local
1452 gzFile file = gzdopen(fd, "r"); GzDOpen() local
1463 gzFile file; GzDirect() local
1476 gzFile file; GzCloseW() local
1491 gzFile file; GzCloseR() local
1504 gzFile file; GzClearErr() local
1521 gzFile file; GzClose() local
1534 gzFile file; GzBuffer() local
[all...]
/third_party/python/Lib/test/test_asyncio/
H A Dtest_sendfile.py121 self.file = open(os_helper.TESTFN, 'rb')
122 self.addCleanup(self.file.close)
204 ret = self.run_loop(self.loop.sock_sendfile(sock, self.file))
210 self.assertEqual(self.file.tell(), len(self.DATA))
214 ret = self.run_loop(self.loop.sock_sendfile(sock, self.file,
220 self.assertEqual(self.file.tell(), 3000)
232 self.assertEqual(self.file.tell(), 0)
238 ret = self.run_loop(self.loop.sock_sendfile(sock, self.file))
246 self.assertEqual(self.file.tell(), len(self.DATA))
305 self.loop.sendfile(tr, self.file))
[all...]

Completed in 11 milliseconds

12345678910>>...316