> That reminds me, is there an analogue for directories? I also need temp files with a particular suffix. I see OpenBSD has mkdtemp and mkstemps. Any idea if analogues of these exist for linux? In searching around and looking at strace, I see that mkstemp and friends are implemented using open. So, maybe the best way to go is not to use FFI but rather to implement it myself use Posix.FileSys.openf?