Operating system kernels could return multiple values from system calls

13 ingve 2 7/5/2025, 5:58:02 AM utcc.utoronto.ca ↗

Comments (2)

rep_lodsb · 6h ago
Operating system kernels did return multiple values from system calls, even the article says so:

>Using multiple CPU registers for system call return values was even used by Research Unix on the PDP-11, for certain system calls.

Or MS-DOS, which also set the carry flag to indicate errors, as was a common convention in assembly language. Very convenient, since a single conditional jump to return can pass it back up the call chain.

C and modern Unixoid systems are why we can't have nice things.

EPWN3D · 52m ago
I mean... of course they can? It's just software.