/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | pread.c | 40 size_t cnt = pread(fd, buffer, TEST_BUFFER_SIZE, 0); in pread_0100() 64 size_t cnt = pread(fd, buffer, TEST_BUFFER_SIZE, 0); in pread_0200() 88 size_t cnt = pread(fd, buffer, TEST_BUFFER_SIZE, strlen(txt)); in pread_0300()
|
H A D | pwrite.c | 50 cnt = pread(fd, buffer, TEST_BUFFER_SIZE, 0); in pwrite_0100()
|
/third_party/musl/src/unistd/ |
H A D | pread.c | 4 ssize_t pread(int fd, void *buf, size_t size, off_t ofs) in pread() function 9 weak_alias(pread, pread64);
|
/third_party/musl/porting/linux/user/include/fortify/ |
H A D | unistd.h | 42 ssize_t __pread_real(int, void*, size_t, off_t) __DIAGNOSE_RENAME(pread); variable 72 ssize_t pread(int fd, void* const __DIAGNOSE_PASS_OBJECT_SIZE0 buf, size_t count, off_t offset) 74 __DIAGNOSE_ERROR_IF_OVERFLOWS_SSIZET(count, pread) 75 __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE(count, __DIAGNOSE_BOS0(buf), pread) in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
|
/third_party/musl/include/fortify/linux/ |
H A D | unistd.h | 42 ssize_t __pread_real(int, void*, size_t, off_t) __DIAGNOSE_RENAME(pread); variable 72 ssize_t pread(int fd, void* const __DIAGNOSE_PASS_OBJECT_SIZE0 buf, size_t count, off_t offset) 74 __DIAGNOSE_ERROR_IF_OVERFLOWS_SSIZET(count, pread) 75 __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE(count, __DIAGNOSE_BOS0(buf), pread) in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
|
/third_party/mesa3d/src/glx/ |
H A D | drisw_glx.c | 277 __GLXDRIdrawable *pread = &(prp->base); in swrastGetImage2() local 278 Display *dpy = pread->psc->dpy; in swrastGetImage2() 287 readable = pread->xDrawable; in swrastGetImage2() 314 __GLXDRIdrawable *pread = &(prp->base); in swrastGetImageShm2() local 315 Display *dpy = pread->psc->dpy; in swrastGetImageShm2() 326 readable = pread->xDrawable; in swrastGetImageShm2() 436 struct drisw_drawable *pdraw, *pread; in drisw_bind_context() local 439 pread = (struct drisw_drawable *) driFetchDrawable(context, read); in drisw_bind_context() 445 pread ? pread in drisw_bind_context() [all...] |
H A D | driwindows_glx.c | 86 struct driwindows_drawable *pdraw, *pread; in driwindows_bind_context() local 89 pread = (struct driwindows_drawable *) driFetchDrawable(context, read); in driwindows_bind_context() 93 if (pdraw == NULL || pread == NULL) in driwindows_bind_context() 97 pdraw->windowsDrawable, pread->windowsDrawable)) in driwindows_bind_context()
|
/third_party/rust/crates/rustix/src/io/ |
H A D | read_write.rs | 48 /// `pread(fd, buf, offset)`—Reads from a file at a given position. 55 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pread.html 56 /// [Linux]: https://man7.org/linux/man-pages/man2/pread.2.html 57 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pread.2.html 59 pub fn pread<Fd: AsFd>(fd: Fd, buf: &mut [u8], offset: u64) -> io::Result<usize> { in pread() functions 60 backend::io::syscalls::pread(fd.as_fd(), buf, offset) in pread()
|
/third_party/rust/crates/rustix/tests/fs/ |
H A D | invalid_offset.rs | 107 use rustix::io::pread; in invalid_offset_pread() 119 pread(&file, &mut buf, u64::MAX).unwrap_err(); in invalid_offset_pread() 120 pread(&file, &mut buf, i64::MAX as u64 + 1).unwrap_err(); in invalid_offset_pread()
|
/third_party/rust/crates/rustix/tests/io/ |
H A D | read_write.rs | 48 use rustix::io::{pread, pwrite}; in test_readwrite_p() 63 pread(&foo, &mut buf, 200).unwrap(); in test_readwrite_p() 65 pread(&foo, &mut buf, 300).unwrap(); in test_readwrite_p()
|
/third_party/rust/crates/nix/src/sys/ |
H A D | uio.rs | 71 /// See also: [`readv`](fn.readv.html) and [`pread`](fn.pread.html) 114 /// See also [pread(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/pread.html) 116 pub fn pread(fd: RawFd, buf: &mut [u8], offset: off_t) -> Result<usize> { in pread() functions 118 libc::pread( in pread()
|
/third_party/ltp/testcases/cve/ |
H A D | meltdown.c | 176 ret = pread(fd, buf, sizeof(buf), 0); in readbit() 321 expected_len = pread(spec_fd, expected, sizeof(expected), 0); in run()
|
/third_party/ntfs-3g/libntfs-3g/ |
H A D | unix_io.c | 301 return pread(DEV_FD(dev), buf, count, offset); in ntfs_device_unix_io_pread() 387 .pread = ntfs_device_unix_io_pread,
|
/third_party/NuttX/fs/vfs/ |
H A D | fs_pread.c | 41 * Equivalent to the standard pread function except that is accepts a 100 * Name: pread 103 * The pread() function performs the same action as read(), except that it 105 * pointer. The first three arguments to pread() are the same as read() 107 * inside the file. An attempt to perform a pread() on a file that is 111 * it is not. Why? Because if pread were implemented in libc, it would 128 ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset) in pread() function
|
/third_party/musl/libc-test/src/regression/ |
H A D | fflush-exit.c | 34 ASSERT(pread(fd, &c, 1, 0) == 1); in main()
|
/third_party/ltp/testcases/kernel/syscalls/pread/ |
H A D | pread02.c | 10 * Tests basic error handling of the pread syscall. 44 TST_EXP_FAIL2(pread(*tc->fd, &buf, tc->nb, tc->offst), tc->exp_errno, in verify_pread() 45 "pread(%d, %zu, %lld) %s", *tc->fd, tc->nb, (long long)tc->offst, tc->desc); in verify_pread()
|
/third_party/elfutils/tests/ |
H A D | arextract.c | 110 ssize_t n = pread (fd, buf, MIN (sizeof buf, todo), offset); in main()
|
/third_party/elfutils/lib/ |
H A D | crc32_file.c | 82 while ((count = TEMP_FAILURE_RETRY (pread (fd, buffer, sizeof buffer, in crc32_file()
|
/third_party/ltp/include/ |
H A D | tst_safe_prw.h | 14 rval = pread(fildes, buf, nbyte, offset); in safe_pread() 18 "pread(%d,%p,%zu,%lld) failed", in safe_pread() 22 "Invalid pread(%d,%p,%zu,%lld) return value %zd", in safe_pread()
|
/third_party/musl/porting/liteos_a/user/include/ |
H A D | unistd.h | 48 ssize_t pread(int, void *, size_t, off_t); 221 #define pread64 pread
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | unistd.h | 46 ssize_t pread(int, void *, size_t, off_t); 197 #define pread64 pread
|
/third_party/musl/porting/linux/user/include/ |
H A D | unistd.h | 52 ssize_t pread(int, void *, size_t, off_t); 224 #define pread64 pread
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | unistd.h | 48 ssize_t pread(int, void *, size_t, off_t); 221 #define pread64 pread
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | unistd.h | 46 ssize_t pread(int, void *, size_t, off_t); 197 #define pread64 pread
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | unistd.h | 46 ssize_t pread(int, void *, size_t, off_t); 197 #define pread64 pread
|