HP-UX SNAplus2 R7 NOF Programmer's Guide

Appendix BCommon Return Codes
AP_FILE_LOCK_FAILED
The application issued SET_PROCESSING_MODE to change to commit mode, but SNAplus2 failed
to get a lock on the conguration le. This can be because another NOF API application or SNAplus2
component is already accessing the le.
AP_FILE_UNLOCK_FAILED
The application issued SET_PROCESSING_MODE to change from commit mode to one of the other
modes, but SNAplus2 failed to release its lock on the conguration le. In order to free the le when
this error occurs, SNAplus2 closes the applications handle to the le. The application must issue
OPEN_FILE again, to obtain a new le handle, before attempting to issue any more verbs to this le.
AP_FILE_UNAVAILABLE
The connection to the target le has been lost.
AP_NOT_MASTER
The target le is a copy of the domain conguration le, or of the sna.net le, on a server that is
not the master server. Verbs that modify these les must be issued to the master servers copy of the
les.
AP_SYNC_PENDING
This verb was issued using the synchronous NOF API entry point, but another synchronous verb was
in progress. Only one synchronous verb can be in progress at any time.
B.7 System Error
If the verb does not execute because of an operating system error, SNAplus2 returns the following parameters:
primary_rc
AP_UNEXPECTED_SYSTEM_ERROR
An operating system call failed during processing of the verb.
secondary_rc
The secondary return code in this case is the return code from the operating system call.
UNIX
For the meaning of the operating system return code, see the le /usr/include/errno.h on the computer
where the error occurred. Typically, the return code will indicate a condition such as memory shortage.
WINDOWS
For the meaning of the operating system return code, refer to your operating system documentation.
If the problem persists, consult your System Administrator.
If the verb was issued to change the target conguration (such as DEFINE_* or DELETE_*), or to perform
an action (such as START_*), the application should issue the appropriate QUERY_* verb to determine
whether the change or action succeeded. In particular, if this error occurs while processing a DEFINE_* or
DELETE_* verb containing multiple data structures (such as DEFINE_EMULATOR_USER), the change can
be incomplete(for example, some but not all of the users sessions may have been dened).
824