Skip to content

Share compat - #28

Draft
andrewbird wants to merge 4 commits into
FDOS:masterfrom
andrewbird:share-compat
Draft

andrewbird wants to merge 4 commits into
FDOS:masterfrom
andrewbird:share-compat

Conversation

@andrewbird

Copy link
Copy Markdown
Contributor

This PR is a companion to one on the kernel FDOS/kernel#277 and fixes the share-compat and int2f/10a6 compatibility problems. I have also updated the sharing rules so that the Dosemu2 test suite (Based on RBIL / confirmed against MS-DOS 6.22) passes. That's nice but there are some comments indicating that some of those 'wrong' entries were there for compatibility. I'm more than happy to drop those two commits and special case the test suite for FreeDOS? I'd appreciate a review @PerditionC

So that the caller can try to do the right thing with older versions of
share, let's clear the Carry Flag. The caller can set it before calling
int2f/10a6 and if it's still set afterwards it can be sure that any
value in AX is not from us.
When checking if a file is open, return its original mode and the psp
that opened it. This is required for delete / rename / setfattr
SHARE_COMPAT fixes and is modelled on patches from FDPP:
f15bd2f33a49e50db7a05da7d9751dec1aa6f834
d530b5a65a873a2438b0ff9fd37a406d5fc63f7f
Add / update exceptions to match MS-DOS 6.22 rules documented in RBIL
Update remaining exceptions to match MS-DOS 6.22 rules documented
in RBIL. All tests on Dosemu2 test suite passing now, however I'm
concerned that I may be breaking the compatibilty fixes introduced
in 2004.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant