/* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* * This file was generated during make. */ #include static const char *_fmev_errstrs[] = { "Error details unknown " /* FMEVERR_UNKNOWN */, "Library ABI version incompatible with caller " /* FMEVERR_VERSION_MISMATCH */, "Library API usage violation " /* FMEVERR_API */, "Failed to allocate additional resources " /* FMEVERR_ALLOC */, "Event contents are inconsistent or corrupt " /* FMEVERR_MALFORMED_EVENT */, "Operation would overflow result type " /* FMEVERR_OVERFLOW */, "Internal library error " /* FMEVERR_INTERNAL */, "Insufficient permissions or privilege " /* FMEVERR_NOPRIV */, "Resource is busy " /* FMEVERR_BUSY */, "Duplicate request " /* FMEVERR_DUPLICATE */, "Bad event class or class pattern " /* FMEVERR_BADCLASS */, "No match to criteria provided " /* FMEVERR_NOMATCH */, "Exceeds maximum subscribers per handle " /* FMEVERR_MAX_SUBSCRIBERS */, "Argument is invalid " /* FMEVERR_INVALIDARG */, "String argument exceeds maximum length " /* FMEVERR_STRING2BIG */, "Varargs list bad or incorrectly terminated " /* FMEVERR_VARARGS_MALFORMED */, "Varargs list exceeds maximum length " /* FMEVERR_VARARGS_TOOLONG */, "Ruleset selected for publication is bad " /* FMEVERR_BADRULESET */, "Priority selected for publication is bad " /* FMEVERR_BADPRI */, "Error in underlying event transport implementation " /* FMEVERR_TRANSPORT */, "nvlist argument is not of type NV_UNIQUE_NAME " /* FMEVERR_NVLIST */, }; static const int _fmev_nerrs = sizeof (_fmev_errstrs) / sizeof (_fmev_errstrs[0]); const char * fmev_strerror(fmev_err_t err) { const char *s; if (err >= FMEVERR_UNKNOWN && (err - FMEVERR_UNKNOWN < _fmev_nerrs)) s = _fmev_errstrs[err - FMEVERR_UNKNOWN]; else s = _fmev_errstrs[0]; return (s); }