Re:Writing a Unix-Like OS in Rust
by trws on Saturday April 06, 2024 @01:54PM
(#39954117)
I’m a bit perplexed how you mean. Mkdir is a thin wrapper around `mkdir(const char*pathname, int mode)` from libc, or at least was before things like -p were added. Everything else is handling arguments and various failure modes. Famously /bin/true used to be an empty file with the executable bit set. Now, why exactly `ls` isn’t, or why `rm` was named unlink in the lib remains confusing, but the original commands were pretty much what you describe.
[ Parent
| on HN ]
There are no comments on this comment yet.