This is actually a systemcall getpagesize(2) or it is defined
in configure using a variety of methods, including a default
hard coded value as a last resort.
There is no need to have this in libprocps
procps_meminfo_unref;
procps_meminfo_get;
procps_meminfo_get_chain;
- procps_pagesize_get;
procps_stat_new;
procps_stat_read;
procps_stat_read_jiffs;
return 100;
}
-/*
- * procps_pagesize_get:
- *
- * Return the size of pages in bytes
- *
- * Returns: size of pages in bytes
- */
-PROCPS_EXPORT long procps_pagesize_get(void)
-{
- long psiz;
-
- if ((psiz = sysconf(_SC_PAGESIZE)) > 0)
- return psiz;
- return 1;
-}
-
/*
* procps_loadavg:
* @av1: location to store 1 minute load average
long procps_cpu_count(void);
long procps_hertz_get(void);
int procps_loadavg(double *av1, double *av5, double *av15);
-long procps_pagesize_get(void);
#define BUFFSIZE (64*1024)
typedef unsigned long long jiff;
// establish cpu particulars
Hertz = procps_hertz_get();
Cpu_cnt = procps_cpu_count();
- Page_size = procps_pagesize_get();
+ Page_size = getpagesize();
#ifdef PRETEND8CPUS
Cpu_cnt = 8;
#endif