Guardian Programming Reference Summary for C

Functions Summary (A-C)
Guardian Programming Reference Summary for C522630-001
4-2
ADDRESS_DELIMIT_
Obtains the addresses of the first and last bytes of a particular area of the callers logical
address space. It can also obtain a set of flags that describe the area, and the logical
segment ID of the area.
return value:
!
address-descriptor
#include <cextdecs(ADDRESS_DELIMIT_)>
short ADDRESS_DELIMIT_ ( long address /* i */
,long *low-address /* o */
,long *high-address /* o */
,short *address-descriptor /* o */
,short *segment-id /* o */
,short error-detail ); /* o */
0 No error; the requested values are returned.
2 Parameter error; address parameter was missing.
3 Bounds error; error-detail contains the number of the first parameter found to
be in error, where 1 designates the first parameter on the left. This error is returned
only to nonprivileged callers.
4 address is not mapped.
5 address If bit 0 of address = 1, address is an invalid address.
If bit 0 of address = 0, address is within relative segment 0,
1, 2, or 3 .
Bits 0-6 Bits are reserved; 0 is returned.
Bit 7 A flat, kernel-aliased segment. A kernel-aliased segment does not have a
corresponding absolute segment address.
Bit 8 A flat, aliased segment. An aliased segment has a corresponding absolute
segment address.
Bit 9 The currently addressable extended data segment.
Bit 10 Accessible only by privileged processes.
Bit 11 Shared by another process.
Bit 12 Cannot be deallocated.
Bit 13 Writeback-inhibited.
Bit 14 Extensible.
Bit 15 Resident.