don't conflict with stdlib.h symbol div()
ensure r is initialized to 0
don't conflict with POSIX symbol dup()
libcryptsetup.h needs size_t