Home
last modified time | relevance | path

Searched refs:pread (Results 1 – 25 of 147) sorted by relevance

123456

/freebsd/tools/test/stress2/misc/
H A Dpread.sh40 sed '1,/^EOF/d' < $here/$0 > pread.c
41 mycc -o pread -Wall -Wextra pread.c
42 rm -f pread.c
50 /tmp/pread $mntpoint
58 /tmp/pread /dev/fd
67 /tmp/pread $mntpoint
77 /tmp/pread $mntpoint
85 /tmp/pread $mntpoint
92 /tmp/pread $mntpoint
99 /tmp/pread $mntpoint
[all …]
H A Dmidi2.sh82 pread(fd, buf, 0xbc59, 0x27dbb298LL);
83 pread(fd, buf, 0xbc59, 0x104e35c6d22eLL);
84 pread(fd, buf2, 0x40eddf, 0x405d1df88cbf41LL);
H A Doverlap.sh116 while ((nread = pread(fdes, buf, siz, 0)) == 0)
128 } while ((nread = pread(fdes, buf, siz, 0)) != -1);
H A Dprocfs5.sh80 error = pread(fd, buf, uio_resid, uio_offset);
/freebsd/sbin/dump/
H A Dcache.c94 return(pread(fd, buf, nbytes, offset)); in cread()
107 return(pread(fd, buf, nbytes, offset)); in cread()
128 n = pread(fd, blk->b_Data, BlockSize, blk->b_Offset); in cread()
141 return(pread(fd, buf, nbytes, offset)); in cread()
/freebsd/tests/sys/geom/class/eli/
H A Dunaligned_io.c103 n = pread(fd, buf1, iosz, 0); in main()
107 n = pread(fd, buf2 + i, iosz, 0); in main()
123 n = pread(fd, buf2, iosz, 0); in main()
/freebsd/usr.sbin/acpi/acpidump/
H A Dacpi_user.c104 pread(acpi_mem_fd, &rsdp, 8, addr); in acpi_get_rsdp()
109 pread(acpi_mem_fd, &rsdp, sizeof(rsdp), addr); in acpi_get_rsdp()
144 pread(acpi_mem_fd, &addr, sizeof(uint16_t), addr); in acpi_scan_rsd_ptr()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dget_diff.c67 while ((bytes = pread(fd1, buf1, DEV_BSIZE, off)) > 0) { in main()
68 if (pread(fd2, buf2, DEV_BSIZE, off) < 0) { in main()
/freebsd/lib/libkvm/
H A Dkvm_amd64.c216 if (pread(kd->pmfd, &pdpe, sizeof(pdpe), ofs) != sizeof(pdpe)) { in _amd64_vatop()
248 if (pread(kd->pmfd, &pde, sizeof(pde), ofs) != sizeof(pde)) { in _amd64_vatop()
280 if (pread(kd->pmfd, &pte, sizeof(pte), ofs) != sizeof(pte)) { in _amd64_vatop()
/freebsd/tests/sys/fs/fusefs/
H A Dread.cc407 ASSERT_EQ(bufsize, pread(fd, buf, bufsize, 0)) << strerror(errno); in TEST_F()
413 ASSERT_EQ(bufsize, pread(fd, buf, bufsize, 0)) << strerror(errno); in TEST_F()
576 ASSERT_EQ(0, pread(fd, buf, 0, offset)) << strerror(errno); in TEST_F()
602 ASSERT_EQ(bufsize, pread(fd, buf, bufsize, offset)) << strerror(errno); in TEST_F()
608 ASSERT_EQ(bufsize, pread(fd, buf, bufsize, offset)) << strerror(errno); in TEST_F()
636 ASSERT_EQ(halfbufsize, pread(fd, buf, bufsize, offset)) in TEST_F()
696 r = pread(fd, buf, bufsize, offset); in TEST_F()
727 ASSERT_EQ(bufsize, pread(fd, buf, bufsize, m_maxbcachebuf * 2)) in TEST_F()
730 ASSERT_EQ(0, pread(fd, buf, bufsize, m_maxbcachebuf)) in TEST_F()
954 ASSERT_EQ(bufsize, pread(fd, buf, bufsize, 0)) << strerror(errno); in TEST_F()
[all …]
H A Dio.cc165 osize = pread(m_backing_fd, buf, isize, iofs); in SetUp()
302 ASSERT_EQ(size, pread(m_control_fd, control_buf, size, offs)) in do_mapread()
320 r = pread(m_test_fd, test_buf, size, offs); in do_read()
323 r = pread(m_control_fd, control_buf, size, offs); in do_read()
/freebsd/tests/sys/file/
H A Dfspacectl_test.c116 if (pread(fd, buf, blen, offset) != (ssize_t)blen) { in check_content_dealloc()
137 if (pread(fd, buf, blen, offset) != (ssize_t)blen) { in check_content_dealloc()
156 if (pread(fd, buf, blen, offset) != (ssize_t)blen) { in check_content_dealloc()
/freebsd/usr.sbin/fifolog/lib/
H A Dfifolog_int.c92 i = pread(f->fd, f->recbuf, f->recsize, 0); in fifolog_int_open_i()
203 i = pread(ff->fd, ff->recbuf, ff->recsize, recno * ff->recsize); in fifolog_int_read()
/freebsd/cddl/compat/opensolaris/include/
H A Dunistd.h35 #define pread64 pread
/freebsd/contrib/file/src/
H A Dreadelf.c380 if (pread(fd, xph_addr, xph_sizeof, off) < in dophn_core()
404 if ((bufsize = pread(fd, nbuf, len, offs)) == -1) { in dophn_core()
1015 if (pread(fd, xph_addr, xph_sizeof, off) < in get_offset_from_virtaddr()
1051 (buflen = pread(fd, buf, CAST(size_t, buflen), offset)) <= 0) { in get_string_on_virtaddr()
1444 if (pread(fd, xsh_addr, xsh_sizeof, offs) < CAST(ssize_t, xsh_sizeof)) { in doshn()
1462 if ((namesize = pread(fd, name, sizeof(name) - 1, offs)) in doshn()
1476 if (pread(fd, xsh_addr, xsh_sizeof, off) < in doshn()
1529 if (pread(fd, nbuf, xsh_size, offs) < in doshn()
1748 if (pread(fd, xph_addr, xph_sizeof, off) < in dophn_exec()
1794 bufsize = pread(fd, nbuf, len, offs); in dophn_exec()
H A Dpread.c9 pread(int fd, void *buf, size_t len, off_t off) { in pread() function
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/dd/
H A Ddd_interceptors.cpp236 INTERCEPTOR(SSIZE_T, pread, int fd, void *ptr, SIZE_T count, OFF_T offset) { in INTERCEPTOR() argument
238 return REAL(pread)(fd, ptr, count, offset); in INTERCEPTOR()
325 INTERCEPT_FUNCTION(pread); in InitializeInterceptors()
/freebsd/stand/i386/libi386/
H A Dpread.c51 pread(fd, dest, size) in pread() function
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/misc/
H A Dtst.macroglob.ksh.out4 pread entry
/freebsd/tools/tools/ncpus/
H A Dacpi.c222 pread(acpi_mem_fd, &rsdp, 8, addr); in acpi_get_rsdp()
227 pread(acpi_mem_fd, &rsdp, sizeof(rsdp), addr); in acpi_get_rsdp()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/
H A Dtmpfile_001_pos.c60 if (pread(fd, buf2, BSZ, 0) < 0) in main()
/freebsd/contrib/netbsd-tests/usr.bin/sdiff/
H A Dd_iflags_d1.out38 > native-pread: permit
57 native-pread: permit | native-nanosleep: permit
H A Dd_iflags_b1.out38 > native-pread: permit
57 native-pread: permit | native-nanosleep: permit
/freebsd/usr.bin/sdiff/tests/
H A Dd_iflags_b1.out38 > native-pread: permit
57 native-pread: permit | native-nanosleep: permit
H A Dd_iflags_d1.out38 > native-pread: permit
57 native-pread: permit | native-nanosleep: permit

123456