| /third_party/ntfs-3g/libfuse-lite/ |
| D | fuse.c | 3 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/ |
| D | fuse.c | 3 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/ |
| D | out.rs | 2 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 …]
|
| D | error.rs | 2 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/ |
| D | vf_overlay_vaapi.c | 16 * 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 …]
|
| D | vf_remap_opencl.c | 18 * 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 …]
|
| D | vf_program_opencl.c | 16 * 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 …]
|
| D | vf_overlay_opencl.c | 16 * 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 …]
|
| D | vf_overlay_vulkan.c | 16 * 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 …]
|
| D | vf_libvmaf.c | 19 * 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 …]
|
| /third_party/rust/crates/cxx/gen/src/ |
| D | fs.rs | 17 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 …]
|
| D | error.rs | 1 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/libfuse/example/ |
| D | passthrough_hp.cc | 3 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/libuv/src/win/ |
| D | fs.c | 40 #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/ |
| D | module-source.js | 7 * 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/rust/rust/compiler/rustc_metadata/src/ |
| D | fs.rs | 16 use std::{fs, io}; 31 ) -> PathBuf { in emit_wrapper_file() 33 let result = fs::write(&out_filename, data); in emit_wrapper_file() 35 if let Err(err) = result { in emit_wrapper_file() 36 sess.emit_fatal(FailedWriteError { filename: out_filename, err }); in emit_wrapper_file() 42 pub fn encode_and_write_metadata(tcx: TyCtxt<'_>) -> (EncodedMetadata, bool) { in encode_and_write_metadata() 47 // final destination, with an `fs::rename` call. In order for the rename to in encode_and_write_metadata() 53 .unwrap_or_else(|err| tcx.sess.emit_fatal(FailedCreateTempdir { err })); in encode_and_write_metadata() 62 std::fs::File::create(&metadata_filename).unwrap_or_else(|err| { in encode_and_write_metadata() 63 tcx.sess.emit_fatal(FailedCreateFile { filename: &metadata_filename, err }); in encode_and_write_metadata() [all …]
|
| /third_party/rust/rust/library/std/src/sys_common/ |
| D | fs.rs | 3 use crate::fs; 12 pub fn copy(from: &Path, to: &Path) -> io::Result<u64> { in copy() 13 let mut reader = fs::File::open(from)?; in copy() 17 return Err(NOT_FILE_ERROR); in copy() 20 let mut writer = fs::File::create(to)?; in copy() 28 pub fn remove_dir_all(path: &Path) -> io::Result<()> { in remove_dir_all() 29 let filetype = fs::symlink_metadata(path)?.file_type(); in remove_dir_all() 30 if filetype.is_symlink() { fs::remove_file(path) } else { remove_dir_all_recursive(path) } in remove_dir_all() 33 fn remove_dir_all_recursive(path: &Path) -> io::Result<()> { in remove_dir_all_recursive() 34 for child in fs::read_dir(path)? { in remove_dir_all_recursive() [all …]
|
| /third_party/ltp/testcases/kernel/device-drivers/zram/ |
| D | zram01.sh | 3 # 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/rust/crates/rustix/src/backend/linux_raw/fs/ |
| D | dir.rs | 3 use crate::fs::{ 37 pub fn read_from<Fd: AsFd>(fd: Fd) -> io::Result<Self> { in read_from() 42 fn _read_from(fd: BorrowedFd<'_>) -> io::Result<Self> { in _read_from() 64 pub fn read(&mut self) -> Option<io::Result<DirEntry>> { in read() 74 crate::backend::fs::syscalls::_seek(self.fd.as_fd(), 0, SEEK_SET) in read() 77 Err(err) => { in read() 79 return Some(Err(err)); in read() 93 let offsetof_d_reclen = (as_ptr(&z.d_reclen) as usize) - base; in read() 94 let offsetof_d_name = (as_ptr(&z.d_name) as usize) - base; in read() 95 let offsetof_d_ino = (as_ptr(&z.d_ino) as usize) - base; in read() [all …]
|
| /third_party/rust/rust/src/tools/clippy/clippy_dev/src/setup/ |
| D | vscode.rs | 1 use std::fs; 7 const TASK_SOURCE_FILE: &str = "util/etc/vscode-tasks.json"; 15 match fs::copy(TASK_SOURCE_FILE, TASK_TARGET_FILE) { in install_tasks() 17 println!("info: the task file can be removed with `cargo dev remove vscode-tasks`"); in install_tasks() 20 …Err(err) => eprintln!("error: unable to copy `{TASK_SOURCE_FILE}` to `{TASK_TARGET_FILE}` ({err})"… in install_tasks() 24 fn check_install_precondition(force_override: bool) -> bool { in check_install_precondition() 45 … println!("info: use the `--force-override` flag to override the existing `task.json` file"); in check_install_precondition() 49 match fs::create_dir(vs_dir_path) { in check_install_precondition() 53 Err(err) => { in check_install_precondition() 54 … eprintln!("error: the task target directory `{VSCODE_DIR}` could not be created ({err})"); in check_install_precondition() [all …]
|
| /third_party/rust/rust/compiler/rustc_fs_util/src/ |
| D | lib.rs | 6 use std::fs; 11 // verbatim paths under the hood to non-verbatim paths! This manifests itself as 16 // `fs::canonicalize` currently generates paths of this form, meaning that we're 25 // https://github.com/rust-lang/rust/issues/25505#issuecomment-102876737 27 pub fn fix_windows_verbatim_for_gcc(p: &Path) -> PathBuf { in fix_windows_verbatim_for_gcc() 54 pub fn fix_windows_verbatim_for_gcc(p: &Path) -> PathBuf { in fix_windows_verbatim_for_gcc() 63 /// Copies `p` into `q`, preferring to use hard-linking if possible. If 66 pub fn link_or_copy<P: AsRef<Path>, Q: AsRef<Path>>(p: P, q: Q) -> io::Result<LinkOrCopy> { in link_or_copy() 69 match fs::remove_file(q) { in link_or_copy() 71 Err(err) if err.kind() == io::ErrorKind::NotFound => (), in link_or_copy() [all …]
|
| /third_party/skia/m133/bazel/exporter/ |
| D | cmake_exporter_test.go | 3 // Use of this source code is governed by a BSD-style license that can be 26 // a bazel cquery call - like: 28 // bazel cquery --noimplicit_deps 'kind("rule", deps(//:core))' --output textproto 42 string_list_value: "-O2" 63 string_list_value: "-L/library/dir" 108 string_list_value: "-O1" 122 string_list_value: "-L/app/dir" 136 string_list_value: "//src/apps:hello-world.cpp" 159 fs := mocks.NewFileSystem(t) 160 e := NewCMakeExporter("projName", testWorkspaceDir, testCMakeOutFname, fs) [all …]
|
| /third_party/typescript/scripts/ |
| D | importDefinitelyTypedTests.mjs | 1 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 …]
|
| /third_party/alsa-lib/src/pcm/ |
| D | pcm_iec958.c | 9 * 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/ |
| D | BitcodeAnalyzer.cpp | 1 //===- 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 …]
|