GaloisInc / HaLVM

The Haskell Lightweight Virtual Machine (HaLVM): GHC running on Xen
BSD 3-Clause "New" or "Revised" License
1.05k stars 88 forks source link

Implement POSIX FD abstraction #116

Open acw opened 7 years ago

acw commented 7 years ago

POSIX is deeply annoying for any number of reasons; one of them is that it mixes up "file descriptors" between files and network sockets, because blah blah blah.

What this means for the HaLVM is that if we want to have a chance at supporting anything like normal C libraries, we're going to have to have a common layer inside the HaLVM that dispatches based on the exact FD type.