Skip to content
BSD syscall#540

svc · unix #540

sys_preadv

Internal XNU symbol name for the preadv(2) syscall; the public wrapper is preadv(2).

Prototype

user_ssize_t sys_preadv(int fd, struct iovec *iovp, int iovcnt, off_t offset);

Returns: user_ssize_t

Arguments

NameTypeDirDescription
fdint-
iovpstruct iovec-
iovcntint-
offsetoff_t-

Version history

XNU tagmacOS#
xnu-7195.50.7.100.1macOS 11.0 Big Sur540
xnu-8019.41.5macOS 12.0 Monterey540
xnu-8792.41.9macOS 13.0 Ventura540
xnu-10002.1.13macOS 14.0 Sonoma540
xnu-11215.1.10macOS 15.0 Sequoia540
xnu-11417.101.15macOS 15.4 Sequoia540
xnu-12377.1.9macOS 26.0 Tahoe540
xnu-10002.41.9—540
xnu-10002.61.3—540
xnu-10002.81.5—540
xnu-10063.101.15—540
xnu-10063.121.3—540
xnu-10063.141.1—540
xnu-11215.41.3—540
xnu-11215.61.5—540
xnu-11215.81.4—540
xnu-11417.121.6—540
xnu-11417.140.69—540
xnu-12377.101.15—540
xnu-12377.41.6—540
xnu-12377.61.12—540
xnu-12377.81.4—540
xnu-7195.101.1—540
xnu-7195.121.3—540
xnu-7195.141.2—540
xnu-7195.60.75—540
xnu-7195.81.3—540
xnu-8019.61.5—540
xnu-8019.80.24—540
xnu-8020.101.4—540
xnu-8020.121.3—540
xnu-8020.140.41—540
xnu-8792.61.2—540
xnu-8792.81.2—540
xnu-8796.101.5—540
xnu-8796.121.2—540
xnu-8796.141.3—540

Notes

Positional, vectored read — combines readv and pread in a single syscall. See preadv.

Related APIs

preadvreadvpreadread