LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/resource.c
LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/pty.c
LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/time.c|glue
+LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/locale.c
################################################################################
# Newlib/libc code -- argz
extern "C" {
#endif
+#include <stddef.h>
+
#define __NEED_mode_t
#define __NEED_size_t
#define __NEED_off_t
--- /dev/null
+#include <string.h>
+#include <stddef.h>
+
+int strcoll_l(const char *s1, const char *s2,
+ locale_t locale)
+{
+ return 0;
+}
+
+size_t strxfrm_l(char *restrict s1, const char *restrict s2,
+ size_t n, locale_t locale)
+{
+ return 0;
+}
+
+int wcscoll_l(const wchar_t *ws1, const wchar_t *ws2,
+ locale_t locale)
+{
+ return 0;
+}
+
+size_t wcsxfrm_l(wchar_t *restrict ws1, const wchar_t *restrict ws2,
+ size_t n, locale_t locale)
+{
+ return 0;
+}
#include <sys/types.h>
#include <uk/alloc.h>
+#include <sys/mman.h>
/* Forward to libucallocator calls */
void *malloc(size_t size)
{
return uk_free(uk_alloc_get_default(), ptr);
}
+
+int mprotect(void *addr __unused, size_t len __unused, int prot __unused)
+{
+ return 0;
+}
return 0;
}
+long sysconf(int name __unused)
+{
+ return 0;
+}
}
return 0;
}
+
+int clock_gettime(clockid_t clk_id __unused, struct timespec *tp __unused)
+{
+ return 0;
+}