1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _NFS_PROVIDERS_MSGSTRINGS_H 28 #define _NFS_PROVIDERS_MSGSTRINGS_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 /* 37 * dgettext is normally defined by including libintl.h. However, the file 38 * /usr/sadm/lib/wbem/include/cimapi.h erroneously defines gettext so that 39 * they can play games with L10N in the CIM functions. If we try to undef 40 * gettext before we include libintl.h we get a complaint from hdrchk. So, 41 * just declare the extern here to work around this mess. 42 */ 43 extern char *dgettext(const char *, const char *); 44 45 /* 46 * This include file defines all messages that are used for error reporting 47 * in the nfs providers. Other messages about CIM specific failures are 48 * defined in $(SRC)/cmd/wbem/provider/c/include/messageStrings.h 49 */ 50 51 /* 52 * CIM failures - These should be moved to 53 * $(SRC)/cmd/wbem/provider/c/include/messageStrings.h 54 */ 55 #define ADD_PROP_TO_PROPLIST_FAILURE \ 56 util_routineFailureMessage("cim_addPropertyToPropertyList") 57 #define ADD_PROP_TO_OBJPATH_FAILURE \ 58 util_routineFailureMessage("cim_addPropertyListToObjectPath") 59 #define CIMOM_ENUM_INST_FAILURE \ 60 util_routineFailureMessage("cimom_enumerateInstances") 61 #define CIMOM_ENUM_INSTNAMES_FAILURE \ 62 util_routineFailureMessage("cimom_enumerateInstanceNames") 63 #define CIMOM_GET_INST_FAILURE \ 64 util_routineFailureMessage("cimom_getInstance") 65 #define CREATE_EMPTY_OBJPATH_FAILURE \ 66 util_routineFailureMessage("cim_createEmptyObjectPath") 67 #define CREATE_PROPLIST_FAILURE \ 68 util_routineFailureMessage("cim_createPropertyList") 69 #define ENCODE_STRING_ARRAY_FAILURE \ 70 util_routineFailureMessage("cim_encodeStringArray") 71 #define GET_PROPERTY_FAILURE \ 72 util_routineFailureMessage("cim_getProperty") 73 #define PREPEND_INSTANCE_FAILURE \ 74 util_routineFailureMessage("cim_prependInstance") 75 #define PROPLIST_TO_INSTANCE_FAILURE \ 76 util_routineFailureMessage("cim_addPropertyListToInstance") 77 78 /* 79 * NFS provider failures 80 */ 81 #define CMD_EXEC_RETR_STR_FAILURE \ 82 util_routineFailureMessage("cmd_execute_command_and_retrieve_string") 83 #define CMDGEN_GEN_CMD_FAILURE \ 84 util_routineFailureMessage("cmdgen_generate_command") 85 #define CREATE_NFSMOUNT_ASSOC_FAILURE \ 86 util_routineFailureMessage("create_nfsMount_associations") 87 #define DEL_DUPLICATE_PATHS_FAILURE \ 88 util_routineFailureMessage("del_all_with_duplicate_path") 89 #define FS_ADD_DFSTAB_ENT_FAILURE \ 90 util_routineFailureMessage("fs_add_DFStab_ent") 91 #define FS_CHECK_DUP_PATHS \ 92 util_routineFailureMessage("fs_check_for_duplicate_DFStab_paths") 93 #define FS_DEL_MNT_DEFAULT_FAILURE \ 94 util_routineFailureMessage("fs_del_mount_default_ent") 95 #define FS_DEL_DFSTAB_ENT_FAILURE \ 96 util_routineFailureMessage("fs_del_DFStab_ent") 97 #define FS_EDIT_DFSTAB_ENT_FAILURE \ 98 util_routineFailureMessage("fs_edit_DFStab_ent") 99 #define FS_GET_DFSTAB_ENT_FAILURE \ 100 util_routineFailureMessage("fs_get_DFStab_ents") 101 #define FS_GET_DFSTAB_ENT_NUM_FAILURE \ 102 util_routineFailureMessage("fs_get_DFStab_ent_num") 103 #define FS_GET_FILTERED_MNTDEFAULTS_FAILURE \ 104 util_routineFailureMessage("fs_get_filtered_mount_defaults") 105 #define FS_GET_MAXFILENMLEN_FAILURE \ 106 util_routineFailureMessage("fs_get_maxfilenamelen") 107 #define FS_GET_SHARE_FAILURE \ 108 util_routineFailureMessage("fs_get_share_list") 109 #define FS_PARSE_OPTS_FOR_SEC_MODES_FAILURE \ 110 util_routineFailureMessage("fs_parse_opts_for_sec_modes") 111 #define FS_PARSE_OPTLIST_FAILURE \ 112 util_routineFailureMessage("fs_parse_optlist_for_option") 113 #define GET_DEFAULT_SECMODE_FAILURE \ 114 util_routineFailureMessage("nfssec_get_default_secmode") 115 #define GET_DEVID_FAILURE \ 116 util_routineFailureMessage("get_devid") 117 #define GET_HOSTNAME_FAILURE \ 118 util_routineFailureMessage("sys_get_hostname") 119 #define GET_NETID_LIST_FAILURE \ 120 util_routineFailureMessage("netcfg_get_networkid_list") 121 #define GET_RESOURCE_FAILURE \ 122 util_routineFailureMessage("get_resource") 123 #define GET_SECMODE_LIST_FAILURE \ 124 util_routineFailureMessage("nfssec_get_nfs_secmode_list") 125 #define NFS_GET_FILTERED_MOUNTS_FAILURE \ 126 util_routineFailureMessage("nfs_get_filtered_mount_list") 127 #define NFS_GET_MNTLIST_FAILURE \ 128 util_routineFailureMessage("nfs_get_mount_list") 129 #define NFS_GET_MNTS_BY_MNTOPT_FAILURE \ 130 util_routineFailureMessage("nfs_get_mounts_by_mntopt") 131 132 /* 133 * NFS provider messages 134 */ 135 #define NFSD_START_FAILURE \ 136 util_routineStartDaemonMessage("nfsd") 137 #define NO_SHARES_ON_SYSTEM \ 138 dgettext(TEXT_DOMAIN, \ 139 "/etc/dfs/sharetab does not exist. No shares on system") 140 #define MOUNTD_START_FAILURE \ 141 util_routineStartDaemonMessage("mountd") 142 143 #ifdef __cplusplus 144 } 145 #endif 146 147 #endif /* _NFS_PROVIDERS_MSGSTRINGS_H */ 148