Index: uspace/app/bithenge/linux/os.h
===================================================================
--- uspace/app/bithenge/linux/os.h	(revision 5f4cf8729f194e2c7d943bb1897662d4245ea6dd)
+++ uspace/app/bithenge/linux/os.h	(revision 10334c2e815ecb663ac16f1964110930706dc263)
@@ -32,7 +32,8 @@
 #include <endian.h>
 #include <errno.h>
+#include <inttypes.h>
 #include <memory.h>
 #include <stdbool.h>
-#include <stdint.h>
+#include <stdlib.h>
 #include <string.h>
 #include <wchar.h>
@@ -44,6 +45,7 @@
 #define ELIMIT EINVAL
 
+typedef intmax_t bithenge_int_t;
+#define BITHENGE_PRId PRIdMAX
 typedef uint64_t aoff64_t;
-
 typedef const char *string_iterator_t;
 
@@ -130,3 +132,10 @@
 }
 
+static inline int bithenge_parse_int(const char *start, bithenge_int_t *result)
+{
+	errno = 0;
+	*result = strtoll(start, NULL, 10);
+	return errno;
+}
+
 #endif
