Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
00001 /* USMID @(#) clibinc/cray/nlcatmsg.h 92.2 06/04/99 14:08:09 */ 00002 00003 /* 00004 00005 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00006 00007 This program is free software; you can redistribute it and/or modify it 00008 under the terms of version 2 of the GNU General Public License as 00009 published by the Free Software Foundation. 00010 00011 This program is distributed in the hope that it would be useful, but 00012 WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00014 00015 Further, this software is distributed without any warranty that it is 00016 free of the rightful claim of any third person regarding infringement 00017 or the like. Any license provided herein, whether implied or 00018 otherwise, applies only to this software file. Patent licenses, if 00019 any, provided herein do not apply to combinations of this program with 00020 other software, or any other product whatsoever. 00021 00022 You should have received a copy of the GNU General Public License along 00023 with this program; if not, write the Free Software Foundation, Inc., 59 00024 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00025 00026 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00027 Mountain View, CA 94043, or: 00028 00029 http://www.sgi.com 00030 00031 For further information regarding this notice, see: 00032 00033 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00034 00035 */ 00036 00037 #ifndef __NLCATMSG_H__ 00038 #define __NLCATMSG_H__ 00039 00040 #ifdef __cplusplus 00041 extern "C" { 00042 #endif 00043 00044 /* 00045 * assume nl_types.h has been included. Use it to pick up the 00046 * generic defines for the message cat 00047 */ 00048 00049 /* 00050 * local versions since gnu has int_max for these. 00051 */ 00052 #ifndef NL_CATMSG_SETMAX 00053 #define NL_CATMSG_SETMAX 1024 00054 #endif 00055 #ifndef NL_CATMSG_MSGMAX 00056 #define NL_CATMSG_MSGMAX 32767 00057 #endif 00058 #ifndef NL_CATMSG_TEXTMAX 00059 #define NL_CATMSG_TEXTMAX 2048 00060 #endif 00061 00062 #ifndef NL_MAXPATHLEN 00063 #define NL_MAXPATHLEN 1024 00064 #endif 00065 #ifndef NL_PATH 00066 #define NL_PATH "NLSPATH" 00067 #endif 00068 #ifndef NL_LANG 00069 #define NL_LANG "LANG" 00070 #endif 00071 #ifndef NL_DEF_LANG 00072 #define NL_DEF_LANG "english" 00073 #endif 00074 #ifndef NL_SETD 00075 #define NL_SETD 1 00076 #endif 00077 #ifndef NL_MAX_OPENED 00078 #define NL_MAX_OPENED 10 00079 #endif 00080 00081 #ifndef NL_CAT_LOCALE 00082 #define NL_CAT_LOCALE 1 00083 #endif 00084 00085 /* 00086 * Default search pathname 00087 */ 00088 #ifndef DEF_NLSPATH 00089 #define DEF_NLSPATH "/usr/share/locale/%L/LC_MESSAGES/%N:/usr/share/locale/%L/Xopen/LC_MESSAGES/%N:/usr/share/locale/%L/LC_MESSAGES/%N.cat:/usr/share/locale/C/LC_MESSAGES/%N:/usr/share/locale/C/LC_MESSAGES/%N.cat" 00090 #endif 00091 00092 /* 00093 * Default search path for the C locale only. Can still be overridden with NLSPATH. 00094 */ 00095 #ifndef _C_LOCALE_DEF_NLSPATH 00096 #define _C_LOCALE_DEF_NLSPATH "/usr/share/locale/C/LC_MESSAGES/%N:" \ 00097 "/usr/share/locale/C/Xopen/LC_MESSAGES/%N:" \ 00098 "/usr/share/locale/%L/LC_MESSAGES/%N.cat" 00099 #endif 00100 00101 /* Default explanation and message set numbers */ 00102 #ifndef NL_EXPSET 00103 #define NL_EXPSET NL_SETD /* set number for explanations */ 00104 #endif 00105 #ifndef NL_MSGSET 00106 #define NL_MSGSET NL_SETD /* set number for messages */ 00107 #endif 00108 00109 /* catmsgfmt formating information */ 00110 00111 #define MSG_FORMAT "MSG_FORMAT" 00112 #define D_MSG_FORMAT "%G-%N %C: %S %P\n %M\n" 00113 00114 /* Internal catopen errors */ 00115 #define NL_ERR_MAXOPEN -2 /* Too many catalog files are open. 00116 See NL_MAX_OPENED */ 00117 #define NL_ERR_MAP -3 /* The mmap(2) system call failed */ 00118 #define NL_ERR_MALLOC -4 /* malloc(3C) failed */ 00119 #define NL_ERR_HEADER -5 /* Message catalog header error */ 00120 00121 /* Internal catgets and catgetmsg errors */ 00122 #define NL_ERR_ARGERR -6 /* Bad catd argument */ 00123 #define NL_ERR_BADSET -7 /* The set does not exist in the catalog. */ 00124 #define NL_ERR_NOMSG -8 /* The message was not found. */ 00125 #define NL_ERR_BADTYPE -9 /* The catalog type is unknown */ 00126 00127 char *catgetmsg(nl_catd, int, int, char *, int); 00128 char *catmsgfmt(const char *, const char *, int, const char *, 00129 const char *, char *, int, char *, char *); 00130 int __catgetmsg_error_code(void); 00131 char *_cat_name(char *, char *, int, int); 00132 char *__cat_path_name(nl_catd); 00133 00134 #ifdef __cplusplus 00135 } 00136 #endif 00137 #endif /* !__NLCATMSG_H__ */ 00138