Skip to content
Snippets Groups Projects
Commit 6dd13aca authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

add a real wcsftime_l implementation

parent 9746b461
No related branches found
No related tags found
No related merge requests found
...@@ -113,6 +113,7 @@ libc += locale/towupper_l.o ...@@ -113,6 +113,7 @@ libc += locale/towupper_l.o
libc += locale/uselocale.o libc += locale/uselocale.o
libc += locale/wcscoll.o libc += locale/wcscoll.o
libc += locale/wcscoll_l.o libc += locale/wcscoll_l.o
libc += locale/wcsftime_l.o
libc += locale/wcsxfrm.o libc += locale/wcsxfrm.o
libc += locale/wcsxfrm_l.o libc += locale/wcsxfrm_l.o
libc += locale/wctrans_l.o libc += locale/wctrans_l.o
......
#include <wchar.h>
#include <time.h>
#include "libc.h"
size_t __wcsftime_l(wchar_t *restrict wcs, size_t n, const wchar_t *restrict f,
const struct tm *restrict tm, locale_t loc)
{
return wcsftime(wcs, n, f, tm);
}
weak_alias(__wcsftime_l, wcsftime_l);
...@@ -51,15 +51,6 @@ extern "C" { ...@@ -51,15 +51,6 @@ extern "C" {
__locale_t __newlocale(int __category_mask, __const char *__locale, __locale_t __newlocale(int __category_mask, __const char *__locale,
__locale_t __base) __THROW; __locale_t __base) __THROW;
char *__nl_langinfo_l(nl_item __item, __locale_t __l); char *__nl_langinfo_l(nl_item __item, __locale_t __l);
wint_t __towlower_l(wint_t __wc, __locale_t __locale) __THROW;
int __wcscoll_l(__const wchar_t *__s1, __const wchar_t *__s2,
__locale_t __loc) __THROW;
int __strcoll_l(__const char *__s1, __const char *__s2, __locale_t __l)
__THROW __attribute_pure__ __nonnull((1, 2, 3));
size_t __wcsftime_l(wchar_t *__restrict __s, size_t __maxsize,
__const wchar_t *__restrict __format,
__const struct tm *__restrict __tp,
__locale_t __loc) __THROW;
int mallopt(int param, int value); int mallopt(int param, int value);
FILE *popen(const char *command, const char *type); FILE *popen(const char *command, const char *type);
int pclose(FILE *stream); int pclose(FILE *stream);
...@@ -302,11 +293,6 @@ __locale_t __newlocale(int category_mask, const char *locale, locale_t base) ...@@ -302,11 +293,6 @@ __locale_t __newlocale(int category_mask, const char *locale, locale_t base)
abort(); abort();
} }
UNIMPL(size_t __wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
__const wchar_t *__restrict __format,
__const struct tm *__restrict __tp,
__locale_t __loc) __THROW)
long sysconf(int name) long sysconf(int name)
{ {
switch (name) { switch (name) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment