15088Sab196087# 25088Sab196087# CDDL HEADER START 35088Sab196087# 45088Sab196087# The contents of this file are subject to the terms of the 55088Sab196087# Common Development and Distribution License (the "License"). 65088Sab196087# You may not use this file except in compliance with the License. 75088Sab196087# 85088Sab196087# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95088Sab196087# or http://www.opensolaris.org/os/licensing. 105088Sab196087# See the License for the specific language governing permissions 115088Sab196087# and limitations under the License. 125088Sab196087# 135088Sab196087# When distributing Covered Code, include this CDDL HEADER in each 145088Sab196087# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155088Sab196087# If applicable, add the following below this CDDL HEADER, with the 165088Sab196087# fields enclosed by brackets "[]" replaced with your own identifying 175088Sab196087# information: Portions Copyright [yyyy] [name of copyright owner] 185088Sab196087# 195088Sab196087# CDDL HEADER END 205088Sab196087# 215088Sab196087 225088Sab196087# 23*11827SRod.Evans@Sun.COM# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 245088Sab196087# Use is subject to license terms. 255088Sab196087# 265088Sab196087 275088Sab196087@ _START_ 285088Sab196087 295088Sab196087# Message file for elfedit 'cap' module 305088Sab196087 315088Sab196087@ MSG_ID_ELFEDIT_CAP 325088Sab196087 335088Sab196087 345088Sab196087# Debug messages 355088Sab196087 365088Sab196087@ MSG_DEBUG_S_OK "[%d: %s][%d]: value unchanged: %s\n" 375088Sab196087@ MSG_DEBUG_S_CHG "[%d: %s][%d]: change from %s to %s\n" 385088Sab196087@ MSG_DEBUG_BSB_OK "[%d: %s][%d]: value unchanged: [%s]\n" 395088Sab196087@ MSG_DEBUG_BSB_CHG "[%d: %s][%d]: change from [%s] to [%s]\n" 405088Sab196087@ MSG_DEBUG_X_OK "[%d: %s][%d]: value unchanged: %#llx\n" 415088Sab196087@ MSG_DEBUG_X_CHG "[%d: %s][%d]: change from %#llx to %#llx\n" 42*11827SRod.Evans@Sun.COM@ MSG_DEBUG_CA2NDX "[%d: %s][%d]: capability entry for tag: %s\n" 43*11827SRod.Evans@Sun.COM@ MSG_DEBUG_CAPGRP "[%d: %s][%u-%u: %s]: capability group\n" 44*11827SRod.Evans@Sun.COM@ MSG_DEBUG_CONVNULL "[%d: %s][%d]: no existing %s to modify, converting \ 45*11827SRod.Evans@Sun.COM extra CA_SUNW_NULL\n" 465088Sab196087 475088Sab196087# Errors 485088Sab196087 49*11827SRod.Evans@Sun.COM@ MSG_ERR_NOCAELT "[%d: %s][%u-%u: %s]: capabilities group does not \ 50*11827SRod.Evans@Sun.COM contain tag: %s\n" 51*11827SRod.Evans@Sun.COM@ MSG_ERR_NOSTRTAB "[%d: %s]: capabilities section does not have an \ 52*11827SRod.Evans@Sun.COM associated string table\n" 53*11827SRod.Evans@Sun.COM@ MSG_ERR_BADCAPID "[%d: %s]: capabilities section does not contain \ 54*11827SRod.Evans@Sun.COM specified id: %s\n" 55*11827SRod.Evans@Sun.COM@ MSG_ERR_GRPARRBNDS "%s[%u-%u: %s]: attempt to access elements outside \ 56*11827SRod.Evans@Sun.COM of capabilities group\n" 575088Sab196087 585088Sab196087# Module description 595088Sab196087 605088Sab196087@ MSG_MOD_DESC "Capabilities Section" 615088Sab196087 62*11827SRod.Evans@Sun.COM# Strings 63*11827SRod.Evans@Sun.COM@ MSG_STR_OBJECT "<object>" 64*11827SRod.Evans@Sun.COM@ MSG_STR_NONAME "<noname>" 655088Sab196087 66*11827SRod.Evans@Sun.COM# Format strings 67*11827SRod.Evans@Sun.COM@ MSG_FMT_CAPGRP " Group[%u-%u]: %s\n" 685088Sab196087 695088Sab196087# 1-line description strings 705088Sab196087 715088Sab196087@ MSG_DESC_DUMP "Dump Capabilities Section" 725088Sab196087@ MSG_DESC_TAG "Change element tag" 735088Sab196087@ MSG_DESC_VALUE "Change element value" 745088Sab196087@ MSG_DESC_DELETE "Delete elements" 755088Sab196087@ MSG_DESC_MOVE "Move elements" 76*11827SRod.Evans@Sun.COM@ MSG_DESC_HW1 "Hardware capabilities (CA_SUNW_HW_1) bit values" 77*11827SRod.Evans@Sun.COM@ MSG_DESC_SF1 "Software capabilities (CA_SUNW_SF_1) bit values" 78*11827SRod.Evans@Sun.COM@ MSG_DESC_HW2 "Hardware capabilities (CA_SUNW_HW_2) bit values" 795088Sab196087 805088Sab196087 81*11827SRod.Evans@Sun.COM# Command option description strings 825088Sab196087 835088Sab196087@ MSG_OPTDESC_CAPNDX "\ 845088Sab196087 Interpret the elt argument as a direct index into the\n\ 855088Sab196087 capabilities section, rather than as a CA_ tag value.\n" 865088Sab196087 87*11827SRod.Evans@Sun.COM@ MSG_OPTDESC_CAPID "\ 88*11827SRod.Evans@Sun.COM Restrict the elt argument to the capability elements belonging\n\ 89*11827SRod.Evans@Sun.COM to the capabilities group with a CA_SUNW_ID entry matching the\n\ 90*11827SRod.Evans@Sun.COM specified id name.\n" 91*11827SRod.Evans@Sun.COM 92*11827SRod.Evans@Sun.COM@ MSG_OPTDESC_S "\ 93*11827SRod.Evans@Sun.COM Interpret the value argument as a string rather than an\n\ 94*11827SRod.Evans@Sun.COM integer. If the specified string already exists in the\n\ 95*11827SRod.Evans@Sun.COM string table, the offset of that string is stored in the\n\ 96*11827SRod.Evans@Sun.COM capability entry. If the string does not exist in the string\n\ 97*11827SRod.Evans@Sun.COM table, but there is room to add it, the new string is added\n\ 98*11827SRod.Evans@Sun.COM and then the offset is placed in the capability entry.\n" 99*11827SRod.Evans@Sun.COM 1005088Sab196087 1015088Sab196087# Command argument description strings 1025088Sab196087 1035088Sab196087@ MSG_A1_TAG_ELT "\ 1045088Sab196087 Capabilities element to be examined or changed. By default,\n\ 1055088Sab196087 this is a CA_ tag value. The index of the first element\n\ 1065088Sab196087 in the capabilities section that has the specified tag value\n\ 1075088Sab196087 will be used. The value specified can be one of the well known\n\ 1085088Sab196087 CA_ constants, or any integer.\n\ 1095088Sab196087 \n\ 1105088Sab196087 If the -capndx option is specified, elt is instead interpreted\n\ 1115088Sab196087 as a simple integer index into the capabilities section.\n" 1125088Sab196087 1135088Sab196087@ MSG_A2_TAG_VALUE "\ 1145088Sab196087 Value to be set for c_tag field of specified capabilities\n\ 1155088Sab196087 element. Tag values can be specified using the well known\n\ 1165088Sab196087 CA_ symbolic constants from /usr/include/sys/elf.h, or\n\ 1175088Sab196087 as integers.\n" 1185088Sab196087 1195088Sab196087@ MSG_ARGDESC_ELT "\ 1205088Sab196087 Element within capabilities section. By default, this is a\n\ 1215088Sab196087 tag value. In this case, the index of the first capabilities\n\ 1225088Sab196087 element with the specified tag value will be used. Tag values\n\ 1235088Sab196087 can be specified using the well known CA_ symbolic constants\n\ 1245088Sab196087 from /usr/include/sys/elf.h, or as integers. If the -capndx\n\ 1255088Sab196087 option is specified, then elt is instead interpreted as a\n\ 126*11827SRod.Evans@Sun.COM direct numeric index into the capabilities section. If the\n\ 127*11827SRod.Evans@Sun.COM -capid option is specified, the search is limited to elements\n\ 128*11827SRod.Evans@Sun.COM within the named capabilities group.\n" 1295088Sab196087 1305088Sab196087@ MSG_A2_VALUE_VALUE "\ 1315088Sab196087 Value to set for specified capabilities section element.\n\ 1325088Sab196087 This is a numeric value which is used directly.\n" 1335088Sab196087 1345088Sab196087@ MSG_A2_DELETE_COUNT "\ 1355088Sab196087 Number of capabilities elements to delete, starting at the\n\ 1365088Sab196087 specified position. This value cannot exceed the number\n\ 137*11827SRod.Evans@Sun.COM of slots remaining in the capabilities group below the specified\n\ 138*11827SRod.Evans@Sun.COM position. If count is not supplied, a single element is deleted.\n" 1395088Sab196087 1405088Sab196087@ MSG_A2_MOVE_DST_INDEX "\ 1415088Sab196087 Numeric index within capabilities section to which the element(s)\n\ 142*11827SRod.Evans@Sun.COM should be moved. The destination index must lie within the same\n\ 143*11827SRod.Evans@Sun.COM capabilities group as elt.\n" 1445088Sab196087 1455088Sab196087@ MSG_A3_MOVE_COUNT "\ 1465088Sab196087 Number of capabilities elements to move. This value cannot\n\ 147*11827SRod.Evans@Sun.COM exceed the number of slots remaining in the capabilities group\n\ 148*11827SRod.Evans@Sun.COM below the specified position. If count is not supplied, a\n\ 1495088Sab196087 single element is moved.\n" 1505088Sab196087 1515088Sab196087@ MSG_A1_HW1_VALUE "\ 152*11827SRod.Evans@Sun.COM Hardware capability (CA_SUNW_HW_1) values. This can be an integer\n\ 153*11827SRod.Evans@Sun.COM value, any of the AV_386_ symbolic constants defined in\n\ 1545088Sab196087 /usr/include/sys/auxv_386.h, or the AV_SPARC symbolic\n\ 155*11827SRod.Evans@Sun.COM constants defined in /usr/include/sys/auxv_SPARC.h.\n" 1565088Sab196087 1575088Sab196087@ MSG_A1_SF1_VALUE "\ 158*11827SRod.Evans@Sun.COM Software capability (CA_SUNW_SF_1) values. This can be an integer\n\ 159*11827SRod.Evans@Sun.COM value, any of the SF1_SUNW_ symbolic constants defined in\n\ 160*11827SRod.Evans@Sun.COM /usr/include/sys/elf.h.\n" 1615088Sab196087 162*11827SRod.Evans@Sun.COM@ MSG_A1_HW2_VALUE "\ 163*11827SRod.Evans@Sun.COM Hardware capability (CA_SUNW_HW_2) values. This is available for\n\ 164*11827SRod.Evans@Sun.COM future expansion.\n" 1655088Sab196087 1665088Sab196087 1675088Sab196087# Help strings 1685088Sab196087 1695088Sab196087@ MSG_HELP_DUMP " \ 1705088Sab196087 The cap:dump command is used to display the contents of the\n\ 1715088Sab196087 capabilities section using the same style used by the elfdump\n\ 1725088Sab196087 program.\n" 1735088Sab196087 1745088Sab196087@ MSG_HELP_TAG " \ 1755088Sab196087 The cap:tag command is used to display or alter the\n\ 1765088Sab196087 type of an element in the capabilities section. This information\n\ 1775088Sab196087 is found in the c_tag field of a capabilities element.\n\ 1785088Sab196087 \n\ 1795088Sab196087 If cap:tag is called without arguments, the value of c_tag\n\ 1805088Sab196087 for every element in the capabilities section is shown. If called\n\ 1815088Sab196087 with the elt argument, the specified elements are displayed.\n\ 1825088Sab196087 If both arguments are present, the c_tag field of the specified\n\ 1835088Sab196087 capabilities element is set to the given value.\n" 1845088Sab196087 1855088Sab196087@ MSG_HELP_VALUE " \ 1865088Sab196087 The cap:value command is used to display or alter the\n\ 1875088Sab196087 value of an element in the capabilities section. The value\n\ 1885088Sab196087 of a capabilities element is found in the c_un union of the\n\ 1895088Sab196087 element.\n\ 1905088Sab196087 \n\ 1915088Sab196087 If cap:value is called without arguments, the value of every\n\ 1925088Sab196087 element in the capabilities section is shown. If called with the\n\ 1935088Sab196087 elt argument, the value of the specified elements are displayed.\n\ 1945088Sab196087 If both arguments are present, the value of the specified\n\ 1955088Sab196087 capabilities element is set to the given value.\n" 1965088Sab196087 1975088Sab196087@ MSG_HELP_DELETE " \ 1985088Sab196087 The cap:delete command is used to delete one or more elements\n\ 199*11827SRod.Evans@Sun.COM from a capabilities group within the capabilities section. The\n\ 200*11827SRod.Evans@Sun.COM elements following the deleted items move up, and new CA_NULL\n\ 201*11827SRod.Evans@Sun.COM elements are inserted at the end of the capabilities group to\n\ 202*11827SRod.Evans@Sun.COM fill the vacated space.\n" 2035088Sab196087 2045088Sab196087@ MSG_HELP_MOVE " \ 2055088Sab196087 The cap:move command is used to move the position of one\n\ 206*11827SRod.Evans@Sun.COM or more elements in a capabilities group within in the\n\ 207*11827SRod.Evans@Sun.COM capabilities section. The specified number of elements are\n\ 208*11827SRod.Evans@Sun.COM moved from elt to dst_index.\n" 2095088Sab196087 2105088Sab196087@ MSG_HELP_HW1 " \ 2115088Sab196087 The cap:hw1 command is used to display or alter the\n\ 2125088Sab196087 value of the hardware capabilities element (CA_SUNW_HW_1).\n\ 2135088Sab196087 \n\ 2145088Sab196087 If cap:hw1 is called without arguments, the current\n\ 2155088Sab196087 value is shown. If one or more value arguments are present,\n\ 2165088Sab196087 the following steps are taken:\n\ 2175088Sab196087 \n \ 2185088Sab196087 o\tAll the value arguments are OR'd together.\n\ 2195088Sab196087 \n \ 2205088Sab196087 o\tIf the -cmp option has been specified, the new value\n\ 2215088Sab196087 \tis complemented.\n\ 2225088Sab196087 \n \ 2235088Sab196087 o\tThe CA_SUNW_HW_1 element of the capabilities section is\n\ 2245088Sab196087 \tupdated with the new value. If -and is specified, the new\n\ 2255088Sab196087 \tvalue is AND'd against the existing value. If -or is\n\ 2265088Sab196087 \tspecified, the new value is OR'd against the existing\n\ 2275088Sab196087 \tvalue. If neither -and or -or are specified, the new value\n\ 2285088Sab196087 \treplaces the existing value.\n" 2295088Sab196087 2305088Sab196087@ MSG_HELP_SF1 " \ 2315088Sab196087 The cap:sf1 command is used to display or alter the\n\ 2325088Sab196087 value of the software capabilities element (CA_SUNW_SF_1).\n\ 2335088Sab196087 \n\ 2345088Sab196087 If cap:sf1 is called without arguments, the current\n\ 2355088Sab196087 value is shown. If one or more value arguments are present,\n\ 2365088Sab196087 the following steps are taken:\n\ 2375088Sab196087 \n \ 2385088Sab196087 o\tAll the value arguments are OR'd together.\n\ 2395088Sab196087 \n \ 2405088Sab196087 o\tIf the -cmp option has been specified, the new value\n\ 2415088Sab196087 \tis complemented.\n\ 2425088Sab196087 \n \ 2435088Sab196087 o\tThe CA_SUNW_SF_1 element of the capabilities section is\n\ 2445088Sab196087 \tupdated with the new value. If -and is specified, the new\n\ 2455088Sab196087 \tvalue is AND'd against the existing value. If -or is\n\ 2465088Sab196087 \tspecified, the new value is OR'd against the existing\n\ 2475088Sab196087 \tvalue. If neither -and or -or are specified, the new value\n\ 2485088Sab196087 replaces the existing value.\n" 2495088Sab196087 250*11827SRod.Evans@Sun.COM@ MSG_HELP_HW2 " \ 251*11827SRod.Evans@Sun.COM The cap:hw2 command is used to display or alter the\n\ 252*11827SRod.Evans@Sun.COM value of the hardware capabilities element (CA_SUNW_HW_2).\n\ 253*11827SRod.Evans@Sun.COM \n\ 254*11827SRod.Evans@Sun.COM If cap:hw2 is called without arguments, the current\n\ 255*11827SRod.Evans@Sun.COM value is shown. If one or more value arguments are present,\n\ 256*11827SRod.Evans@Sun.COM the following steps are taken:\n\ 257*11827SRod.Evans@Sun.COM \n \ 258*11827SRod.Evans@Sun.COM o\tAll the value arguments are OR'd together.\n\ 259*11827SRod.Evans@Sun.COM \n \ 260*11827SRod.Evans@Sun.COM o\tIf the -cmp option has been specified, the new value\n\ 261*11827SRod.Evans@Sun.COM \tis complemented.\n\ 262*11827SRod.Evans@Sun.COM \n \ 263*11827SRod.Evans@Sun.COM o\tThe CA_SUNW_HW_2 element of the capabilities section is\n\ 264*11827SRod.Evans@Sun.COM \tupdated with the new value. If -and is specified, the new\n\ 265*11827SRod.Evans@Sun.COM \tvalue is AND'd against the existing value. If -or is\n\ 266*11827SRod.Evans@Sun.COM \tspecified, the new value is OR'd against the existing\n\ 267*11827SRod.Evans@Sun.COM \tvalue. If neither -and or -or are specified, the new value\n\ 268*11827SRod.Evans@Sun.COM \treplaces the existing value.\n" 2695088Sab196087@ _END_ 2705088Sab196087 2715088Sab196087 2725088Sab196087# The following strings represent reserved words, files, pathnames and symbols. 2735088Sab196087# Reference to this strings is via the MSG_ORIG() macro, and thus no message 2745088Sab196087# translation is required. 2755088Sab196087 2765088Sab196087 2775088Sab196087# Strings 2785088Sab196087@ MSG_STR_EMPTY "" 2795088Sab196087@ MSG_STR_COUNT "count" 2805088Sab196087@ MSG_STR_ELT "elt" 2815088Sab196087@ MSG_STR_DST_INDEX "dst_index" 282*11827SRod.Evans@Sun.COM@ MSG_STR_MINUS_CAPID "-capid" 2835088Sab196087@ MSG_STR_MINUS_CAPNDX "-capndx" 284*11827SRod.Evans@Sun.COM@ MSG_STR_MINUS_S "-s" 2855088Sab196087@ MSG_STR_VALUE "value" 286*11827SRod.Evans@Sun.COM@ MSG_STR_IDNAME "id_name" 2875088Sab196087 2885088Sab196087# Format strings 2895088Sab196087@ MSG_FMT_STRNL "%s\n" 2905088Sab196087@ MSG_FMT_HEXXWORDNL "%#llx\n" 291*11827SRod.Evans@Sun.COM@ MSG_FMT_WORDVALNL "%u\n" 2925088Sab196087 2935088Sab196087 2945088Sab196087# Module name 2955088Sab196087 2965088Sab196087@ MSG_MOD_NAME "cap" 2975088Sab196087 2985088Sab196087 2995088Sab196087# Command names 3005088Sab196087 3015088Sab196087@ MSG_CMD_DUMP "dump" 3025088Sab196087@ MSG_CMD_TAG "tag" 3035088Sab196087@ MSG_CMD_VALUE "value" 3045088Sab196087@ MSG_CMD_DELETE "delete" 3055088Sab196087@ MSG_CMD_MOVE "move" 3065088Sab196087@ MSG_CMD_HW1 "hw1" 3075088Sab196087@ MSG_CMD_SF1 "sf1" 308*11827SRod.Evans@Sun.COM@ MSG_CMD_HW2 "hw2" 309