Searched refs:pread (Results 1 - 25 of 71) sorted by relevance

123

/freebsd-11-stable/cddl/compat/opensolaris/include/
H A Dunistd.h37 #define pread64 pread
/freebsd-11-stable/contrib/file/src/
H A Dpread.c3 FILE_RCSID("@(#)$File: pread.c,v 1.3 2014/09/15 19:11:25 christos Exp $")
9 pread(int fd, void *buf, size_t len, off_t off) { function
H A Dbuffer.c78 if (pread(b->fd, b->ebuf, b->elen, b->eoff) == -1) {
H A Dreadelf.c378 if (pread(fd, xph_addr, xph_sizeof, off) <
398 if ((bufsize = pread(fd, nbuf, len, xph_offset)) == -1) {
942 if (pread(fd, xph_addr, xph_sizeof, off) <
974 (buflen = pread(fd, buf, CAST(size_t, buflen), offset)) <= 0) {
1358 if (pread(fd, xsh_addr, xsh_sizeof, CAST(off_t, (off + size * strtab)))
1375 if ((namesize = pread(fd, name, sizeof(name) - 1,
1386 if (pread(fd, xsh_addr, xsh_sizeof, off) <
1430 if (pread(fd, nbuf, xsh_size, xsh_offset) <
1643 if (pread(fd, xph_addr, xph_sizeof, off) <
1686 bufsize = pread(f
[all...]
/freebsd-11-stable/stand/i386/libi386/
H A Dpread.c2 * $NetBSD: pread.c,v 1.2 1997/03/22 01:48:38 thorpej Exp $
37 __FBSDID("$FreeBSD: stable/11/stand/i386/libi386/pread.c 119482 2003-08-25 23:28:32Z obrien $");
54 pread(fd, dest, size) function
/freebsd-11-stable/sbin/dump/
H A Dcache.c92 * block size, then revert to pread. Otherwise initialize the
96 return(pread(fd, buf, nbytes, offset));
103 * revert to pread(). Full-block-reads are typically
109 return(pread(fd, buf, nbytes, offset));
114 * result. If an error occurs, revert to pread() (this might
130 n = pread(fd, blk->b_Data, BlockSize, blk->b_Offset);
143 return(pread(fd, buf, nbytes, offset));
/freebsd-11-stable/usr.sbin/acpi/acpidump/
H A Dacpi_user.c106 pread(acpi_mem_fd, &rsdp, 8, addr);
111 pread(acpi_mem_fd, &rsdp, sizeof(rsdp), addr);
146 pread(acpi_mem_fd, &addr, sizeof(uint16_t), addr);
/freebsd-11-stable/usr.sbin/fifolog/lib/
H A Dfifolog_int.c94 i = pread(f->fd, f->recbuf, f->recsize, 0);
205 i = pread(ff->fd, ff->recbuf, ff->recsize, recno * ff->recsize);
/freebsd-11-stable/lib/libkvm/
H A Dkvm_minidump_amd64.c89 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) !=
124 if (pread(kd->pmfd, bitmap, vmst->hdr.bitmapsize, off) !=
138 if (pread(kd->pmfd, vmst->page_map, vmst->hdr.pmapsize, off) !=
246 if (pread(kd->pmfd, &pt, AMD64_PAGE_SIZE, ofs) !=
H A Dkvm_minidump_i386.c89 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) !=
118 if (pread(kd->pmfd, bitmap, vmst->hdr.bitmapsize, off) !=
132 if (pread(kd->pmfd, vmst->ptemap, vmst->hdr.ptesize, off) !=
H A Dkvm_minidump_arm.c94 if (pread(kd->pmfd, &vmst->hdr,
132 if (pread(kd->pmfd, bitmap, vmst->hdr.bitmapsize, off) !=
149 if (pread(kd->pmfd, vmst->ptemap, vmst->hdr.ptesize, off) !=
H A Dkvm_minidump_aarch64.c89 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) !=
124 if (pread(kd->pmfd, bitmap, vmst->hdr.bitmapsize, off) !=
148 if (pread(kd->pmfd, vmst->page_map, vmst->hdr.pmapsize, off) <
H A Dkvm_minidump_mips.c105 if (pread(kd->pmfd, &vmst->hdr,
139 if (pread(kd->pmfd, bitmap, vmst->hdr.bitmapsize, off) !=
156 if (pread(kd->pmfd, vmst->ptemap, vmst->hdr.ptesize, off) !=
H A Dkvm_amd64.c221 if (pread(kd->pmfd, &pdpe, sizeof(pdpe), ofs) != sizeof(pdpe)) {
253 if (pread(kd->pmfd, &pde, sizeof(pde), ofs) != sizeof(pde)) {
285 if (pread(kd->pmfd, &pte, sizeof(pte), ofs) != sizeof(pte)) {
H A Dkvm_i386.c283 if (pread(kd->pmfd, &pte, sizeof(pte), ofs) != sizeof(pte)) {
284 _kvm_syserr(kd, kd->program, "_i386_vatop: pread");
373 if (pread(kd->pmfd, &pte, sizeof(pte), ofs) != sizeof(pte)) {
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/dd/
H A Ddd_interceptors.cpp235 INTERCEPTOR(SSIZE_T, pread, int fd, void *ptr, SIZE_T count, OFF_T offset) {
237 return REAL(pread)(fd, ptr, count, offset);
323 INTERCEPT_FUNCTION(pread);
/freebsd-11-stable/tools/tools/bootparttest/
H A Dbootparttest.c83 ret = pread(disk.fd, buf, size,
/freebsd-11-stable/tests/sys/file/
H A Dftruncate_test.c105 size = pread(fd, &ch, sizeof(ch), len - 1);
107 err(1, "pread on len %jd up", (intmax_t)len);
109 errx(-1, "pread len %jd size %jd up",
113 "pread length %jd size %jd ch %d up",
/freebsd-11-stable/tools/tools/ncpus/
H A Dacpi.c224 pread(acpi_mem_fd, &rsdp, 8, addr);
229 pread(acpi_mem_fd, &rsdp, sizeof(rsdp), addr);
H A Dbiosmptable.c153 if ((size_t)pread(pfd, entry, size, addr) != size) {
154 warn("pread (%zu @ 0x%jx)", size, (intmax_t)addr);
/freebsd-11-stable/sys/kern/
H A Dcapabilities.conf499 pread
/freebsd-11-stable/lib/libufs/
H A Dblock.c72 cnt = pread(disk->d_fd, p2, size, (off_t)(blockno * disk->d_bsize));
/freebsd-11-stable/tools/tools/zfsboottest/
H A Dzfsboottest.c65 if (pread(fd, buf, bytes, off) != bytes)
/freebsd-11-stable/contrib/binutils/bfd/
H A Dopncls.c381 file_ptr (*pread) (struct bfd *nbfd,
396 @var{pread} and destroyed using @var{close}.
407 Calls @var{pread} to request @var{nbytes} of data from
409 <<bfd_read>>). @var{pread} either succeeds returning the
430 file_ptr (*pread) (struct bfd *abfd, void *stream, void *buf, member in struct:opncls
461 file_ptr nread = (vec->pread) (abfd, vec->stream, buf, nbytes, vec->where);
517 file_ptr (*pread) (struct bfd *abfd,
556 vec->pread = pread;
/freebsd-11-stable/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c151 ssize = pread(fd_cap, &ch, sizeof(ch), 0);
152 ssize2 = pread(fd_cap, &ch, sizeof(ch), 0);
153 CHECK_RESULT(pread, CAP_PREAD, ssize >= 0);

Completed in 165 milliseconds

123