libc: forgot to add these
authorAlan Cox <alan@linux.intel.com>
Sat, 24 Jan 2015 00:21:35 +0000 (00:21 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 24 Jan 2015 00:21:35 +0000 (00:21 +0000)
Library/include/libintl.h [new file with mode: 0644]
Library/libs/stime.c [new file with mode: 0644]

diff --git a/Library/include/libintl.h b/Library/include/libintl.h
new file mode 100644 (file)
index 0000000..1a00715
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef _LIBINTL_H
+#define _LIBINTL_H
+
+#define _(s)   (s)
+#define N_(s)
+
+extern char *bindtextdomain(const char *domainname, const char *dirname);
+
+extern char *gettext(const char *msgid);
+extern char *dgettext(const char *domainname, const char *msgid);
+extern char *dcgettext(const char *domainnanem, const char *msgid, int category);
+
+extern char *ngettext(const char *msgid, const char *msgid_plural, unsigned long n);
+extern char *dngettext(const char *domainname, const char *msgid, const char *msgid_plural, unsigned long n);
+extern char *dcngettext(const char *domainname, const char *msgid, const char *msgid_plural, unsigned long n, int category);
+
+extern char *textdomain(const char *domainname);
+
+#endif
diff --git a/Library/libs/stime.c b/Library/libs/stime.c
new file mode 100644 (file)
index 0000000..ab596c9
--- /dev/null
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <unistd.h>
+
+/*
+ *     Wrap the kernel time call so that it also
+ *     returns a time_t (longlong). The kernel ABI
+ *     doesn't deal in 64bit return values.
+ */
+int stime(const time_t *t)
+{
+  __ktime_t tmp;
+  tmp.time = *t;
+#if defined(NO_64BIT)
+  tmp.pad = 0;
+#endif
+  return _stime(&tmp, 0);
+}