1234567891011121314151617181920212223242526272829303132333435363738394041(* Must match exactly what Linux is expecting *)openRresulttypet=Protocol_9p.Response.Err.tleterror?(errno=0l)fmt=Printf.ksprintf(funename->Error{Protocol_9p.Response.Err.ename;errno=Someerrno})fmtletenoent=error"No such file or directory"leteisdir=error"Is a directory"letenotdir=error"Is not a directory"letero=error"Read-only file"leteperm=error"Operation not permitted"letof_errorx=letopenVfs.Errorinmatchxwith|Noent->enoent|Isdir->eisdir|Notdir->enotdir|Read_only_file->ero|Perm->eperm|Othererr->error?errno:err.errno"%s"err.descrletmap_error=function|Ok_asx->Lwt.returnx|Errore->Lwt.return(of_errore)moduleInfix=structopenLwt.Infixlet(>>*=)xf=x>>=function|Okx->fx|Error_ase->Lwt.returneend