Home
last modified time | relevance | path

Searched refs:pwrite (Results 76 - 100 of 120) sorted by relevance

12345

/third_party/musl/porting/linux/user/src/fortify/
H A Dfortify.c310 __diagnose_count("pwrite", "count", count); in __pwrite_chk()
311 __diagnose_buffer_access("pwrite", "read from", count, buf_size); in __pwrite_chk()
312 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(pwrite)(fd, buf, count, offset); in __pwrite_chk()
/third_party/musl/src/fortify/linux/
H A Dfortify.c321 __diagnose_count("pwrite", "count", count); in __pwrite_chk()
322 __diagnose_buffer_access("pwrite", "read from", count, buf_size); in __pwrite_chk()
323 return __DIAGNOSE_CALL_BYPASSING_FORTIFY(pwrite)(fd, buf, count, offset); in __pwrite_chk()
/third_party/musl/src/aio/
H A Daio.c265 ret = q->append ? write(fd, buf, len) : pwrite(fd, buf, len, off); in io_thread_func()
/third_party/libfuse/example/
H A Dpassthrough_fh.c425 res = pwrite(fi->fh, buf, size, offset); in xmp_write()
H A Dpassthrough.c31 /* For pread()/pwrite()/utimensat() */
341 res = pwrite(fd, buf, size, offset); in xmp_write()
/third_party/musl/Benchmark/musl/
H A Dlibc_unistd.cpp149 PreadWriteTest(state, pwrite, true); in Bm_function_Pwrite64()
/third_party/musl/libc-test/src/api/
H A Dunistd.c307 {ssize_t(*p)(int,const void*,size_t,off_t) = pwrite;} in f()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A Draw_ostream.h370 /// pwrite operation. This is useful for code that can mostly stream out data,
379 void pwrite(const char *Ptr, size_t Size, uint64_t Offset) { in pwrite() function in llvm::raw_pwrite_stream
/third_party/rust/crates/rustix/src/backend/libc/io/
H A Dsyscalls.rs75 pub(crate) fn pwrite(fd: BorrowedFd<'_>, buf: &[u8], offset: u64) -> io::Result<usize> {
/third_party/rust/crates/rustix/src/backend/libc/
H A Doffset.rs213 pub(super) use c::{pread as libc_pread, pwrite as libc_pwrite};
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Di915_gem.c560 * This is the fast pwrite path, where we copy the data directly from the
563 * @args: pwrite arguments structure
688 /* Per-page copy function for the shmem pwrite fastpath.
817 if (obj->ops->pwrite) in i915_gem_pwrite_ioctl()
818 ret = obj->ops->pwrite(obj, args); in i915_gem_pwrite_ioctl()
834 /* We can only do the GTT pwrite on untiled buffers, as otherwise in i915_gem_pwrite_ioctl()
837 * pread/pwrite currently are reading and writing from the CPU in i915_gem_pwrite_ioctl()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
H A Di915_gem.c539 * i915_gem_gtt_pwrite_fast - This is the fast pwrite path, where we copy the data directly from the
542 * @args: pwrite arguments structure
639 /* Per-page copy function for the shmem pwrite fastpath.
779 if (obj->ops->pwrite) in i915_gem_pwrite_ioctl()
780 ret = obj->ops->pwrite(obj, args); in i915_gem_pwrite_ioctl()
792 /* We can only do the GTT pwrite on untiled buffers, as otherwise in i915_gem_pwrite_ioctl()
795 * pread/pwrite currently are reading and writing from the CPU in i915_gem_pwrite_ioctl()
/kernel/linux/linux-6.6/tools/testing/selftests/memfd/
H A Dmemfd_test.c664 l = pwrite(fd, buf, mfd_def_size * 8, 0); in mfd_assert_grow_write()
666 printf("pwrite() failed: %m\n"); in mfd_assert_grow_write()
688 l = pwrite(fd, buf, mfd_def_size * 8, 0); in mfd_fail_grow_write()
690 printf("pwrite() didn't fail as expected\n"); in mfd_fail_grow_write()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
H A DELFObjectWriter.cpp1233 Stream.pwrite(reinterpret_cast<char *>(&Val), sizeof(Val), in writeObject()
1239 Stream.pwrite(reinterpret_cast<char *>(&Val), sizeof(Val), in writeObject()
1243 Stream.pwrite(reinterpret_cast<char *>(&NumSections), sizeof(NumSections), in writeObject()
H A DWasmObjectWriter.cpp192 Stream.pwrite((char *)Buffer, SizeLen, Offset); in writePatchableLEB()
202 Stream.pwrite((char *)Buffer, SizeLen, Offset); in writePatchableSLEB()
209 Stream.pwrite((char *)Buffer, sizeof(Buffer), Offset); in writeI32()
/kernel/linux/linux-5.10/tools/testing/selftests/sparc64/drivers/
H A Dadi-test.c104 .name = "pwrite", .total = 0, .count = 0, .bytes = 0};
274 ret = pwrite(fd, buf + bytes_written, in pwrite_adi()
278 fprintf(stderr, "pwrite(): error %d: %s\n", in pwrite_adi()
/kernel/linux/linux-6.6/tools/testing/selftests/sparc64/drivers/
H A Dadi-test.c100 .name = "pwrite", .total = 0, .count = 0, .bytes = 0};
270 ret = pwrite(fd, buf + bytes_written, in pwrite_adi()
274 fprintf(stderr, "pwrite(): error %d: %s\n", in pwrite_adi()
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/
H A Dmtpfs_fuse.cpp749 rval = ::pwrite(fileInfo->fh, buf, size, offset); in Write()
751 LOGE("MtpFileSystem: Write pwrite error, errno=%{public}d", errno); in Write()
/kernel/linux/linux-5.10/tools/vm/
H A Dpage-types.c590 len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); in mark_page_idle()
/kernel/linux/linux-6.6/tools/mm/
H A Dpage-types.c592 len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); in mark_page_idle()
/third_party/FreeBSD/sbin/fsck_msdosfs/
H A Dfat.c677 if ((size_t)pwrite(fd, buffer, len, off) != len) { in cleardirty()
/third_party/libuv/src/unix/
H A Dfs.c93 pwrite(fd, (bufs)->iov_base, (bufs)->iov_len, off)
1134 r = pwrite(fd, bufs->iov_base, bufs->iov_len, off); in uv__fs_write()
/third_party/node/deps/uv/src/unix/
H A Dfs.c1212 /* Serialize writes on OS X, concurrent write() and pwrite() calls result in in uv__fs_write()
1230 r = pwrite(req->file, req->bufs[0].base, req->bufs[0].len, req->off); in uv__fs_write()
1240 r = pwrite(req->file, req->bufs[0].base, req->bufs[0].len, req->off); in uv__fs_write()
/kernel/linux/linux-5.10/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c712 retval = pwrite(fd, &new_msr, sizeof(new_msr), offset); in put_msr()
714 err(-2, "pwrite(cpu%d, offset 0x%x, 0x%llx) = %d", cpu, offset, new_msr, retval); in put_msr()
/kernel/linux/linux-6.6/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c715 retval = pwrite(fd, &new_msr, sizeof(new_msr), offset); in put_msr()
717 err(-2, "pwrite(cpu%d, offset 0x%x, 0x%llx) = %d", cpu, offset, new_msr, retval); in put_msr()

Completed in 35 milliseconds

12345