]> Zhao Yanbai Git Server - minix.git/commitdiff
Remove obsolete mstats call
authorErik van der Kouwe <erik@minix3.org>
Wed, 23 Jun 2010 10:43:08 +0000 (10:43 +0000)
committerErik van der Kouwe <erik@minix3.org>
Wed, 23 Jun 2010 10:43:08 +0000 (10:43 +0000)
lib/libc/other/Makefile.inc
lib/libc/other/mstats.c [deleted file]

index 60a24aa84d5bb2c6ca8c947a051e007261ef7b58..77965f7b70f620b5f599740c2ccf1720cdc7318d 100644 (file)
@@ -74,7 +74,6 @@ SRCS+=  \
        lsearch.c \
        memccpy.c \
        minix_rs.c \
-       mstats.c \
        mtab.c \
        nlist.c \
        paramvalue.c \
diff --git a/lib/libc/other/mstats.c b/lib/libc/other/mstats.c
deleted file mode 100644 (file)
index 6bab41f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <minix/config.h>
-
-#if ENABLE_MESSAGE_STATS
-
-#include <lib.h>
-#include <unistd.h>
-
-PUBLIC int mstats(struct message_statentry *ms, int entries, int reset)
-{
-       message m;
-
-       m.m1_i1 = entries;
-       m.m1_i2 = reset;
-       m.m1_p1 = (void *) ms;
-
-       if(_syscall(PM_PROC_NR, MSTATS, &m) < 0) {
-               return -1;
-       }
-
-       return m.m_type;
-}
-
-#endif