view src/getpagesize.h @ 14066:2c6db67067ac

(Fboundp, Ffboundp, Fmakunbound, Ffmakunbound, Fsymbol_plist, Fsymbol_name, Ffset, Fdefalias, Fdefine_function, Fsetplist, store_symval_forwarding, swap_in_symval_forwarding, find_symbol_value, Fsymbol_value, Fset, default_value, Fdefault_boundp, Fdefault_value, Fset_default, Fsetq_default, Fmake_variable_buffer_local, Fmake_local_variable, Fkill_local_variable, Flocal_variable_p, Flocal_variable_if_set_p, Faref, Faset, Fzerop, Fnumber_to_string, Fstring_to_number, Frem, Fmod, Fadd1, Fsub1, Flognot): Harmonize arguments with documentation.
author Erik Naggum <erik@naggum.no>
date Tue, 09 Jan 1996 00:31:02 +0000
parents 44ebc50db2c5
children ae726fd5403b
line wrap: on
line source

/* 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
#else /* no NBPC */
#ifdef PAGESIZE
#define getpagesize() PAGESIZE
#endif
#endif /* NBPC */
#endif /* no NBPG */
#endif /* no EXEC_PAGESIZE */
#endif /* no _SC_PAGESIZE */

#endif /* not HAVE_GETPAGESIZE */