Home
last modified time | relevance | path

Searched refs:pwrite (Results 1 - 25 of 76) sorted by relevance

1234

/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dpwrite.c46 size_t cnt = pwrite(fd, txt, strlen(txt), 0); in pwrite_0100()
65 size_t cnt = pwrite(-1, txt, strlen(txt), 0); in pwrite_0200()
74 cnt = pwrite(fd, txt, 0, 0); in pwrite_0200()
77 cnt = pwrite(fd, NULL, 0, 0); in pwrite_0200()
H A Dpread.c38 pwrite(fd, txt, strlen(txt), 0); in pread_0100()
63 pwrite(fd, txt, strlen(txt), 0); in pread_0200()
87 pwrite(fd, txt, strlen(txt), 0); in pread_0300()
/third_party/musl/src/unistd/
H A Dpwrite.c4 ssize_t pwrite(int fd, const void *buf, size_t size, off_t ofs) in pwrite() function
9 weak_alias(pwrite, pwrite64);
/third_party/skia/third_party/externals/freetype/src/sfnt/
H A Dttsbit.c762 FT_Byte* pwrite = line; in tt_sbit_decoder_load_byte_aligned() local
768 pwrite[0] = (FT_Byte)( pwrite[0] | *p++ ); in tt_sbit_decoder_load_byte_aligned()
769 pwrite += 1; in tt_sbit_decoder_load_byte_aligned()
773 pwrite[0] = (FT_Byte)( pwrite[0] | ( *p++ & ( 0xFF00U >> w ) ) ); in tt_sbit_decoder_load_byte_aligned()
780 FT_Byte* pwrite = line; in tt_sbit_decoder_load_byte_aligned() local
788 pwrite[0] = (FT_Byte)( pwrite[0] | ( wval >> x_pos ) ); in tt_sbit_decoder_load_byte_aligned()
789 pwrite in tt_sbit_decoder_load_byte_aligned()
915 FT_Byte* pwrite = line; tt_sbit_decoder_load_bit_aligned() local
[all...]
/third_party/musl/porting/linux/user/include/fortify/
H A Dunistd.h45 ssize_t __pwrite_real(int, const void*, size_t, off_t) __DIAGNOSE_RENAME(pwrite); variable
88 ssize_t pwrite(int fd, const void* const __DIAGNOSE_PASS_OBJECT_SIZE0 buf, size_t count, off_t offset)
90 __DIAGNOSE_ERROR_IF_OVERFLOWS_SSIZET(count, pwrite)
91 __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE(count, __DIAGNOSE_BOS0(buf), pwrite) in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
/third_party/musl/include/fortify/linux/
H A Dunistd.h45 ssize_t __pwrite_real(int, const void*, size_t, off_t) __DIAGNOSE_RENAME(pwrite); variable
88 ssize_t pwrite(int fd, const void* const __DIAGNOSE_PASS_OBJECT_SIZE0 buf, size_t count, off_t offset)
90 __DIAGNOSE_ERROR_IF_OVERFLOWS_SSIZET(count, pwrite)
91 __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE(count, __DIAGNOSE_BOS0(buf), pwrite) in __DIAGNOSE_ERROR_IF_OVERFLOWS_OBJECTSIZE()
/third_party/rust/crates/rustix/src/io/
H A Dread_write.rs63 /// `pwrite(fd, bufs)`—Writes to a file at a given position.
74 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pwrite.html
75 /// [Linux]: https://man7.org/linux/man-pages/man2/pwrite.2.html
76 /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pwrite.2.html
78 pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> { in pwrite() functions
79 backend::io::syscalls::pwrite(fd.as_fd(), buf, offset) in pwrite()
H A Dmod.rs82 pub use read_write::{pread, pwrite, read, readv, write, writev, IoSlice, IoSliceMut};
/third_party/ltp/testcases/kernel/syscalls/pwrite/
H A Dpwrite03.c20 TST_EXP_PASS(pwrite(fd, NULL, 0, 0), "pwrite(%d, NULL, 0) == 0", fd); in verify_pwrite()
H A Dpwrite02.c9 * Test basic error handling of the pwrite syscall.
73 TST_EXP_FAIL2(pwrite(*tc->fd, tc->buf, BS, tc->off), tc->exp_errno, in verify_pwrite()
74 "pwrite(%d, %d, %ld)", *tc->fd, BS, tc->off); in verify_pwrite()
/third_party/rust/crates/nix/src/sys/
H A Duio.rs45 /// See also: [`writev`](fn.writev.html) and [`pwrite`](fn.pwrite.html)
97 /// See also [pwrite(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/pwrite.html)
99 pub fn pwrite(fd: RawFd, buf: &[u8], offset: off_t) -> Result<usize> { in pwrite() functions
101 libc::pwrite( in pwrite()
/third_party/rust/crates/rustix/tests/fs/
H A Dinvalid_offset.rs127 use rustix::io::pwrite; in invalid_offset_pwrite()
139 pwrite(&file, &buf, u64::MAX).unwrap_err(); in invalid_offset_pwrite()
140 pwrite(&file, &buf, i64::MAX as u64 + 1).unwrap_err(); in invalid_offset_pwrite()
/third_party/rust/crates/rustix/tests/io/
H A Dread_write.rs48 use rustix::io::{pread, pwrite}; in test_readwrite_p()
60 pwrite(&foo, b"hello", 200).unwrap(); in test_readwrite_p()
61 pwrite(&foo, b"world", 300).unwrap(); in test_readwrite_p()
/third_party/NuttX/fs/vfs/
H A Dfs_pwrite.c41 * Equivalent to the standard pwrite function except that is accepts a
100 * Name: pwrite
103 * The pwrite() function performs the same action as write(), except that
105 * first three arguments to pwrite() are the same as write() with the
110 * it is not. Why? Because if pwrite were implemented in libc, it would
126 * effect on the location at which pwrite() writes data. However, on NuttX
127 * like on Linux, if a file is opened with O_APPEND, pwrite() appends data
132 ssize_t pwrite(int fd, const void *buf, size_t nbytes, off_t offset) in pwrite() function
/third_party/ntfs-3g/libntfs-3g/
H A Dunix_io.c323 return pwrite(DEV_FD(dev), buf, count, offset); in ntfs_device_unix_io_pwrite()
388 .pwrite = ntfs_device_unix_io_pwrite,
/third_party/ltp/include/
H A Dtst_safe_prw.h38 rval = pwrite(fildes, buf, nbyte, offset); in safe_pwrite()
41 "pwrite(%d,%p,%zu,%lld) failed", in safe_pwrite()
45 "Invalid pwrite(%d,%p,%zu,%lld) return value %zd", in safe_pwrite()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/GSYM/
H A DFileWriter.cpp55 OS.pwrite(reinterpret_cast<const char *>(&Swapped), sizeof(Swapped),
/third_party/musl/porting/liteos_a/user/include/
H A Dunistd.h49 ssize_t pwrite(int, const void *, size_t, off_t);
222 #define pwrite64 pwrite
/third_party/musl/porting/uniproton/kernel/include/
H A Dunistd.h47 ssize_t pwrite(int, const void *, size_t, off_t);
198 #define pwrite64 pwrite
/third_party/musl/porting/linux/user/include/
H A Dunistd.h53 ssize_t pwrite(int, const void *, size_t, off_t);
225 #define pwrite64 pwrite
/third_party/musl/porting/liteos_m/user/include/
H A Dunistd.h49 ssize_t pwrite(int, const void *, size_t, off_t);
222 #define pwrite64 pwrite
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dunistd.h47 ssize_t pwrite(int, const void *, size_t, off_t);
198 #define pwrite64 pwrite
/third_party/musl/porting/liteos_m/kernel/include/
H A Dunistd.h47 ssize_t pwrite(int, const void *, size_t, off_t);
198 #define pwrite64 pwrite
/third_party/musl/include/
H A Dunistd.h63 ssize_t pwrite(int, const void *, size_t, off_t);
264 #define pwrite64 pwrite
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
H A Ddio_read.c47 w = pwrite(fd, bufptr, wsize, offset); in do_buffered_writes()
49 tst_brk(TBROK, "pwrite: %s", tst_strerrno(-w)); in do_buffered_writes()
51 tst_brk(TBROK, "pwrite: wrote %lld bytes out of %lld", w, wsize); in do_buffered_writes()

Completed in 22 milliseconds

1234