| err = ESUCCESS, err0 = err1, f = fs[fh.fid], fh = ofh[fd], root.dir?, fids-cons(root, fs, ofh), pre-seek(fd, n, whence, err, user, root, fs, ofh), fd ∈ ofh, fh.fid ∈ fs ⊦ ⟪ofh[fd].pos := n⟫ fids-cons(root, fs, ofh), whence = SEEK_END, whence = SEEK_CUR |
err = ESUCCESS, err0 = err1, f = fs[fh.fid], fh = ofh[fd], root.dir?, fids-cons(root, fs, ofh), pre-seek(fd, n, whence, err, user, root, fs, ofh), fh.fid ∈ fs, fd ∈ ofh ⊦ whence = SEEK_CUR, whence = SEEK_END, fids-cons(root, fs, ofh[fd, ofh[fd].pos:= n])