From 14ae6df1824a43cf5320f32f60b2300eb30ec9fe Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 12 May 2017 10:13:18 -0600 Subject: [PATCH] locale.h: Add a bogus definition of locale_t --- drivers/README.txt | 10 +++++----- include/cxx/clocale | 1 + include/locale.h | 10 ++++++++++ 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/README.txt b/drivers/README.txt index ec65ccbe8e..b5df427b9c 100644 --- a/drivers/README.txt +++ b/drivers/README.txt @@ -12,11 +12,11 @@ Contents: Files in this directory ^^^^^^^^^^^^^^^^^^^^^^^ -dev_null.c and dev_zero.c - These files provide the standard /dev/null and /dev/zero devices. - See include/nuttx/fs/fs.h for functions that should be called if you - want to register these devices (devnull_register() and - devzero_register()). +dev_null.c, dev_urandom, and dev_zero.c + These files provide the standard /dev/null, /dev/urandom, and /dev/zero + devices. See include/nuttx/drivers/driers.h for prototypes of functions + that should be called if you want to register these devices + (devnull_register(), devurandom_register(), and devzero_register()). pwm.c Provides the "upper half" of a pulse width modulation (PWM) driver. diff --git a/include/cxx/clocale b/include/cxx/clocale index 154bf8040a..498d4041b7 100644 --- a/include/cxx/clocale +++ b/include/cxx/clocale @@ -48,6 +48,7 @@ namespace std { + using ::locale_t; using ::setlocale; using ::localeconv; } diff --git a/include/locale.h b/include/locale.h index 16923e4a3d..37d334173a 100644 --- a/include/locale.h +++ b/include/locale.h @@ -59,6 +59,10 @@ * Public Type Definitions ****************************************************************************/ +/* OpenGroup.org: "The locale.h header shall define the lconv structure, + * which shall include at least the following members. ..." + */ + struct lconv { FAR char *decimal_point; @@ -87,6 +91,12 @@ struct lconv FAR char int_p_sign_posn; }; +/* OpenGroup.org: The locale.h header shall define the locale_t type, + * representing a locale object + */ + +typedef FAR void *locale_t; + /**************************************************************************** * Public Function Prototypes ****************************************************************************/