[klibc] [PATCH] sysinfo() support

Kay Sievers kay.sievers at vrfy.org
Sat Apr 3 01:57:11 PST 2004


Here is what we need for udev to get the seconds since uptime.
It implements the linux sysinfo system call.

thanks,
Kay
-------------- next part --------------
diff -Nru a/klibc/SYSCALLS b/klibc/SYSCALLS
--- a/klibc/SYSCALLS	Sat Apr  3 01:37:12 2004
+++ b/klibc/SYSCALLS	Sat Apr  3 01:37:12 2004
@@ -143,6 +143,7 @@
 <!ia64> int query_module(const char *, int, void *, size_t, size_t)
 int reboot::__reboot(int, int, int, void *)
 int syslog::klogctl(int, char *, int)
+int sysinfo(struct sysinfo *)
 
 #
 # Low-level I/O (generally architecture-specific)
diff -Nru a/klibc/include/sys/sysinfo.h b/klibc/include/sys/sysinfo.h
--- /dev/null	Wed Dec 31 16:00:00 1969
+++ b/klibc/include/sys/sysinfo.h	Sat Apr  3 01:37:12 2004
@@ -0,0 +1,12 @@
+/*
+ * sys/sysinfo.h
+ */
+
+#ifndef _SYS_SYSINFO_H
+#define _SYS_SYSINFO_H
+
+#include <linux/kernel.h>
+
+extern int sysinfo (struct sysinfo *info);
+
+#endif /* _SYS_SYSINFO_H */


More information about the klibc mailing list