mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
d338200e2b
Implemented the missing POSIX functions in <locale.h>: newlocale, duplocale, uselocale, and freelocale, and also provided missing type definitions for <locale.h>. Implemented missing POSIX locale-based function variants. Modified LocaleBackend so that it could support thread-local locales. Some glibc-like locale-related variables supporting ctype and printf family of functions have also been updated to reflect the thread-local variables present in the latest glibc sources. As there have been some modifications to global symbols in libroot, libroot_stubs.c has been regenerated. Bug: #17168 Change-Id: Ibf296c58c47d42d1d1dfb2ce64042442f2679431 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5351 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
24 lines
471 B
C
24 lines
471 B
C
/*
|
|
* Copyright 2010-2012 Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _MONETARY_H_
|
|
#define _MONETARY_H_
|
|
|
|
|
|
#include <locale_t.h>
|
|
#include <stddef.h>
|
|
#include <sys/cdefs.h>
|
|
#include <sys/types.h>
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
extern ssize_t strfmon(char* s, size_t maxsize, const char* format, ...);
|
|
extern ssize_t strfmon_l(char* s, size_t maxsize, locale_t locale, const char* format, ...);
|
|
|
|
__END_DECLS
|
|
|
|
|
|
#endif /* _MONETARY_H_ */
|