1#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ 2 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 3#define PAGE_SIZE 4096 4#define LONG_BIT __riscv_xlen 5#endif 6 7#if __riscv_xlen == 32 8#define LONG_MAX 0x7fffffffL 9#else 10#define LONG_MAX 0x7fffffffffffffffL 11#endif 12#define LLONG_MAX 0x7fffffffffffffffLL 13