| 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 ⊦ ⟪if whence = SEEK_END then n := # f.content + n; ofh[fd].pos := n⟫ fids-cons(root, fs, ofh), whence = SEEK_CUR |
err = ESUCCESS, err0 = err1, f = fs[fh.fid], fh = ofh[fd], whence = SEEK_END, root.dir?, fids-cons(root, fs, ofh), pre-seek(fd, n, whence, err, user, root, fs, ofh), fh.fid ∈ fs, fd ∈ ofh ⊦ ⟪n := # f.content + n; ofh[fd].pos := n⟫ fids-cons(root, fs, ofh), 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 ⊦ ⟪skip; ofh[fd].pos := n⟫ fids-cons(root, fs, ofh), whence = SEEK_CUR, whence = SEEK_END