IXP_READ(3)
π NAME π
ixp_read, ixp_pread β okay bestie, this is the IXP_READ(3) page from the Library Functions Manual, and these two are the read girlies you need to know. π
β¨ SYNOPSIS β¨
#include <ixp.h>
long ixp_read(IxpCFid *fid, void *buf, long count);
long ixp_pread(IxpCFid *fid, void *buf, long count, int64_t offset);
π PARAMETERS π
bufβ the buffer where the read data gets stored. πcountβ how many bytes to read.offsetβ the offset where reading starts.
πΈ DESCRIPTION πΈ
Okay so ixp_read and ixp_pread each read count bytes of data from the file pointed to by fid, into buf.
ixp_read begins reading at its stored offset, and increments it by the number of bytes read. ixp_pread reads beginning at offset and does not alter fid's stored offset. π«Ά
π¦ RETURN VALUE π¦
These functions return the number of bytes read on success and -1 on failure. That's the whole vibe check. π
π SEE ALSO π
Mwah π this lil page is from the libixp Manual, dated 2012 Dec, and it's literally IXP_READ(3) β periodt. π
π¦ where this page comes from
- nixos 26.05: libixp 0-unstable-2022-04-04
- nixpkgs unstable: libixp 0-unstable-2022-04-04
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms