Home
last modified time | relevance | path

Searched refs:pwrite (Results 1 – 25 of 57) sorted by relevance

123

/openbsd-src/regress/sys/kern/pwrite/
H A Dpwrite.c34 if (pwrite(fd, &magic[1], 4, 4) != 4) in main()
56 if ((ret = pwrite(fd, &magic[5], 1, -1)) != -1) in main()
62 if ((ret = pwrite(fd, &magic[5], 1, LLONG_MAX)) != -1) in main()
71 if (pwrite(fd, &magic[2], 3, 2) != 3) in main()
84 else if ((ret = pwrite(fd, &c, 1, 7)) != -1) in main()
H A DMakefile3 PROG= pwrite
/openbsd-src/lib/libc/sys/
H A Dw_pwrite.c22 pwrite(int fd, const void *buf, size_t nbyte, off_t offset) in pwrite() function
27 ret = HIDDEN(pwrite)(fd, buf, nbyte, offset); in pwrite()
31 DEF_CANCEL(pwrite);
/openbsd-src/usr.sbin/vmd/
H A Dvioqcow2.c131 file->pwrite = qc2_pwrite; in virtio_qcow2_init()
440 if (pwrite(disk->fd, buf, sz, phys_off) != sz) in qc2_pwrite()
577 if (pwrite(disk->fd, &buf, sizeof(buf), l2tab + l2off * 8) != 8) in mkcluster()
582 if (pwrite(disk->fd, &buf, sizeof(buf), disk->l1off + 8 * l1off) != 8) in mkcluster()
606 if (pwrite(disk->fd, scratch, disk->clustersz, dst) == -1) in copy_cluster()
634 if (pwrite(disk->fd, &buf, sizeof(buf), l1off) != 8) in inc_refs()
646 if (pwrite(disk->fd, &refs, sizeof(refs), l2cluster + 2 * l2idx) != 2) in inc_refs()
752 if (pwrite(fd, &v, 8, refoff) != 8) in virtio_qcow2_create()
756 if (pwrite(fd, &refs, 2, initsz + 2*i) != 2) in virtio_qcow2_create()
H A Dvioraw.c43 return pwrite(*(int *)file, buf, len, off); in raw_pwrite()
84 file->pwrite = raw_pwrite; in virtio_raw_init()
H A Dvirtio.h125 ssize_t (*pwrite)(void *, char *, size_t, off_t); member
/openbsd-src/regress/usr.sbin/vmd/diskfmt/
H A Dvioscribble.c104 if (qcowfile.pwrite(qcowfile.p, buf, len, off) == -1) in main()
106 rawfile.pwrite(rawfile.p, buf, len, off); in main()
/openbsd-src/sbin/clri/
H A Dclri.c115 if (pwrite(fd, sblock, sizeof(sblock), offset) != sizeof(sblock)) in main()
154 if (pwrite(fd, ibuf, bsize, offset) != bsize) in main()
/openbsd-src/regress/sys/uvm/mmap_write_self/
H A Dmmap_write_self.c51 if (pwrite(fd, buf, ps, 0) == ps) in main()
/openbsd-src/lib/libutil/
H A Dlogin.c65 (void)pwrite(fd, utp, sizeof(struct utmp), pos); in login()
/openbsd-src/regress/sys/uvm/mmap_mod/
H A Dmmap_mod.c43 if (pwrite(fd, pat, ps, 0) != ps) in main()
/openbsd-src/regress/sys/kern/
H A DMakefile15 SUBDIR+= pipe pledge poll pread preadv ptmget ptrace ptrace2 pty pwrite pwritev
/openbsd-src/usr.sbin/installboot/
H A Dsparc64_installboot.c126 if (pwrite(devfd, blkstore, blksize, DEV_BSIZE) != (ssize_t)blksize) in md_installboot()
H A Dbootstrap.c128 if (pwrite(devfd, boot, bootsize, 0) != (ssize_t)bootsize) in bootstrap()
H A Dlandisk_installboot.c225 if (pwrite(devfd, boot, bootsize, bootpos) != (ssize_t)bootsize) in md_bootstrap()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/GSYM/
H A DFileWriter.cpp54 OS.pwrite(reinterpret_cast<const char *>(&Swapped), sizeof(Swapped), in fixup32()
/openbsd-src/sbin/fsck_ext2fs/
H A Dutilities.c323 if (pwrite(fd, buf, size, offset) == size) { in bwrite()
330 if (pwrite(fd, cp, secsize, offset + i) != secsize) { in bwrite()
/openbsd-src/lib/libc/hidden/
H A Dunistd.h120 PROTO_CANCEL(pwrite);
/openbsd-src/sys/dev/pci/drm/i915/gem/
H A Di915_gem_object_types.h86 int (*pwrite)(struct drm_i915_gem_object *obj, member
/openbsd-src/gnu/llvm/llvm/tools/llvm-rc/
H A DResourceFileWriter.h193 FS->pwrite((const char *)&Value, sizeof(T), Position); in writeObjectAt()
/openbsd-src/sbin/fsck_ffs/
H A Dutilities.c418 if (pwrite(fd, buf, size, offset) == size) { in bwrite()
425 if (pwrite(fd, cp, secsize, offset + i) != secsize) { in bwrite()
/openbsd-src/sbin/tunefs/
H A Dtunefs.c300 if (pwrite(fi, buffer, size, blk * DEV_BSIZE) != size) in bwrite()
/openbsd-src/include/
H A Dunistd.h436 ssize_t pwrite(int, const void *, size_t, off_t)
/openbsd-src/lib/libc/db/mpool/
H A Dmpool.c397 if (pwrite(mp->fd, bp->page, mp->pagesize, off) != mp->pagesize) in mpool_write()
/openbsd-src/gnu/llvm/lldb/docs/
H A Dlldb-platform-packets.txt415 // vFile:pwrite:
422 // receive: vFile:pwrite:8,0,\cf\fa\ed\fe\0c\00\00

123