SCCS-vsn: share/doc/psd/05.sysman/1.2.t 6.8
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)1.2.t 6.7 (Berkeley) %G%
+.\" @(#)1.2.t 6.8 (Berkeley) %G%
.\"
.sh "Memory management\(dg
.NH 3
.\"
.sh "Memory management\(dg
.NH 3
to the process.
Protection and sharing options are defined in \fI<sys/mman.h>\fP as:
.DS
to the process.
Protection and sharing options are defined in \fI<sys/mman.h>\fP as:
.DS
+.ta \w'#define\ \ 'u +\w'MAP_HASSEMPHORE\ \ 'u +\w'0x0080\ \ 'u
/* protections are chosen from these bits, or-ed together */
#define PROT_READ 0x04 /* pages can be read */
#define PROT_WRITE 0x02 /* pages can be written */
/* protections are chosen from these bits, or-ed together */
#define PROT_READ 0x04 /* pages can be read */
#define PROT_WRITE 0x02 /* pages can be written */
\fIBehav\fP describes expected behavior, as given
in \fI<sys/mman.h>\fP:
.DS
\fIBehav\fP describes expected behavior, as given
in \fI<sys/mman.h>\fP:
.DS
+.ta \w'#define\ \ 'u +\w'MADV_SEQUENTIAL\ \ 'u +\w'00\ \ \ \ 'u
#define MADV_NORMAL 0 /* no further special treatment */
#define MADV_RANDOM 1 /* expect random page references */
#define MADV_SEQUENTIAL 2 /* expect sequential references */
#define MADV_NORMAL 0 /* no further special treatment */
#define MADV_RANDOM 1 /* expect random page references */
#define MADV_SEQUENTIAL 2 /* expect sequential references */