Function lrs::syscall::pread

Reads from an offset in a file descriptor.

Syntax

fn pread(fd: i32, buf: &mut [u8], offset: i64) -> i64

Arguments

NameDescription
fd

The affected file descriptor.

buf

The buffer to read into.

offset

The offset from which to read.

Return value

Returns the number of bytes read or an error value.

See also