4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
31 Dbg_args_option(Lm_list
*lml
, int ndx
, int c
, char *optarg
)
33 if (DBG_NOTCLASS(DBG_C_ARGS
))
37 dbg_print(lml
, MSG_INTL(MSG_ARG_OPTARG
), ndx
, c
, optarg
);
39 dbg_print(lml
, MSG_INTL(MSG_ARG_OPTION
), ndx
, c
);
43 Dbg_args_str2chr(Lm_list
*lml
, int ndx
, const char *opt
, int c
)
45 if (DBG_NOTCLASS(DBG_C_ARGS
))
48 dbg_print(lml
, MSG_INTL(MSG_ARG_STR2CHR
), ndx
, opt
, c
);
52 Dbg_args_Wldel(Lm_list
*lml
, int ndx
, const char *opt
)
54 if (DBG_NOTCLASS(DBG_C_ARGS
))
57 dbg_print(lml
, MSG_INTL(MSG_ARG_WLDEL
), ndx
, opt
);
61 Dbg_args_file(Lm_list
*lml
, int ndx
, char *file
)
63 if (DBG_NOTCLASS(DBG_C_ARGS
))
66 dbg_print(lml
, MSG_INTL(MSG_ARG_FILE
), ndx
, file
);
71 * Report unrecognized item provided to '-z guidance' option.
74 Dbg_args_guidance_unknown(Lm_list
*lml
, const char *item
)
76 if (DBG_NOTCLASS(DBG_C_ARGS
))
79 dbg_print(lml
, MSG_INTL(MSG_ARG_NG_UNKNOWN
), item
);