<div dir="ltr">Rather than to try to find a generic interface for something that is inherently OS specific, perhaps it would be better to create a "posix" module that exports some common posix operations. That way it is obvious to whoever use it that you can't expect it to work on non-posix OSes.</div>