There is also `proc open*(a1: cstring, a2: cint)` in the `posix` module: import posix let fd = open("/dev/mydevice", O_RDONLY) Run
if you want an unbuffered raw file handle which sounds like it might be the case (and you don't need portability which is implied by your Linux device file use-case context).