Use getpagesize()

Sat Apr 30 16:57:23 2005  Soeren Sandmann  <sandmann@redhat.com>

	* process.c (PAGE_SIZE): Use getpagesize()

	* TODO: More updates
This commit is contained in:
Soeren Sandmann
2005-04-30 20:59:01 +00:00
committed by Søren Sandmann Pedersen
parent 914d8bf668
commit 6906804784
5 changed files with 66 additions and 14 deletions

View File

@ -24,12 +24,12 @@
#include <stdlib.h>
#include <sys/stat.h>
#include <errno.h>
#include <unistd.h>
#include "process.h"
#include "binfile.h"
/* FIXME: this should be done with getpagesize() */
#define PAGE_SIZE 4096
#define PAGE_SIZE (getpagesize())
static GHashTable *processes_by_cmdline;
static GHashTable *processes_by_pid;