Next: Severity Code
Up: Manual
Previous: Appendix: GAT Primitive Types
  Contents
Appendix: GATResult Codes
A variable of type GATResult is used to return the completion status of a function. This type is simply
typedef'd to be a GATint32, a type covered in Appendix ,
/* The error/result code type */
typedef GATint32 GATResult;
The actual GATint32 returned contained within a variable of type GATResult actually contains five
pieces of information within this one integer value. These are shown in table .
Table:
GATResult's component parts.
| Name |
Description |
| Severity Code |
A two bit number indicating how seriousness of the return value |
| Customer Code |
A one bit number which mey be used by client code |
| Reserved Code |
A one bit number which is reserved for internal use. |
| Facility Code |
A 12 bit number indicating which faculty is reporting this result. |
| Facility Status Code |
A 15 bit number indicating the faculty's return code. |
|
These various pieces of information are arranged in the GATint32, i.e. GATResult, as shown in
figure ,
Figure:
Layout of a GATResult in memory.
|
[width=13cm]GATResult
|
Subsections
Next: Severity Code
Up: Manual
Previous: Appendix: GAT Primitive Types
  Contents
Andre Merzky
2004-05-13
|