* Error codes should be
smaller than 127.
* Positive values below 10 are
reserved for non-failure exits.
* Some values are returned
only by shell scripts.
*/
#define WIN4_ERR_LIST \
WIN4_ERR_CODE(WIN4_ERR_NONE, 0,
"<success>") \
WIN4_ERR_CODE(WIN4_ERR_NOT_FOUND, 7, "not found") \
WIN4_ERR_CODE(WIN4_ERR_NO_PRINT_JOB, 8,
"no print job available") \
WIN4_ERR_CODE(WIN4_ERR_DO_NOT_RESTART, 9,
"<do-not-restart>") \
\
WIN4_ERR_CODE(WIN4_ERR_USAGE, 20,
"usage") \
WIN4_ERR_CODE(WIN4_ERR_INVALID_USER, 21,
"invalid user") \
WIN4_ERR_CODE(WIN4_ERR_BAD_VALUE, 22,
"bad value") \
WIN4_ERR_CODE(WIN4_ERR_USER_UNAUTHORIZED, 23,
"user is not authorized") \
WIN4_ERR_CODE(WIN4_ERR_PASSWORD_EXPIRED, 24,
"password expired") \
WIN4_ERR_CODE(WIN4_ERR_NEW_AUTH_REQUIRED, 25, "new
auth required") \
WIN4_ERR_CODE(WIN4_ERR_ACCOUNT_DISABLED, 26,
"account is disabled") \
WIN4_ERR_CODE(WIN4_ERR_ACCOUNT_EXPIRED, 27,
"account has expired") \
WIN4_ERR_CODE(WIN4_ERR_ACCOUNT_LOCKED, 28,
"account is locked") \
\
WIN4_ERR_CODE(WIN4_ERR_MC, 32,
"error from MC") \
WIN4_ERR_CODE(WIN4_ERR_DEPLOY, 33, "failed
to deploy") \
WIN4_ERR_CODE(WIN4_ERR_UNDEPLOY, 34, "failed to
undeploy") \
WIN4_ERR_CODE(WIN4_ERR_OPEN, 35,
"failed to open") \
\
WIN4_ERR_CODE(WIN4_ERR_SESS_CREATE, 40,
"failed to create desktop") \
WIN4_ERR_CODE(WIN4_ERR_SESS_READ, 41, "failed to get
desktop info") \
WIN4_ERR_CODE(WIN4_ERR_SESS_WRITE, 42,
"failed to write desktop info") \
WIN4_ERR_CODE(WIN4_ERR_SESS_RUNNING, 43,
"cannot operate on a running desktop") \
WIN4_ERR_CODE(WIN4_ERR_NOT_INSTALLED, 44,
"cannot operate on a desktop that has not completed installation") \
WIN4_ERR_CODE(WIN4_ERR_SESS_NOT_STATIC, 45,
"not a gold desktop") \
WIN4_ERR_CODE(WIN4_ERR_SESS_NOT_PROVISIONED, 46,
"desktop is not provisioned") \
\
WIN4_ERR_CODE(WIN4_ERR_SESS_PUBLISHED, 49,
"desktop is published") \
WIN4_ERR_CODE(WIN4_ERR_SESS_EXISTS, 50,
"desktop already exists") \
WIN4_ERR_CODE(WIN4_ERR_SESS_FILE_MISSING, 51,
"desktop file missing") \
WIN4_ERR_CODE(WIN4_ERR_SESS_OWNER_ROOT, 52,
"desktop owner must not be root") \
WIN4_ERR_CODE(WIN4_ERR_SESS_SAME, 53, "source and
destination sessions cannot be the same") \
WIN4_ERR_CODE(WIN4_ERR_SESS_UNLINK, 54,
"failed to unlink desktop") \
WIN4_ERR_CODE(WIN4_ERR_SESS_UPDATE, 55,
"failed to update desktop") \
WIN4_ERR_CODE(WIN4_ERR_SIGNATURE, 56, "bad
signature/signature mismatch") \
\
WIN4_ERR_CODE(WIN4_ERR_SESS_START, 58,
"desktop failed to start") \
WIN4_ERR_CODE(WIN4_ERR_SESS_LAUNCH_EXPIRED, 59,
"desktop launch expired") \
\
WIN4_ERR_CODE(WIN4_ERR_CDROM_NOT_FOUND, 66,
"cdrom not found") \
WIN4_ERR_CODE(WIN4_ERR_TICKET_EXPIRED, 67,
"ticket expired") \
\
WIN4_ERR_CODE(WIN4_ERR_SERVER_SHUTDOWN, 69,
"server is shutting down") \
WIN4_ERR_CODE(WIN4_ERR_TERMINATED, 70,
"abrupt termination") \
WIN4_ERR_CODE(WIN4_ERR_DIFFERENT_FILE_SYSTEMS, 71,
"source and destination not in same file system") \
WIN4_ERR_CODE(WIN4_ERR_RENAME, 72,
"failed to rename") \
WIN4_ERR_CODE(WIN4_ERR_CREATE, 73, "failed to
create") \
\
WIN4_ERR_CODE(WIN4_ERR_OUT_OF_SPACE, 75,
"out of space") \
WIN4_ERR_CODE(WIN4_ERR_COPY, 76,
"file copy failed") \
WIN4_ERR_CODE(WIN4_ERR_SET_PERMS, 77, "failed to set
permissions") \
WIN4_ERR_CODE(WIN4_ERR_PRIVILAGES, 78,
"failed to set privilages") \
WIN4_ERR_CODE(WIN4_ERR_EXEC, 79,
"failed to execute") \
WIN4_ERR_CODE(WIN4_ERR_WAIT, 80, "failed
to wait") \
\
WIN4_ERR_CODE(WIN4_ERR_NOT_SUPPORTED, 82,
"operation not supported") \
\
WIN4_ERR_CODE(WIN4_ERR_SYSTEM, 85, "internal
error") \
\
WIN4_ERR_CODE(WIN4_ERR_INCOMPATIBLE, 87,
"incompatible") \
WIN4_ERR_CODE(WIN4_ERR_DELETE, 88,
"failed to delete") \
WIN4_ERR_CODE(WIN4_ERR_LOCK, 89,
"failed to lock") \
\
WIN4_ERR_CODE(WIN4_ERR_MPC_CONNECT, 90,
"failed to connect to MPC") \
WIN4_ERR_CODE(WIN4_ERR_UNLOCK, 91,
"failed to unlock") \
\
WIN4_ERR_CODE(WIN4_ERR_UNREACHABLE, 93,
"server unreachable") \
WIN4_ERR_CODE(WIN4_ERR_BUSY, 94,
"busy") \
WIN4_ERR_CODE(WIN4_ERR_UNRESOLVED, 95,
"address cannot be resolved") \
WIN4_ERR_CODE(WIN4_ERR_NO_NETWORK, 96,
"network not available") \
WIN4_ERR_CODE(WIN4_ERR_REFUSED, 97,
"refused") \
WIN4_ERR_CODE(WIN4_ERR_TIMEOUT, 98,
"timeout") \
WIN4_ERR_CODE(WIN4_ERR_SERVER, 99, "server
error") \
\
WIN4_ERR_CODE(WIN4_ERR_AT_RESOURCE_CAPACITY, 101,
"cluster is at resource capacity") \
WIN4_ERR_CODE(WIN4_ERR_OFFLINE, 102,
"server is offline") \
WIN4_ERR_CODE(WIN4_ERR_NO_SESS_FOR_USER, 103,
"no sessions found for user") \
WIN4_ERR_CODE(WIN4_ERR_NO_MATCHING_SERVER, 104,
"desktop not cached by any server") \
WIN4_ERR_CODE(WIN4_ERR_LAUNCH_SUSPENDED, 105,
"launching of new sessions is suspended") \
WIN4_ERR_CODE(WIN4_ERR_AT_LICENSE_CAPACITY, 106,
"cluster is at license capacity") \
WIN4_ERR_CODE(WIN4_ERR_NOT_CONNECTED, 107,
"node is not connected") \
WIN4_ERR_CODE(WIN4_ERR_CLIENT_DISCONNECTED, 108,
"client has disconnected") \
WIN4_ERR_CODE(WIN4_ERR_SYSTEM_CONFIG, 109,
"system configuration error") \
WIN4_ERR_CODE(WIN4_ERR_INSTALL_FAILED, 110,
"installation failed or aborted") \
WIN4_ERR_CODE(WIN4_ERR_CANCELED, 111, "operation
canceled") \
\
WIN4_ERR_CODE(WIN4_ERR_DOC_CONV_FAILED, 120,
"document conversion failed") \
\
WIN4_ERR_CODE(WIN4_ERR_LICENSE_EXPIRED, 122,
"license is expired") \
WIN4_ERR_CODE(WIN4_ERR_LICENSE_INVALID, 123,
"license is invalid") \
WIN4_ERR_CODE(WIN4_ERR_LICENSE_MISSING, 124,
"license is missing") \