+typedef unsigned long long int u64; /* exactly 64 bits, unsigned */
+typedef long long int s64; /* exactly 64 bits, signed */
+typedef unsigned long addr_int_t; /* Both integer and address */
+
+#ifndef NULL
+#define NULL (void *)0
+#endif
+
+typedef u32 oid_t; /* Object ID */
+
+#ifdef SHERLOCK_CONFIG_LFS /* off_t as passed to file functions */
+typedef s64 sh_off_t;
+#define BYTES_PER_FILE_POINTER 5
+#else
+typedef int sh_off_t;
+#define BYTES_PER_FILE_POINTER 4
+#endif
+
+#ifdef SHERLOCK_CONFIG_LARGE_DB /* off_t as present in database files */
+typedef s64 sh_foff_t;
+#else
+typedef s32 sh_foff_t;
+#endif