IXP_READ(3)

πŸ“¦ version 0-unstable-2022-04, in nixos 26.05, nixpkgs unstable

πŸ’– 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