File: getpagesize.h

package info (click to toggle)
bibtool 2.48alpha.2-3.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,208 kB
  • ctags: 1,974
  • sloc: ansic: 18,936; xml: 1,036; makefile: 672; sh: 293; perl: 261; tcl: 51; awk: 15; sed: 8
file content (25 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (32)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifdef BSD
#ifndef BSD4_1
#define HAVE_GETPAGESIZE
#endif
#endif

#ifndef HAVE_GETPAGESIZE

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

#endif /* not HAVE_GETPAGESIZE */