|
@@ -18,7 +18,7 @@
|
|
#define FATAL do { fprintf(stderr, "Error at line %d, file %s (%d) [%s]\n", \
|
|
#define FATAL do { fprintf(stderr, "Error at line %d, file %s (%d) [%s]\n", \
|
|
__LINE__, __FILE__, errno, strerror(errno)); exit(1); } while(0)
|
|
__LINE__, __FILE__, errno, strerror(errno)); exit(1); } while(0)
|
|
|
|
|
|
-#define MAP_SIZE 4096UL
|
|
|
|
|
|
+#define MAP_SIZE sysconf(_SC_PAGESIZE)
|
|
#define MAP_MASK (MAP_SIZE - 1)
|
|
#define MAP_MASK (MAP_SIZE - 1)
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
int main(int argc, char **argv) {
|