Specifies the size of the RETURN-CODE special register and its alignment in memory.
>>-.---.--RTNCODE-SIZE--"integer"---------->< +-/-+
Default: | RTNCODE-SIZE"4" |
Phase: | Syntax check |
$SET: | Initial |
Set to RTNCODE-SIZE"4" immediately by XOPEN.
Set to RTNCODE-SIZE"8" immediately by P64.
If a program calls a program with a smaller RETURN-CODE set, on return the value from the called program is in the lower bytes of the RETURN-CODE, with the other bytes undefined. For example, if a program with a 4-byte RETURN-CODE calls a program with a 2-byte RETURN-CODE, the lower two bytes of the 8-byte RETURN-CODE are set, while the content of the other bytes is undefined.
If a program calls a program with a larger RETURN-CODE set, on return the lower bytes of the value from the called program are in the RETURN-CODE, with the content of the upper bytes lost. For example, if a program with a 4-byte RETURN-CODE calls a program with an 8-byte RETURN-CODE, the lower four bytes of the 8-byte RETURN-CODE are set, while the content of the other bytes is lost.