diff options
| author | David J. MacKenzie | 1996-11-19 18:34:08 +0000 |
|---|---|---|
| committer | David J. MacKenzie | 1996-11-19 18:34:08 +0000 |
| commit | eb93fe6a97840318127148cb975652a1356d21fd (patch) | |
| tree | 049650ae7fc00e9ce761ea6895ca1dd24161dda0 | |
| parent | fc171623b4478aa7b80d3c3ee66459e989574997 (diff) | |
| download | emacs-eb93fe6a97840318127148cb975652a1356d21fd.tar.gz emacs-eb93fe6a97840318127148cb975652a1356d21fd.zip | |
Indent for readability.
| -rw-r--r-- | src/getpagesize.h | 62 |
1 files changed, 30 insertions, 32 deletions
diff --git a/src/getpagesize.h b/src/getpagesize.h index ef7e45d034a..eb5109db78b 100644 --- a/src/getpagesize.h +++ b/src/getpagesize.h | |||
| @@ -2,38 +2,36 @@ | |||
| 2 | 2 | ||
| 3 | #ifndef HAVE_GETPAGESIZE | 3 | #ifndef HAVE_GETPAGESIZE |
| 4 | 4 | ||
| 5 | #ifdef VMS | 5 | # ifdef VMS |
| 6 | #define getpagesize() 512 | 6 | # define getpagesize() 512 |
| 7 | #endif | 7 | # endif |
| 8 | 8 | ||
| 9 | #ifdef HAVE_UNISTD_H | 9 | # ifdef HAVE_UNISTD_H |
| 10 | #include <unistd.h> | 10 | # include <unistd.h> |
| 11 | #endif | 11 | # endif |
| 12 | 12 | ||
| 13 | #ifdef _SC_PAGESIZE | 13 | # ifdef _SC_PAGESIZE |
| 14 | #define getpagesize() sysconf(_SC_PAGESIZE) | 14 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 15 | #else | 15 | # else |
| 16 | # include <sys/param.h> | ||
| 17 | # ifdef EXEC_PAGESIZE | ||
| 18 | # define getpagesize() EXEC_PAGESIZE | ||
| 19 | # else /* no EXEC_PAGESIZE */ | ||
| 20 | # ifdef NBPG | ||
| 21 | # define getpagesize() NBPG * CLSIZE | ||
| 22 | # ifndef CLSIZE | ||
| 23 | # define CLSIZE 1 | ||
| 24 | # endif /* no CLSIZE */ | ||
| 25 | # else /* no NBPG */ | ||
| 26 | # ifdef NBPC | ||
| 27 | # define getpagesize() NBPC | ||
| 28 | # else /* no NBPC */ | ||
| 29 | # ifdef PAGESIZE | ||
| 30 | # define getpagesize() PAGESIZE | ||
| 31 | # endif /* PAGESIZE */ | ||
| 32 | # endif /* no NBPC */ | ||
| 33 | # endif /* no NBPG */ | ||
| 34 | # endif /* no EXEC_PAGESIZE */ | ||
| 35 | # endif /* no _SC_PAGESIZE */ | ||
| 16 | 36 | ||
| 17 | #include <sys/param.h> | 37 | #endif /* no HAVE_GETPAGESIZE */ |
| 18 | |||
| 19 | #ifdef EXEC_PAGESIZE | ||
| 20 | #define getpagesize() EXEC_PAGESIZE | ||
| 21 | #else | ||
| 22 | #ifdef NBPG | ||
| 23 | #define getpagesize() NBPG * CLSIZE | ||
| 24 | #ifndef CLSIZE | ||
| 25 | #define CLSIZE 1 | ||
| 26 | #endif /* no CLSIZE */ | ||
| 27 | #else /* no NBPG */ | ||
| 28 | #ifdef NBPC | ||
| 29 | #define getpagesize() NBPC | ||
| 30 | #else /* no NBPC */ | ||
| 31 | #ifdef PAGESIZE | ||
| 32 | #define getpagesize() PAGESIZE | ||
| 33 | #endif | ||
| 34 | #endif /* NBPC */ | ||
| 35 | #endif /* no NBPG */ | ||
| 36 | #endif /* no EXEC_PAGESIZE */ | ||
| 37 | #endif /* no _SC_PAGESIZE */ | ||
| 38 | |||
| 39 | #endif /* not HAVE_GETPAGESIZE */ | ||