Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: TBD
*** 21,36 ****
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MONETARY_H
#define _MONETARY_H
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/feature_tests.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
--- 21,37 ----
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+ /*
+ * Copyright 2013 Garrett D'Amore <garrett@damore.org>
+ */
#ifndef _MONETARY_H
#define _MONETARY_H
#include <sys/feature_tests.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
*** 37,48 ****
--- 38,62 ----
#endif
#if defined(__STDC__)
extern ssize_t strfmon(char *_RESTRICT_KYWD, size_t,
const char *_RESTRICT_KYWD, ...);
+
+ #if defined(_XPG7) || (!defined(_STRICT_STRICT_SYMBOLS))
+
+ #ifndef _LOCALE_T
+ #define _LOCALE_T
+ typedef struct locale *locale_t;
+ #endif
+
+ extern ssize_t strfmon_l(char *_RESTRICT_KYWD, size_t, locale_t,
+ const char *_RESTRICT_KYWD, ...);
+ #endif
+
#else
extern ssize_t strfmon();
+ extern ssize_t strfmon_l();
#endif
#ifdef __cplusplus
}
#endif