2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License, Version 1.0 only
2N/A * (the "License"). You may not use this file except in compliance
2N/A * with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A/*
2N/A * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A/*
2N/A * regerror: map error number to text string
2N/A *
2N/A * Copyright 1985, 1992 by Mortice Kern Systems Inc. All rights reserved.
2N/A *
2N/A */
2N/A/*
2N/A * static char rcsID[] = "$Header: /u/rd/src/libc/regex/rcs/regerror.c "
2N/A * "1.28 1994/11/07 14:40:06 jeffhe Exp $";
2N/A */
2N/A
2N/A#ifndef _REGERROR_MSG_H
2N/A#define _REGERROR_MSG_H
2N/A
2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A
2N/A/*
2N/A * This string array holds the error message strings for
2N/A * the regerror() function. The method function implemented in
2N/A * libc_i18n strongly depends on this array. Do not modify this
2N/A * array without synchronizing with the method function.
2N/A * Also, the _MSG macro is used to extract the message strings
2N/A * for the gettext() messaging by the makelibccatalog.sh script.
2N/A */
2N/Astatic const char *regerrors[] = {
2N/A _MSG("success"), /* 0: REG_OK */
2N/A _MSG("failed to match"), /* 1: REG_NOMATCH */
2N/A _MSG("invalid collation element"), /* 2: REG_ECOLLATE */
2N/A _MSG("trailing \\ in pattern"), /* 3: REG_EESCAPE */
2N/A _MSG("newline found before end of pattern"),
2N/A /* 4: REG_ENEWLINE */
2N/A "", /* 5: REG_ENSUB (OBS) */
2N/A _MSG("number in \\[0-9] invalid"), /* 6: REG_ESUBREG */
2N/A _MSG("[ ] imbalance or syntax error"), /* 7: REG_EBRACK */
2N/A _MSG("( ) or \\( \\) imbalance"), /* 8: REG_EPAREN */
2N/A _MSG("{ } or \\{ \\} imbalance"), /* 9: REG_EBRACE */
2N/A _MSG("invalid endpoint in range"), /* 10: REG_ERANGE */
2N/A _MSG("out of memory"), /* 11: REG_ESPACE */
2N/A _MSG("?, *, +, or { } not preceded by valid regular expression"),
2N/A /* 12: REG_BADRPT */
2N/A _MSG("invalid character class type"), /* 13: REG_ECTYPE */
2N/A _MSG("syntax error"), /* 14: REG_BADPAT */
2N/A _MSG("contents of { } or \\{ \\} invalid"),
2N/A /* 15: REG_BADBR */
2N/A _MSG("internal error"), /* 16: REG_EFATAL */
2N/A _MSG("invalid multibyte character"), /* 17: REG_ECHAR */
2N/A _MSG("backtrack stack overflow: expression generates too many "
2N/A "alternatives"), /* 18: REG_STACK */
2N/A _MSG("function not supported"), /* 19: REG_ENOSYS */
2N/A _MSG("unknown regex error"), /* 20: (reserved) */
2N/A _MSG("^ anchor not at beginning of pattern"),
2N/A /* 21: REG_EBOL */
2N/A _MSG("$ anchor not at end of pattern"), /* 22: REG_EEOL */
2N/A};
2N/A
2N/A#endif /* _REGERROR_MSG_H */