79601092

Date: 2025-04-30 21:05:42
Score: 0.5
Natty:
Report link

This is improvement for @hamstergene answer. Implementation location has been changed and all implementations calls the same API implemented differently for different systems.

Current code for closing descriptor is located here and looks like this:

impl Drop for FileDesc {
    fn drop(&mut self) {
        usercalls::close(self.fd)
    }
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @hamstergene
Posted by: Eir Nym