.th openModes IIa 4/21/86
.sh NAME
openModes \- open modes
.sh SYNOPSIS
.nf
 openModes = RECORD

       read            : boolean;
       write           : boolean;
       exclusive_read  : boolean;
       exclusive_write : boolean 
 END;
.fi
.sh DESCRIPTION
The OpenModes record is used to indicate the mode in which an object is
to be opened or created.  The list below describes each field.
.s3
.lp 22 16
.In read
when true, indicates that the object should be opened or created for reading.
.s3
.lp 22 16
.In write
when true, indicates that the object should be opened or created for writing.
.s3
.lp 22 16
.In exclusive_read
when true, indicates that the object should be opened or created for reading
by the calling process only.
.s3
.lp 22 16
.In exclusive_write
when true, indicates that the object should be opened or created for writing
by the calling process only.
.i0
.s3
The only valid combinations of open modes fields are:
.s3
.nf
.s3
                     exclusive
     read   write  read    write
.s3
     true   false  false   false   Normal read.
     false  true   false   false   Normal write.
     true   true   false   false   Normal read and write.
     true   false  true    false   Exclusive read.
     true   true   false   true    Exclusive write.
     true   true   true    true    Exclusive read and write.
.i0
.fi
.s3

All other combinations are invalid.

.sh "SEE ALSO"
K_create(II),
K_open(II)
