From 75d049746e374303fb1c8ee038687dca125c6817 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 9 May 2009 23:53:59 -0700 Subject: mincore: Only the first bit of the byte is defined The other 7 bits are undefined at the moment. --- mincore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mincore.c b/mincore.c index 0379481..41adf7b 100644 --- a/mincore.c +++ b/mincore.c @@ -54,7 +54,7 @@ static void mincore_stats(const char *path, off_t offset, off_t len) for (i = 0; i < vec_len; ++i) printf(fmt, path, (unsigned long)(page_size() * i) + map_offset, - vec[i]); + vec[i] & 1); err_munmap: munmap(map, map_len); err_free: -- cgit v1.2.3-24-ge0c7