Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Note that you can find out the system page size...



details:   https://anonhg.NetBSD.org/src/rev/ea8b44dbdb03
branches:  trunk
changeset: 474517:ea8b44dbdb03
user:      perry <perry%NetBSD.org@localhost>
date:      Fri Jul 09 14:41:26 1999 +0000

description:
Note that you can find out the system page size with sysconf(3).

diffstat:

 lib/libc/sys/brk.2 |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 554bacdd719d -r ea8b44dbdb03 lib/libc/sys/brk.2
--- a/lib/libc/sys/brk.2        Fri Jul 09 11:55:32 1999 +0000
+++ b/lib/libc/sys/brk.2        Fri Jul 09 14:41:26 1999 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: brk.2,v 1.17 1999/07/06 23:12:04 perry Exp $
+.\"    $NetBSD: brk.2,v 1.18 1999/07/09 14:41:26 perry Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -69,6 +69,11 @@
 .Fn sbrk
 are asked for a non-integral number of pages, the address of the break
 will be rounded up to the next highest page boundary.
+(The size of a system page can be determined by calling
+.Fn sysconf _SC_PAGESIZE .
+See
+.Xr sysconf 3
+for details.)
 .Pp
 The
 .Fn brk
@@ -151,7 +156,8 @@
 .Xr mmap 2 ,
 .Xr end 3 ,
 .Xr free 3 ,
-.Xr malloc 3
+.Xr malloc 3 ,
+.Xr sysconf 3
 .Sh BUGS
 Note that
 mixing



Home | Main Index | Thread Index | Old Index