JNA Common Posix Functions, taken from https://kenai.com/projects/jna-posix