| err = ESUCCESS, err0 = err1, root.dir?, fids-cons(root, fs, ofh), pre-seek(fd, n, whence, err, user, root, fs, ofh) ⊦ ⟪let fh = ofh[fd] in let f = fs[fh.fid] in {if whence = SEEK_CUR then n := fh.pos + n else if whence = SEEK_END then n := # f.content + n; ofh[fd].pos := n}⟫ fids-cons(root, fs, ofh) |
err = ESUCCESS, err0 = err1, fh = ofh[fd], root.dir?, fids-cons(root, fs, ofh), pre-seek(fd, n, whence, err, user, root, fs, ofh), fd ∈ ofh ⊦ ⟪let f = fs[fh.fid] in {if whence = SEEK_CUR then n := fh.pos + n else if whence = SEEK_END then n := # f.content + n; ofh[fd].pos := n}⟫ fids-cons(root, fs, ofh)
err = ESUCCESS, err0 = err1, root.dir?, fids-cons(root, fs, ofh), pre-seek(fd, n, whence, err, user, root, fs, ofh) ⊦ fd ∈ ofh