Home
last modified time | relevance | path

Searched +full:fs +full:- +full:err (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/third_party/ntfs-3g/libfuse-lite/
Dfuse.c3 Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
100 struct fuse_fs *fs; member
167 return -1; in fuse_load_so_name()
171 so->handle = dlopen(soname, RTLD_NOW); in fuse_load_so_name()
173 if (!so->handle) { in fuse_load_so_name()
175 goto err; in fuse_load_so_name()
177 if (!so->ctr) { in fuse_load_so_name()
179 goto err; in fuse_load_so_name()
183 err: in fuse_load_so_name()
184 if (so->handle) in fuse_load_so_name()
[all …]
/third_party/libfuse/lib/
Dfuse.c3 Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
5 Implementation of the high-level FUSE API on top of the low-level
78 int err; member
90 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
91 (type *)( (char *)__mptr - offsetof(type,member) );})
118 struct fuse_fs *fs; member
155 #define TREELOCK_WRITE -1
211 return -1; in fuse_register_module()
213 mod->name = strdup(name); in fuse_register_module()
214 if (!mod->name) { in fuse_register_module()
[all …]
/third_party/rust/crates/cxx/gen/build/src/
Dout.rs2 use crate::gen::fs;
7 pub(crate) fn write(path: impl AsRef<Path>, content: &[u8]) -> Result<()> { in write()
11 if fs::exists(path) { in write()
12 if let Ok(existing) = fs::read(path) { in write()
21 create_dir_error = fs::create_dir_all(parent).err(); in write()
24 match fs::write(path, content) { in write()
28 Err(err) => Err(Error::Fs(create_dir_error.unwrap_or(err))), in write()
32 pub(crate) fn symlink_file(original: impl AsRef<Path>, link: impl AsRef<Path>) -> Result<()> { in symlink_file()
37 if fs::exists(link) { in symlink_file()
41 create_dir_error = fs::create_dir_all(parent).err(); in symlink_file()
[all …]
Derror.rs2 use crate::gen::fs;
13 Fs(fs::Error), enumerator
31 "https://doc.rust-lang.org/cargo/reference/build-scripts.html#the-links-manifest-key";
34 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
39 Error::Fs(err) => err.fmt(f), in fmt()
86 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
88 Error::Fs(err) => err.source(), in source()
94 impl From<fs::Error> for Error {
95 fn from(err: fs::Error) -> Self { in from()
96 Error::Fs(err) in from()
/third_party/ffmpeg/libavfilter/
Dvf_overlay_vaapi.c16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 FFFrameSync fs; member
54 ret = ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->inputs[MAIN]->outcfg.formats); in overlay_vaapi_query_formats()
58 ret = ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->inputs[OVERLAY]->outcfg.formats); in overlay_vaapi_query_formats()
62 ret = ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->outputs[0]->incfg.formats); in overlay_vaapi_query_formats()
71 VAAPIVPPContext *vpp_ctx = avctx->priv; in overlay_vaapi_build_filter_params()
77 vas = vaQueryVideoProcPipelineCaps(vpp_ctx->hwctx->display, in overlay_vaapi_build_filter_params()
78 vpp_ctx->va_context, in overlay_vaapi_build_filter_params()
106 VAAPIVPPContext *ctx = avctx->priv; in overlay_vaapi_render_picture()
111 int err = 0; in overlay_vaapi_render_picture() local
[all …]
Dvf_remap_opencl.c18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
46 FFFrameSync fs; member
74 RemapOpenCLContext *ctx = avctx->priv; in remap_opencl_load()
77 const char *kernel = kernels[ctx->interp]; in remap_opencl_load()
79 int err, main_planes; in remap_opencl_load() local
81 int is_rgb = !!(desc->flags & AV_PIX_FMT_FLAG_RGB); in remap_opencl_load()
88 ctx->cl_fill_color.s[rgba_map[0]] = ctx->fill_rgba[0] * scale; in remap_opencl_load()
89 ctx->cl_fill_color.s[rgba_map[1]] = ctx->fill_rgba[1] * scale; in remap_opencl_load()
90 ctx->cl_fill_color.s[rgba_map[2]] = ctx->fill_rgba[2] * scale; in remap_opencl_load()
91 ctx->cl_fill_color.s[rgba_map[3]] = ctx->fill_rgba[3] * scale; in remap_opencl_load()
[all …]
Dvf_program_opencl.c16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
41 FFFrameSync fs; member
54 ProgramOpenCLContext *ctx = avctx->priv; in program_opencl_load()
56 int err; in program_opencl_load() local
58 err = ff_opencl_filter_load_program_from_file(avctx, ctx->source_file); in program_opencl_load()
59 if (err < 0) in program_opencl_load()
60 return err; in program_opencl_load()
62 ctx->command_queue = clCreateCommandQueue(ctx->ocf.hwctx->context, in program_opencl_load()
63 ctx->ocf.hwctx->device_id, in program_opencl_load()
65 if (!ctx->command_queue) { in program_opencl_load()
[all …]
Dvf_overlay_opencl.c16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
37 FFFrameSync fs; member
52 OverlayOpenCLContext *ctx = avctx->priv; in overlay_opencl_load()
57 int err, i, main_planes, overlay_planes; in overlay_opencl_load() local
63 for (i = 0; i < main_desc->nb_components; i++) in overlay_opencl_load()
65 main_desc->comp[i].plane + 1); in overlay_opencl_load()
66 for (i = 0; i < overlay_desc->nb_components; i++) in overlay_opencl_load()
68 overlay_desc->comp[i].plane + 1); in overlay_opencl_load()
70 ctx->nb_planes = main_planes; in overlay_opencl_load()
71 ctx->x_subsample = 1 << main_desc->log2_chroma_w; in overlay_opencl_load()
[all …]
Dvf_overlay_vulkan.c16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
34 FFFrameSync fs; member
55 C(2, vec4 res = texture(overlay_img[i], pos - o_offset[i]); )
71 C(2, vec4 ovr = texture(overlay_img[i], pos - o_offset[i]); )
72 C(2, res = ovr * ovr.a + res * (1.0f - ovr.a); )
82 int err;
84 OverlayVulkanContext *s = ctx->priv;
85 FFVulkanContext *vkctx = &s->vkctx;
86 const int planes = av_pix_fmt_count_planes(s->vkctx.output_format);
88 ff_vk_qf_init(vkctx, &s->qf, VK_QUEUE_COMPUTE_BIT, 0);
[all …]
Dvf_libvmaf.c19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
41 FFFrameSync fs; member
84 FRAMESYNC_DEFINE_CLASS(libvmaf, LIBVMAFContext, fs);
111 int err = vmaf_picture_alloc(dst, pix_fmt_map(src->format), bpc, in copy_picture_data() local
112 src->width, src->height); in copy_picture_data()
113 if (err) in copy_picture_data()
117 uint8_t *src_data = src->data[i]; in copy_picture_data()
118 uint8_t *dst_data = dst->data[i]; in copy_picture_data()
119 for (unsigned j = 0; j < dst->h[i]; j++) { in copy_picture_data()
120 memcpy(dst_data, src_data, sizeof(*dst_data) * dst->w[i]); in copy_picture_data()
[all …]
Dvf_overlay_cuda.c18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
40 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, ctx->hwctx->internal->cuda_dl, x)
41 #define DIV_UP(a, b) ( ((a) + (b) - 1) / (b) )
111 FFFrameSync fs; member
138 return (int)d & ~((1 << chroma_sub) - 1); in normalize_xy()
143 OverlayCUDAContext *s = ctx->priv; in eval_expr()
145 s->var_values[VAR_X] = av_expr_eval(s->x_pexpr, s->var_values, NULL); in eval_expr()
146 s->var_values[VAR_Y] = av_expr_eval(s->y_pexpr, s->var_values, NULL); in eval_expr()
148 s->var_values[VAR_X] = av_expr_eval(s->x_pexpr, s->var_values, NULL); in eval_expr()
150 s->x_position = normalize_xy(s->var_values[VAR_X], 1); in eval_expr()
[all …]
/third_party/libfuse/example/
Dpassthrough_hp.cc3 Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
13 * This is a "high-performance" version of passthrough_ll.c. While
21 * If --nocache is specified, the source directory may be changed
25 * Without --nocache, the source directory is assumed to be modified
30 * including data-loss.
36 * Unless --nocache is specified, is only possible to write to files
54 #include <err.h>
81 #define SFS_DEFAULT_THREADS "-1" // take libfuse value as default
84 /* We are re-using pointers to our `struct sfs_inode` and `struct
103 // the drawback that we can no longer re-use inode numbers, and thus
[all …]
/third_party/rust/crates/cxx/gen/src/
Dfs.rs17 pub fn kind(&self) -> io::ErrorKind { in kind()
26 fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { in fmt()
32 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
38 macro_rules! err { macro
40 Err(Error {
47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> { in copy()
50 match std::fs::copy(from, to) { in copy()
52 Err(e) => err!(e, "Failed to copy `{}` -> `{}`", from, to), in copy()
56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> { in create_dir_all()
58 match std::fs::create_dir_all(path) { in create_dir_all()
[all …]
Derror.rs1 use crate::gen::fs;
21 Fs(fs::Error), enumerator
27 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
30 Error::Fs(err) => err.fmt(f), in fmt()
32 Error::Syn(err) => err.fmt(f), in fmt()
38 fn source(&self) -> Option<&(dyn StdError + 'static)> { in source()
40 Error::Fs(err) => err.source(), in source()
41 Error::Utf8(_, err) => Some(err), in source()
42 Error::Syn(err) => err.source(), in source()
48 impl From<fs::Error> for Error {
[all …]
/third_party/libuv/src/win/
Dfs.c40 #include "req-inl.h"
41 #include "handle-inl.h"
42 #include "fs-fd-hash-inl.h"
63 &req->work_req, \
69 uv__fs_work(&req->work_req); \
70 return req->result; \
77 req->result = (result_value); \
78 assert(req->result != -1); \
83 req->sys_errno_ = (sys_errno); \
84 req->result = uv_translate_sys_error(req->sys_errno_); \
[all …]
/third_party/weex-loader/
Dmodule-source.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 const fs = require('fs'); constant
23 fs.exists(dst, function(exists) {
27 fs.mkdir(dst, function() {
34 stat = fs.stat;
36 fs.readdir(src, function(err, paths) { argument
37 if (err) {
38 throw err;
45 stat(_src, function(err, st) { argument
46 if (err) {
[all …]
/third_party/ltp/testcases/kernel/device-drivers/zram/
Dzram01.sh3 # Copyright (c) 2019-2022 Petr Vorel <pvorel@suse.cz>
16 local fs="$1"
20 if [ "$ram_size" -lt 1048576 ]; then
21 tst_res TINFO "not enough space for $fs"
39 local fs limit size stream=-1
42 for fs in $(tst_supported_fs -s tmpfs); do
46 if [ "$fs" = "btrfs" -o "$fs" = "xfs" ]; then
47 check_space_for_fs "$fs" || continue
49 if [ "$fs" = "btrfs" ]; then
51 elif [ "$fs" = "xfs" ]; then
[all …]
/third_party/typescript/scripts/
DgenerateLocalizedDiagnosticMessages.mjs1 import fs from "fs";
21 fs.readdir(inputPath, (err, files) => {
22 handleError(err);
34 fs.readFile(inputFilePath, (err, data) => {
35 handleError(err);
36 xml2js.parseString(data.toString(), (err, result) => {
37 handleError(err);
55 * Generally, the pattern <language>-<REGION> is used. Here, language is a lowercase ISO 639
56 * language code. The codes from ISO 639-1 are used when available. Otherwise, codes from
57 * ISO 639-2/T are used. REGION specifies an uppercase ISO 3166-1 country/region identifier.
[all …]
DimportDefinitelyTypedTests.mjs1 import * as fs from "fs";
40 …return pathLen > extLen && path.substr(pathLen - extLen, extLen).toLocaleLowerCase() === endingStr…
48 const text = fs.readFileSync(source);
49 fs.writeFileSync(destination, text);
60 let cmd = "node " + tscPath + " --module commonjs " + testFiles.join(" ");
67 if (fs.existsSync(testDirectoryPath)) {
70 fs.mkdirSync(testDirectoryPath);
96 if (!fs.existsSync(testCasePath)) {
100 fs.unlinkSync(outputFilePath);
101 fs.rmdirSync(testDirectoryPath);
[all …]
DproduceLKG.mjs2 import fs from "fs-extra";
13 const copyright = fs.readFileSync(path.join(__dirname, "../CopyrightNotice.txt"), "utf-8");
31 const dir = await fs.readdir(source);
37 fs.statSync(fileName).isDirectory() &&
40 await fs.copy(fileName, path.join(dest, d));
51 if (!fs.existsSync(protocolScript)) {
82 await fs.writeFile(path.join(dest, ".gitattributes"), `* text eol=lf`, "utf-8");
90 const content = await fs.readFile(path.join(source, fileName), "utf-8");
91 await fs.writeFile(path.join(dest, destName), copyright + "\n" + content);
98 await fs.copy(path.join(source, fileName), path.join(dest, fileName));
[all …]
/third_party/alsa-lib/src/pcm/
Dpcm_iec958.c9 * PCM - IEC958 Subframe Conversion Plugin
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
96 * bit 0-3 = preamble
97 * 4-7 = AUX (=0)
98 * 8-27 = data (12-27 for 16bit, 8-27 for 20bit, and 24bit without AUX)
107 unsigned int byte = iec->counter >> 3; in iec958_subframe()
108 unsigned int mask = 1 << (iec->counter - (byte << 3)); in iec958_subframe()
110 /* bit 4-27 */ in iec958_subframe()
115 if (iec->status[byte] & mask) in iec958_subframe()
118 if (iec958_parity(data)) /* parity bit 4-30 */ in iec958_subframe()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeAnalyzer.cpp1 //===- BitcodeAnalyzer.cpp - Internal BitcodeAnalyzer implementation ------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
37 if (!Info->Name.empty()) in GetBlockName()
38 return Info->Name.c_str(); in GetBlockName()
110 for (unsigned i = 0, e = Info->RecordNames.size(); i != e; ++i) in GetCodeName()
111 if (Info->RecordNames[i].first == CodeID) in GetCodeName()
112 return Info->RecordNames[i].second.c_str(); in GetCodeName()
285 STRINGIFY_CODE(FS, PERMODULE) in GetCodeName()
286 STRINGIFY_CODE(FS, PERMODULE_PROFILE) in GetCodeName()
[all …]
/third_party/python/Lib/test/
Dtest_cgi.py22 def __init__(self, err): argument
23 self.err = err
26 return str(self.err)
31 return (self.err.__class__ == anExc.__class__ and
32 self.err.args == anExc.args)
35 return getattr(self.err, attr)
44 fp = BytesIO(buf.encode('latin-1')) # FieldStorage expects bytes
46 env['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'
52 except Exception as err:
53 return ComparableException(err)
[all …]
/third_party/rust/crates/rustix/src/fs/
Dstatx.rs5 use crate::fs::AtFlags;
9 pub use backend::fs::types::{Statx, StatxFlags, StatxTimestamp};
19 /// - [Linux]
21 /// [Linux]: https://man7.org/linux/man-pages/man2/statx.2.html
28 ) -> io::Result<Statx> { in statx()
46 ) -> io::Result<Statx> { in _statx()
49 1 => Err(io::Errno::NOSYS), in _statx()
50 _ => backend::fs::syscalls::statx(dirfd, path, flags, mask), in _statx()
60 ) -> io::Result<Statx> { in statx_init()
61 match backend::fs::syscalls::statx(dirfd, path, flags, mask) { in statx_init()
[all …]
/third_party/ffmpeg/libavcodec/
Dcbs_vp9_syntax_template.c16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 int err; in FUNC() local
34 CodedBitstreamVP9Context *vp9 = ctx->priv_data; in FUNC()
35 int err; in FUNC() local
39 vp9->bit_depth = current->ten_or_twelve_bit ? 12 : 10; in FUNC()
41 vp9->bit_depth = 8; in FUNC()
45 if (current->color_space != VP9_CS_RGB) { in FUNC()
64 vp9->subsampling_x = current->subsampling_x; in FUNC()
65 vp9->subsampling_y = current->subsampling_y; in FUNC()
73 CodedBitstreamVP9Context *vp9 = ctx->priv_data; in FUNC()
[all …]

12345678910>>...15