summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McDonald <danmcd@omniti.com>2014-07-16 00:55:15 -0400
committerDan McDonald <danmcd@omniti.com>2014-07-16 09:45:02 -0400
commit732efd5515b5788339f3da4db04de7cea0f79c86 (patch)
treea3ae4f0933e34138e7992c08daaa213585d2560b
parentfec13dd95833a1b958477320d32721f886a94f50 (diff)
downloadillumos-joyent-732efd5515b5788339f3da4db04de7cea0f79c86.tar.gz
2964 need POSIX 2008 locale object support (more C++ fixes)
-rw-r--r--usr/src/head/ctype.h2
-rw-r--r--usr/src/head/langinfo.h2
-rw-r--r--usr/src/head/locale.h2
-rw-r--r--usr/src/head/monetary.h2
-rw-r--r--usr/src/head/string.h2
-rw-r--r--usr/src/head/strings.h2
-rw-r--r--usr/src/head/time.h2
-rw-r--r--usr/src/head/wchar.h2
-rw-r--r--usr/src/head/wctype.h2
-rw-r--r--usr/src/head/xlocale.h2
-rw-r--r--usr/src/lib/libc/port/locale/localeimpl.c2
-rw-r--r--usr/src/lib/libc/port/locale/localeimpl.h4
12 files changed, 13 insertions, 13 deletions
diff --git a/usr/src/head/ctype.h b/usr/src/head/ctype.h
index 23b1e67c7b..8f15d0404b 100644
--- a/usr/src/head/ctype.h
+++ b/usr/src/head/ctype.h
@@ -94,7 +94,7 @@ extern int _toupper(int);
#ifndef _LOCALE_T
#define _LOCALE_T
-typedef struct locale *locale_t;
+typedef struct _locale *locale_t;
#endif
extern int isalnum_l(int, locale_t);
diff --git a/usr/src/head/langinfo.h b/usr/src/head/langinfo.h
index 2a61edd983..e5aa92dfc9 100644
--- a/usr/src/head/langinfo.h
+++ b/usr/src/head/langinfo.h
@@ -155,7 +155,7 @@ char *nl_langinfo(); /* get a string from the database */
#if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
#ifndef _LOCALE_T
#define _LOCALE_T
-typedef struct locale *locale_t;
+typedef struct _locale *locale_t;
#endif
#if defined(__STDC__)
diff --git a/usr/src/head/locale.h b/usr/src/head/locale.h
index 3c98df2413..8fd6773bb5 100644
--- a/usr/src/head/locale.h
+++ b/usr/src/head/locale.h
@@ -81,7 +81,7 @@ extern "C" {
#ifndef _LOCALE_T
#define _LOCALE_T
-typedef struct locale *locale_t;
+typedef struct _locale *locale_t;
#endif
#if defined(__STDC__)
diff --git a/usr/src/head/monetary.h b/usr/src/head/monetary.h
index 1ef02ca8da..e33002c7e0 100644
--- a/usr/src/head/monetary.h
+++ b/usr/src/head/monetary.h
@@ -45,7 +45,7 @@ extern ssize_t strfmon(char *_RESTRICT_KYWD, size_t,
#ifndef _LOCALE_T
#define _LOCALE_T
-typedef struct locale *locale_t;
+typedef struct _locale *locale_t;
#endif
extern ssize_t strfmon_l(char *_RESTRICT_KYWD, size_t, locale_t,
diff --git a/usr/src/head/string.h b/usr/src/head/string.h
index 99c941c5bd..ebdb64fb2a 100644
--- a/usr/src/head/string.h
+++ b/usr/src/head/string.h
@@ -97,7 +97,7 @@ extern char *strsignal(int);
#ifndef _LOCALE_T
#define _LOCALE_T
-typedef struct locale *locale_t;
+typedef struct _locale *locale_t;
#endif
extern int strcoll_l(const char *, const char *, locale_t);
diff --git a/usr/src/head/strings.h b/usr/src/head/strings.h
index ef466cc4fa..1cbbbea0ac 100644
--- a/usr/src/head/strings.h
+++ b/usr/src/head/strings.h
@@ -67,7 +67,7 @@ extern int strncasecmp(const char *, const char *, size_t);
#if defined(_XPG7)
#ifndef _LOCALE_T
#define _LOCALE_T
-typedef struct locale *locale_t;
+typedef struct _locale *locale_t;
#endif
extern int strcasecmp_l(const char *, const char *, locale_t);
extern int strncasecmp_l(const char *, const char *, size_t, locale_t);
diff --git a/usr/src/head/time.h b/usr/src/head/time.h
index 523b080c98..551a291330 100644
--- a/usr/src/head/time.h
+++ b/usr/src/head/time.h
@@ -377,7 +377,7 @@ extern char *ctime_r();
#ifndef _LOCALE_T
#define _LOCALE_T
-typedef struct locale *locale_t;
+typedef struct _locale *locale_t;
#endif
#if defined(__STDC__)
diff --git a/usr/src/head/wchar.h b/usr/src/head/wchar.h
index 47fb64342a..dcb0c1bdfb 100644
--- a/usr/src/head/wchar.h
+++ b/usr/src/head/wchar.h
@@ -172,7 +172,7 @@ using std::wctype;
#ifndef _LOCALE_T
#define _LOCALE_T
-typedef struct locale *locale_t;
+typedef struct _locale *locale_t;
#endif
extern size_t wcsnlen(const wchar_t *, size_t);
diff --git a/usr/src/head/wctype.h b/usr/src/head/wctype.h
index 6e578ce12c..f8030e96e3 100644
--- a/usr/src/head/wctype.h
+++ b/usr/src/head/wctype.h
@@ -147,7 +147,7 @@ extern int iswspecial();
#ifndef _LOCALE_T
#define _LOCALE_T
-typedef struct locale *locale_t;
+typedef struct _locale *locale_t;
#endif
#if defined(__STDC__)
diff --git a/usr/src/head/xlocale.h b/usr/src/head/xlocale.h
index 9179cf9761..e72a3ee33c 100644
--- a/usr/src/head/xlocale.h
+++ b/usr/src/head/xlocale.h
@@ -45,7 +45,7 @@ extern "C" {
#ifndef _LOCALE_T
#define _LOCALE_T
-typedef struct locale *locale_t;
+typedef struct _locale *locale_t;
#endif
extern int mbsinit_l(const mbstate_t *, locale_t);
diff --git a/usr/src/lib/libc/port/locale/localeimpl.c b/usr/src/lib/libc/port/locale/localeimpl.c
index a7be44a31b..c1817060bc 100644
--- a/usr/src/lib/libc/port/locale/localeimpl.c
+++ b/usr/src/lib/libc/port/locale/localeimpl.c
@@ -98,7 +98,7 @@ extern struct lc_time lc_time_posix;
extern struct lc_ctype lc_ctype_posix;
extern struct lc_collate lc_collate_posix;
-static struct locale posix_locale = {
+static struct _locale posix_locale = {
/* locdata */
.locdata = {
&__posix_ctype_locdata,
diff --git a/usr/src/lib/libc/port/locale/localeimpl.h b/usr/src/lib/libc/port/locale/localeimpl.h
index 94045209f8..857666bf14 100644
--- a/usr/src/lib/libc/port/locale/localeimpl.h
+++ b/usr/src/lib/libc/port/locale/localeimpl.h
@@ -55,9 +55,9 @@ struct locdata {
};
-struct locale {
+struct _locale {
struct locdata *locdata[LC_ALL];
- struct locale *next;
+ struct _locale *next;
int on_list; /* on linked list */
char locname[(ENCODING_LEN+1)*NLOCDATA + 1];