3 ms·
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]: h
by 0xTJ 5y 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 https://gitlab.com/0xTJ/mosys/-/blob/master/src/vfs.c#L469
[1]: https://gitlab.com/0xTJ/mosys/-/blob/master/src/vfs.c#L907 https://gitlab.com/0xTJ/mosys/-/blob/master/src/vfs.c#L907
- nuta 5y agoThanks! By the way, your MUTEX_WITH macro looks pretty interesting to me. I've never seen the idea.