Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2001 19:30:08 -0700
From:      Peter Wemm <peter@wemm.org>
To:        doc@freebsd.org
Subject:   can somebody please fix mincore(2) man page?
Message-ID:  <20010814023008.B209C38CC@overcee.netplex.com.au>

next in thread | raw e-mail | index | archive | help

DESCRIPTION
     The mincore() system call allows a process to obtain information about
     whether pages are core resident.  Here the current core residency of the
     pages is returned in the character array vec, with a value of 1 meaning
     that the page is in-core.

versus:

/*
 * Return bits from mincore
 */
#define MINCORE_INCORE           0x1 /* Page is incore */
#define MINCORE_REFERENCED       0x2 /* Page has been referenced by us */
#define MINCORE_MODIFIED         0x4 /* Page has been modified by us */
#define MINCORE_REFERENCED_OTHER 0x8 /* Page has been referenced */
#define MINCORE_MODIFIED_OTHER  0x10 /* Page has been modified */

ie: we dont return "1", we return bit flags with those values.
See how its formatted in mmap()/madvise()/etc.

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010814023008.B209C38CC>