Function lrs::syscall::pwrite

Writes to an offset in a file descriptor.

Syntax

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

Arguments

NameDescription
fd

The affected file descriptor.

buf

The buffer to write.

offset

The offset at which to write.

Return value

Returns the number of bytes written or an error value.

See also