Skip to main content

SYS_PREAD

Constant SYS_PREAD 

Source
pub const SYS_PREAD: usize = 456;
Expand description

Read from a file descriptor at a specific offset.

  • fd: file descriptor
  • buf_ptr: buffer to receive the data
  • buf_len: number of bytes to read
  • offset: byte offset in the file

Returns the number of bytes read. The file position is not changed.