| err = ESUCCESS, err1 = err0, n = of[fd].pos + n1, n1 = n0, ofh = abs-of(of), whence = SEEK_CUR, root.dir?, dom of < ino, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of)), of-cons(of, dirs, files), fd ∈ of, psynced → asynced ⊦ ⟨posix_seek#(fd, whence, user, root, abs-files(files); n0, err0, ofh)⟩ (ofh = abs-of(of[fd, of[fd].pos:= n]) ∧ (psynced → asynced) ∧ n = n0 ∧ err = err0) |
n = of[fd].pos + n0, ofh = abs-of(of), root.dir?, dom of < ino, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of)), of-cons(of, dirs, files), fd ∈ of, psynced → asynced ⊦ ⟨posix_seek#(fd, SEEK_CUR, user, root, abs-files(files); n0, err0, ofh)⟩ (ofh = abs-of(of[fd, of[fd].pos:= n0]) ∧ (psynced → asynced) ∧ n = n0 ∧ ESUCCESS = err0)