nlcatmsg.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef __NLCATMSG_H__
00038 #define __NLCATMSG_H__
00039
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043
00044
00045
00046
00047
00048
00049
00050
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
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
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
00102 #ifndef NL_EXPSET
00103 #define NL_EXPSET NL_SETD
00104 #endif
00105 #ifndef NL_MSGSET
00106 #define NL_MSGSET NL_SETD
00107 #endif
00108
00109
00110
00111 #define MSG_FORMAT "MSG_FORMAT"
00112 #define D_MSG_FORMAT "%G-%N %C: %S %P\n %M\n"
00113
00114
00115 #define NL_ERR_MAXOPEN -2
00116
00117 #define NL_ERR_MAP -3
00118 #define NL_ERR_MALLOC -4
00119 #define NL_ERR_HEADER -5
00120
00121
00122 #define NL_ERR_ARGERR -6
00123 #define NL_ERR_BADSET -7
00124 #define NL_ERR_NOMSG -8
00125 #define NL_ERR_BADTYPE -9
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
00138