Function wasmer_wasix::syscalls::wasi::fd_advise::fd_advise

source ·
pub fn fd_advise(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    fd: Fd,
    offset: Filesize,
    len: Filesize,
    advice: Advice,
) -> Result<Errno, WasiError>
Expand description

§fd_advise()

Advise the system about how a file will be used Inputs:

  • Fd fd The file descriptor the advice applies to
  • Filesize offset The offset from which the advice applies
  • Filesize len The length from the offset to which the advice applies
  • __wasi_advice_t advice The advice to give