Module: xenomai-forge
Branch: next
Commit: 308eb107e8d84ee13957e574c8c8826fdb48bb73
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=308eb107e8d84ee13957e574c8c8826fdb48bb73

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Aug 30 11:33:42 2014 +0200

lib/cobalt: introduce cobalt_sysconf service

---

 include/cobalt/sys/cobalt.h |    3 +++
 lib/cobalt/internal.c       |    7 ++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/include/cobalt/sys/cobalt.h b/include/cobalt/sys/cobalt.h
index 544d1a3..2eaa421 100644
--- a/include/cobalt/sys/cobalt.h
+++ b/include/cobalt/sys/cobalt.h
@@ -30,6 +30,7 @@
 #include <boilerplate/list.h>
 #include <cobalt/uapi/kernel/synch.h>
 #include <cobalt/uapi/kernel/vdso.h>
+#include <cobalt/uapi/sysconf.h>
 #include <cobalt/uapi/mutex.h>
 #include <cobalt/uapi/event.h>
 #include <cobalt/uapi/monitor.h>
@@ -57,6 +58,8 @@ extern "C" {
 
 int cobalt_extend(unsigned int magic);
 
+int cobalt_sysconf(int option, void *buf, size_t bufsz);
+
 int cobalt_thread_stat(pid_t pid,
                       struct cobalt_threadstat *stat);
 
diff --git a/lib/cobalt/internal.c b/lib/cobalt/internal.c
index cff4b9c..8fae37e 100644
--- a/lib/cobalt/internal.c
+++ b/lib/cobalt/internal.c
@@ -35,7 +35,12 @@
 
 int cobalt_extend(unsigned int magic)
 {
-       return XENOMAI_SYSCALL1( sc_cobalt_extend, magic);
+       return XENOMAI_SYSCALL1(sc_cobalt_extend, magic);
+}
+
+int cobalt_sysconf(int option, void *buf, size_t bufsz)
+{
+       return XENOMAI_SYSCALL3(sc_cobalt_sysconf, option, buf, bufsz);
 }
 
 void cobalt_thread_harden(void)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to