library: remove procps_pagesize_get()
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
This commit is contained in:
		@@ -113,22 +113,6 @@ PROCPS_EXPORT long procps_hertz_get(void)
 | 
			
		||||
    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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user