| files[m] = mkfile(m1, md, m2, content), of0[fd] = mkfile(m, mode, m0), err0 = ESUCCESS, fid = ofh[fd].fid, fs = abs-files(files), ofh = abs-of(of0), root.dir?, dom of0 < ino0, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of0)), is-open(m, of0 -- fd), of-cons(of0 -- fd, dirs, files), of-cons(of0, dirs, files), fd ∈ ofh, fd ∈ of0, psynced → asynced ⊦ ⟨ofh := ofh -- fd; if ¬ fid ∈ ofh.fids ∧ ¬ fid ∈ root.fids then fs := fs -- fid⟩ (ofh = abs-of(of0 -- fd) ∧ fs = abs-files(files) ∧ (psynced → asynced) ∧ ESUCCESS = err0) |
of0[fd] = mkfile(m, mode, m0), files[m] = mkfile(m1, md, m2, content), err0 = ESUCCESS, fid = ofh0[fd].fid, fs = abs-files(files), ofh = ofh0 -- fd, ofh0 = abs-of(of0), root.dir?, dom of0 < ino0, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of0)), is-open(m, of0 -- fd), of-cons(of0, dirs, files), of-cons(of0 -- fd, dirs, files), fd ∈ of0, fd ∈ ofh0, psynced → asynced ⊦ ⟨if ¬ fid ∈ ofh.fids ∧ ¬ fid ∈ root.fids then fs := fs -- fid⟩ (ofh = abs-of(of0 -- fd) ∧ fs = abs-files(files) ∧ (psynced → asynced) ∧ ESUCCESS = err0)