1*986fd29aSsetje /* 2*986fd29aSsetje * CDDL HEADER START 3*986fd29aSsetje * 4*986fd29aSsetje * The contents of this file are subject to the terms of the 5*986fd29aSsetje * Common Development and Distribution License (the "License"). 6*986fd29aSsetje * You may not use this file except in compliance with the License. 7*986fd29aSsetje * 8*986fd29aSsetje * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*986fd29aSsetje * or http://www.opensolaris.org/os/licensing. 10*986fd29aSsetje * See the License for the specific language governing permissions 11*986fd29aSsetje * and limitations under the License. 12*986fd29aSsetje * 13*986fd29aSsetje * When distributing Covered Code, include this CDDL HEADER in each 14*986fd29aSsetje * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*986fd29aSsetje * If applicable, add the following below this CDDL HEADER, with the 16*986fd29aSsetje * fields enclosed by brackets "[]" replaced with your own identifying 17*986fd29aSsetje * information: Portions Copyright [yyyy] [name of copyright owner] 18*986fd29aSsetje * 19*986fd29aSsetje * CDDL HEADER END 20*986fd29aSsetje */ 21*986fd29aSsetje /* 22*986fd29aSsetje * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*986fd29aSsetje * Use is subject to license terms. 24*986fd29aSsetje */ 25*986fd29aSsetje 26*986fd29aSsetje #ifndef _MESSAGE_H 27*986fd29aSsetje #define _MESSAGE_H 28*986fd29aSsetje 29*986fd29aSsetje #pragma ident "%Z%%M% %I% %E% SMI" 30*986fd29aSsetje 31*986fd29aSsetje #ifdef __cplusplus 32*986fd29aSsetje extern "C" { 33*986fd29aSsetje #endif 34*986fd29aSsetje 35*986fd29aSsetje #include <libintl.h> 36*986fd29aSsetje 37*986fd29aSsetje #define OPT_DC_EXCL gettext("fiocompress: -c and -d are exclusive\n") 38*986fd29aSsetje #define INVALID_BLKSZ gettext("fiocompress: invalid block size\n") 39*986fd29aSsetje #define UNKNOWN_OPTION gettext("fiocompress: unknown option -%c\n") 40*986fd29aSsetje #define MISS_FILES gettext("fiocompress: input and output files\ 41*986fd29aSsetje must be specified\n") 42*986fd29aSsetje #define FIO_COMP_FAIL gettext("fiocompress: FIO_COMPRESSED on %s failed\ 43*986fd29aSsetje - %s\n") 44*986fd29aSsetje #define CANT_OPEN gettext("fiocompress: cannot open %s - %s\n") 45*986fd29aSsetje #define STAT_FAIL gettext("fiocompress: stat of %s failed - %s\n") 46*986fd29aSsetje #define MMAP_FAIL gettext("fiocompress: mmapping on %s failed - %s\n") 47*986fd29aSsetje #define OPEN_FAIL gettext("fiocompress: open of %s failed - %s\n") 48*986fd29aSsetje #define HDR_ALLOC gettext("fiocompress: failed to allocate %d bytes\ 49*986fd29aSsetje for header\n") 50*986fd29aSsetje #define BUF_ALLOC gettext("fiocompress: failed to allocate %d bytes\ 51*986fd29aSsetje for buffer\n") 52*986fd29aSsetje #define SEEK_ERR gettext("fiocompress: seek to %ld on %s failed - %s\n") 53*986fd29aSsetje #define COMP_ERR gettext("fiocompress: %s - compression error %d\n") 54*986fd29aSsetje #define WRITE_ERR gettext("fiocompress: write of %ld bytes on %s failed\ 55*986fd29aSsetje - %s\n") 56*986fd29aSsetje #define BAD_MAGIC gettext("fiocompress: %s - bad magic (0x%llx/0x%x)\n") 57*986fd29aSsetje #define BAD_VERS gettext("fiocompress: %s - bad version (0x%llx/0x%x)\n") 58*986fd29aSsetje #define BAD_ALG gettext("fiocompress: %s - bad algorithm\ 59*986fd29aSsetje (0x%llx/0x%x)\n") 60*986fd29aSsetje #define DECOMP_ERR gettext("fiocompress: %s - decompression error %d\n") 61*986fd29aSsetje #define CORRUPT gettext("fiocompress: %s - corrupt file\n") 62*986fd29aSsetje 63*986fd29aSsetje #ifdef __cplusplus 64*986fd29aSsetje } 65*986fd29aSsetje #endif 66*986fd29aSsetje 67*986fd29aSsetje #endif /* _MESSAGE_H */ 68