HP-UX SNAplus2 R7 LUA Programmer's Guide

Appendix AReturn Code Values
AppendixA Return Code Values
This appendix lists all the possible return codes in the LUA interface in numerical order. The values are dened in
the LUA header le
lua_c.h (for HP-UX) or winlua.h (for Windows).
You can use this appendix as a reference to check the meaning of a return code received by your application.
A.1 Primary Return Codes
The following primary return codes are used in LUA applications.
LUA_OK 0x0100
LUA_STATE_CHECK 0x0200
LUA_COMM_SUBSYSTEM_ABENDED 0x03F0
LUA_COMM_SUBSYSTEM_NOT_LOADED 0x04F0
LUA_INVALID_VERB_SEGMENT 0x08F0
LUA_SESSION_FAILURE 0x0F00
LUA_UNEXPECTED_DOS_ERROR 0x11F0
LUA_UNSUCCESSFUL 0x1400
LUA_STACK_TOO_SMALL 0x15F0
LUA_NEGATIVE_RSP 0x1800
LUA_CANCELLED 0x2100
LUA_IN_PROGRESS 0x3000
LUA_STATUS 0x4000
LUA_INVALID_VERB 0xFFFF
A.2 Secondary Return Codes
The following secondary return codes are used in LUA applications.
LUA_SEC_RC_OK 0x00000000
LUA_INVALID_LUNAME 0x01000000
LUA_BAD_SESSION_ID 0x02000000
LUA_DATA_TRUNCATED 0x03000000
LUA_BAD_DATA_PTR 0x04000000
LUA_DATA_SEG_LENGTH_ERROR 0x05000000
LUA_RESERVED_FIELD_NOT_ZERO 0x06000000
LUA_INVALID_POST_HANDLE 0x07000000
LUA_PURGED 0x0C000000
LUA_BID_VERB_SEG_ERROR 0x0F000000
LUA_NO_PREVIOUS_BID_ENABLED 0x10000000
LUA_NO_DATA 0x11000000
LUA_BID_ALREADY_ENABLED 0x12000000
LUA_VERB_RECORD_SPANS_SEGMENTS 0x13000000
LUA_INVALID_FLOW 0x14000000
LUA_NOT_ACTIVE 0x15000000
LUA_VERB_LENGTH_INVALID 0x16000000
LUA_REQUIRED_FIELD_MISSING 0x19000000
LUA_READY 0x30000000
LUA_NOT_READY 0x31000000
LUA_INIT_COMPLETE 0x32000000
LUA_SESSION_END_REQUESTED 0x33000000
154