Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
bac7913a
Commit
bac7913a
authored
Jul 30, 1993
by
Roland McGrath
Browse files
Initial revision
parent
fcd73769
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
src/getpagesize.h
src/getpagesize.h
+35
-0
No files found.
src/getpagesize.h
0 → 100644
View file @
bac7913a
/* Emulate getpagesize on systems that lack it. */
#ifndef HAVE_GETPAGESIZE
#ifdef VMS
#define getpagesize() 512
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef _SC_PAGESIZE
#define getpagesize() sysconf(_SC_PAGESIZE)
#else
#include <sys/param.h>
#ifdef EXEC_PAGESIZE
#define getpagesize() EXEC_PAGESIZE
#else
#ifdef NBPG
#define getpagesize() NBPG * CLSIZE
#ifndef CLSIZE
#define CLSIZE 1
#endif
/* no CLSIZE */
#else
/* no NBPG */
#ifdef NBPC
#define getpagesize() NBPC
#endif
/* NBPC */
#endif
/* no NBPG */
#endif
/* no EXEC_PAGESIZE */
#endif
/* no _SC_PAGESIZE */
#endif
/* not HAVE_GETPAGESIZE */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment