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 2004 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _SYSEVENTADM_MSG_H 28 #define _SYSEVENTADM_MSG_H 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 /* 35 * Gettext strings for internationalization 36 */ 37 #define MSG_NOT_ROOT \ 38 gettext("%s: must be root\n") 39 40 #define MSG_NOT_GLOBAL \ 41 gettext("%s: must be in global zone\n") 42 43 #define MSG_CANNOT_CREATE \ 44 gettext("%s: cannot create %s - %s\n") 45 46 #define MSG_CANNOT_OPEN \ 47 gettext("%s: cannot open %s - %s\n") 48 49 #define MSG_CLOSE_ERROR \ 50 gettext("%s: close of %s failed - %s\n") 51 52 #define MSG_CHMOD_ERROR \ 53 gettext("%s: cannot chmod %s to 0444 - %s\n") 54 55 #define MSG_CANNOT_OPEN_DIR \ 56 gettext("%s: cannot open directory %s - %s\n") 57 58 #define MSG_CLOSE_DIR_ERROR \ 59 gettext("%s: close of directory %s failed - %s\n") 60 61 #define MSG_TMP_FILE \ 62 gettext("%s: unable to make tmp file name\n") 63 64 #define MSG_CANNOT_UNLINK \ 65 gettext("%s: cannot unlink %s - %s\n") 66 67 #define MSG_CANNOT_RENAME \ 68 gettext("%s: cannot rename %s to %s - %s\n") 69 70 #define MSG_RESTART_FAILED \ 71 gettext("%s: restart failed - %s\n") 72 73 #define MSG_NO_MEM \ 74 gettext("%s: out of memory\n") 75 76 #define MSG_USAGE_INTRO \ 77 gettext("usage: syseventadm <cmd> ...\n") 78 79 #define MSG_USAGE_OPTIONS \ 80 gettext("where the possible commands and options for each are:\n") 81 82 #define MSG_LOCK_CREATE_ERR \ 83 gettext("%s: error creating lock %s - %s\n") 84 85 #define MSG_LOCK_PATH_ERR \ 86 gettext("%s: error creating lock %s - file path invalid\n") 87 88 #define MSG_LOCK_SET_ERR \ 89 gettext("%s: error setting lock in %s - %s\n") 90 91 #define MSG_LOCK_CLR_ERR \ 92 gettext("%s: error clearing lock in %s - %s\n") 93 94 #define MSG_LOCK_CLOSE_ERR \ 95 gettext("%s: error closing lock %s - %s\n") 96 97 #ifdef __cplusplus 98 } 99 #endif 100 101 #endif /* _SYSEVENTADM_MSG_H */ 102