1 .\" ident "%Z%%M% %I% %E% SMI"
2 .\" Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 .\" Use is subject to license terms.
7 .\" The contents of this file are subject to the terms of the
8 .\" Common Development and Distribution License, Version 1.0 only
9 .\" (the "License"). You may not use this file except in compliance
12 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 .\" or http://www.opensolaris.org/os/licensing.
14 .\" See the License for the specific language governing permissions
15 .\" and limitations under the License.
17 .\" When distributing Covered Code, include this CDDL HEADER in each
18 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 .\" If applicable, add the following below this CDDL HEADER, with the
20 .\" fields enclosed by brackets "[]" replaced with your own identifying
21 .\" information: Portions Copyright [yyyy] [name of copyright owner]
26 .TH chkmsg 1l "5 Apr 1997"
28 chkmsg \- cross check messages
35 Internal to the linker group
37 chkmsg checks the message identifiers defined in the input file
38 and the message identifyer used in the input source_files. The input
39 file is the input file which is used by the sgsmsg command.
41 The chkmsg command reads the input file and
42 generates two sets of message identifiers.
44 the identifiers defined in between the _START_ and _END_ key words.
45 These identifiers are intended to be referenced by MSG_INTL().
46 This set is named as MSG_INTL_FROM_INPUT.
49 the identifiers defined after the _END_ key words.
50 These identifiers are intended to be referenced by MSG_ORIG().
51 This set is named as MSG_ORIG_FROM_INPUT.
53 The chkmsg command reads the specified input source_files and
54 generates two sets of message identifiers. The first set is
55 the message identifiers referenced by MSG_INTL() macro.
56 This set is named as MSG_INTL_FROM_SRC.
58 The other set is the message identifiers referenced by the
60 This set is named as MSG_ORIG_FROM_SRC.
62 The chkmsg command compares MSG_INTL_FROM_SRC and MSG_INTL_FROM_INPUT.
63 If these two sets are different, the command gives the warning
64 message and print the identifiers which are different.
66 The chkmsg command compares MSG_ORIG_FROM_SRC and MSG_ORIG_FROM_INPUT.
67 If these two sets are different, the command gives the warning
68 message and print the identifiers which are different.
70 The identifiers in MSG_INTL_FROM_SRC and MSG_ORIG_FROM_SRC are
71 extracted from the source files only if they are
72 directly passed to MSG_INTL() or MSG_ORIG(). Therefore, for example:
80 printf(MSG_INTL(msg));
84 the identifyer MSG_ERROR_01 will not be included in MSG_INTL_FROM_SRC set.
86 There are two key words which can be used in the input file
87 to control whether the identifier will be extracted into
88 MSG_{INTL,ORIG}_FROM_ORIG or not. If the identifyer are
89 surrounded by _CHKMSG_SKIP_BEGIN_ {sparc,i386}
90 and _CHKMSG_SKIP_END_ {sparc,i386}, then
91 the identifiers will not be included in the output set.
92 The architecture being checked should be specified after
94 These key words should be specified in the comment lines.
95 For example, the input file could contain:
99 # _CHKMSG_SKIP_BEGIN_ sparc
100 @ MSG_ERROR_01 "This identifier is not defined."
101 # _CHKMSG_SKIP_END_ sparc
105 It is assumed that the message identifier names are composed
106 of only upper letters.
110 Use a 64-bit version of the machine type (i.e. sparc => sparcv9).
111 Note that this option must be specified first on the command line.