Nimony

The road to Nim 3

posix

nimony/lib/std/posix/posix.nim

This is a raw POSIX interface module. It does not not provide any convenience: cstrings are used instead of proper Nim strings and return codes indicate errors. If you want exceptions and a proper Nim-like interface, use the OS module or write a wrapper.

Every binding is header-free: types and constants are ABI transcriptions (see posix_other.nim) and procs are bare importc of real libc/kernel symbols. -d:useLibc changes which allocator and stdio implementation the stdlib uses, never which declarations exist.