Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

MSDOS close to Unix (Developers)

posted by tkchia Homepage, 26.12.2021, 09:05

Hello kerravon,

> I recently noticed that the MSDOS 2.0 API is very
> close to Unix with INT 21H APIs like open, read,
> write, seek, close.

This is almost certainly by design. The recently published DOS 2.x source code referred to the new system calls as XENIX CALLS.

Also, while syscall 0x4b is named $EXEC, it actually starts a child process, so it is really more akin to POSIX's posix_spawn. There is actually no MS-DOS execve-like syscall that lets a running process replace itself with another program. The MS-DOS syscall ABI is also kind of deficient in other ways.

Thank you!

---
https://gitlab.com/tkchia · https://codeberg.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 233 users online (0 registered, 233 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum