Skip to content

GEMDRIVE: answer Fdelete and a bad Fseek mode as TOS does - #30

Merged
diegoparrilla merged 1 commit into
release/v1.2.0from
epic/23-tos-answers
Dec 2, 2026
Merged

diegoparrilla merged 1 commit into
release/v1.2.0from
epic/23-tos-answers

Conversation

@diegoparrilla

Copy link
Copy Markdown
Contributor

Brings md-devops in line with TOS's own GEMDOS (xunlink and xlseek in TOS's fsopnclo.c). md-drives-emulator makes the same change, and its FSTESTS checks these answers, verified against TOS 1.04 and 2.06 from an ACSI image.

  • Fdelete: a missing file, a file in a missing folder, and a folder all answer EFILNF (-33). Before, they answered 0, EPTHNF and EACCDN. A read-only file still answers EACCDN (-36).
  • Fseek: an unknown mode answers EINVFN (-32), not ERANGE. Out-of-range seeks keep -64.

Checked in EmuMD: GDTEST, with two new checks (fdel-missing and seek-mode) and fdel-dir tightened to -33, passes all 18 checks on ST TOS 1.04, STE 1.62 and Mega STE 2.06.

TOS looks a name up as a plain file when it deletes it (xunlink in
fsopnclo.c), so a folder, a missing file and a missing folder all
answer EFILNF (-33), and only a read-only file gives EACCDN (-36).
GEMDRIVE answered 0 for a missing file, EPTHNF for a missing folder and
EACCDN for a folder. An unknown Fseek mode is EINVFN (-32), not ERANGE.
md-drives-emulator makes the same change, checked against TOS's own
GEMDOS from an ACSI image; GDTEST checks the four answers.
@diegoparrilla
diegoparrilla merged commit 24c80aa into release/v1.2.0 Dec 2, 2026
2 checks passed
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