| err0 = err, root.dir?, fids-cons(root, fs, ofh) ⊦ ⟪choose err with pre-seek(fd, n, whence, err, user, root, fs, ofh) in err0 := err; if err0 = ESUCCESS then 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) |
err0 = err1, root.dir?, fids-cons(root, fs, ofh), pre-seek(fd, n, whence, err, user, root, fs, ofh) ⊦ ⟪err0 := err; if err0 = ESUCCESS then 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)
err0 = err, root.dir?, fids-cons(root, fs, ofh) ⊦ ∃ err. pre-seek(fd, n, whence, err, user, root, fs, ofh)