Print this page
11461 should use a native link-editor during the build
11463 SUNWonld has passed its use-by date
11464 cmd/sgs/tools should contain tools, not common code
11465 sgsmsg should be built with the rest of the build tools

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/tools/man/sgsmsg.1l
          +++ new/usr/src/tools/sgs/sgsmsg/sgsmsg.1onbld
   1      -.\" ident       "%Z%%M% %I%     %E% SMI"
   2    1  .\" Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
   3    2  .\" Use is subject to license terms.
   4    3  .\"
   5    4  .\" CDDL HEADER START
   6    5  .\"
   7    6  .\" The contents of this file are subject to the terms of the
   8    7  .\" Common Development and Distribution License, Version 1.0 only
   9    8  .\" (the "License").  You may not use this file except in compliance
  10    9  .\" with the License.
  11   10  .\"
↓ open down ↓ 4 lines elided ↑ open up ↑
  16   15  .\"
  17   16  .\" When distributing Covered Code, include this CDDL HEADER in each
  18   17  .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  19   18  .\" If applicable, add the following below this CDDL HEADER, with the
  20   19  .\" fields enclosed by brackets "[]" replaced with your own identifying
  21   20  .\" information: Portions Copyright [yyyy] [name of copyright owner]
  22   21  .\"
  23   22  .\" CDDL HEADER END
  24   23  .\"
  25   24  .if n .tr \--
  26      -.TH sgsmsg 1l "2 Jun 1999"
       25 +.TH sgsmsg 1ONBLD "Jun 2, 1999"
  27   26  .SH NAME
  28   27  sgsmsg \- generate message strings for SGS subsystem.
  29   28  .SH SYNOPSIS
  30   29  .B sgsmsg
  31   30  [
  32   31  .B \-cl
  33   32  ] [
  34   33  .BI \-d\0 "data"
  35   34  ] [
  36   35  .BI \-h\0 "defs"
↓ open down ↓ 25 lines elided ↑ open up ↑
  62   61  .LP
  63   62  The character strings may also be translated into an internationalized
  64   63  format and captured in the
  65   64  \f2messages\f1 file.  By default these message strings are suitable for
  66   65  .BR gettext (3I)
  67   66  manipulation.  The \f3\-c\f1 option provides for these message strings to be
  68   67  translated into a form suitable for
  69   68  .BR catgets (3C)
  70   69  manipulation.
  71   70  .SH OPERANDS
  72      -.LP
  73   71  One of more input \f2file\f1s contains a definition for each character
  74   72  string used by a particular code group.  The interpretation of a
  75   73  definition is determined by the first character of each line within
  76   74  the input \f2file\f1:
  77   75  .LP
  78   76  .PD 0
  79   77  .RS +4
  80   78  .IP \(bu 3
  81   79  Entries that begin with a \f3#\fI, \f3$\f1 or a newline are treated as
  82   80  comments and are copied (as is) to the \f2messages\f1 file.
↓ open down ↓ 139 lines elided ↑ open up ↑
 222  220  .BR libld.so.2 :
 223  221  .ta 2.2i
 224  222  .RS
 225  223  .nf
 226  224  .ft 3
 227  225  
 228  226  % cat libld.msg
 229  227  .ft 1
 230  228  .if t .sp 0.35
 231  229  .if n .sp
 232      -# ident "%Z%%M% %I%    %E% SMI"
 233      -.if t .sp 0.35
 234      -.if n .sp
 235  230  @ _START_
 236  231  .if t .sp 0.35
 237  232  .if n .sp
 238  233  # Message file for cmd/sgs/libld.
 239  234  .if t .sp 0.35
 240  235  .if n .sp
 241  236  @ MSG_ID_LIBLD
 242  237  
 243  238  # System call messages
 244  239  .if t .sp 0.35
↓ open down ↓ 165 lines elided ↑ open up ↑
 410  405          (void) setlocale(LC_MESSAGES, MSG_ORIG(MSG_STR_EMPTY));
 411  406          (void) textdomain(MSG_ORIG(MSG_SUNW_OST_SGS));
 412  407          \&\.\.\.\.\.\.
 413  408  }
 414  409  
 415  410  const char *
 416  411  _ld_msg(int mid)
 417  412  {
 418  413          return (gettext(MSG_ORIG(mid)));
 419  414  }
      415 +.RE
 420  416  .sp
 421  417  .SH "EXIT STATUS"
 422  418  A non-zero error return indicates a processing error.
 423      -.RE
 424  419  .PD
 425  420  .SH "SEE ALSO"
 426  421  .BR gencat (1),
 427  422  .BR ld (1),
 428  423  .BR msgfmt (1),
 429  424  .BR catgets (3C),
 430      -.BR gettext (3I).
 431      -.br
 432      -.TZ LLM
      425 +.BR gettext (3C).
 433  426  .if n .tr \-\-
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX