blob: 308f7a6efc5c7d0caecca6a189ca007d7f1ba06c [file] [log] [blame]
/* This exists so we can conveniently call for sys/types.h in headers shared by
* both the kernel and userspace. This is the kernel's version. */
#pragma once
#include <ros/common.h>
#include <arch/types.h>
#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
typedef uint64_t __dev_t;
typedef uint64_t __ino64_t;
typedef uint32_t __mode_t;
typedef uint64_t __nlink_t;
typedef uint32_t __uid_t;
typedef uint32_t __gid_t;
typedef int64_t __off64_t;
typedef __off64_t off64_t;
typedef int64_t __blksize_t;
typedef int64_t __blkcnt64_t;
typedef uint64_t __le64;
typedef uint64_t __be64;
typedef uint32_t __le32;
typedef uint32_t __be32;
typedef uint16_t __le16;
typedef uint16_t __be16;
typedef uint64_t u64;
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
typedef int64_t s64;
typedef int32_t s32;
typedef int16_t s16;
typedef int8_t s8;
#define KiB 1024u
#define MiB 1048576u
#define GiB 1073741824u
#define TiB 1099511627776ull
#define PiB 1125899906842624ull
#define EiB 1152921504606846976ull