Hacker News new | ask | show | jobs
by 0xTJ 1695 days ago
Wow, I really like the implementation of that syscall. I've got my own toy OS project in C, for the M68k, and my `read` is "a little" less clean [0, 1].

[0]: https://gitlab.com/0xTJ/mosys/-/blob/master/src/vfs.c#L469

[1]: https://gitlab.com/0xTJ/mosys/-/blob/master/src/vfs.c#L907

1 comments

Thanks! By the way, your MUTEX_WITH macro looks pretty interesting to me. I've never seen the idea.