.th acc_mode IIa 4/21/86
.sh NAME
acc_mode \- access mode
.sh SYNOPSIS
.nf
 bits;
.fi
.sh DESCRIPTION
Acc_mode
describes the access allowed a process to a particular segment
of its current segment set.
An
acc_mode
is composed of three bits indicating permission to read,
to write, and to execute.
They are equivalent to selected discretionary acc bits.
The correspondences are:
.nf

	CONST
		readAcc      =  owner Read;
		writeAcc     =  owner Write;
		executeAcc   =  owner Execute;

.fi
The
acc_mode
of a segment is initialized when its segment is made a part
of the process' segment set
using
K_build_segment
or
K_rendezvous_segment.
The
acc_mode
may be changed using
K_set_segment_status
or
K_remap.
In no case does a segment's
acc_mode
(which is always in relation to a process)
allow more permissive access
than that allowed the process by
the segment's discretionary access.
.sh "SEE ALSO"
K_remap (II),
K_rendezvous_segment (II),
K_set_segment_status (II),
discr_access (IIa),
seg_stat_block (IIa),
