Hacker News new | ask | show | jobs
by Ooveex2C 2804 days ago
The error handling in close is platform specific, so you have to convert the file into a raw fd/handle and then pass it to the appropriate libc methods.