HNNewShowAskJobs
Built with Tanstack Start
Operating system kernels could return multiple values from system calls(utcc.utoronto.ca)
14 points by ingve a day ago | 2 comments
  • rep_lodsba day 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.

  • EPWN3D19 hours ago

    I mean... of course they can? It's just software.