summaryrefslogtreecommitdiff
path: root/data/system-cmds/dmesg.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/system-cmds/dmesg.diff')
-rw-r--r--data/system-cmds/dmesg.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/data/system-cmds/dmesg.diff b/data/system-cmds/dmesg.diff
new file mode 100644
index 000000000..6c549c1ed
--- /dev/null
+++ b/data/system-cmds/dmesg.diff
@@ -0,0 +1,20 @@
+diff -ru system_cmds-431/dmesg.tproj/dmesg.c system_cmds-431+iPhone/dmesg.tproj/dmesg.c
+--- system_cmds-431/dmesg.tproj/dmesg.c 2006-05-05 04:12:18.000000000 +0000
++++ system_cmds-431+iPhone/dmesg.tproj/dmesg.c 2008-02-27 23:48:08.000000000 +0000
+@@ -57,7 +57,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <vis.h>
+-#include <libproc.h>
+
+ void
+ usage() {
+@@ -73,7 +72,7 @@
+ if (argc > 1)
+ usage();
+
+- if ((data_size = proc_kmsgbuf(msgbuf, sizeof(msgbuf))) == 0){
++ if ((data_size = syscall(336, 4, 0, 0, (uint64_t) 0, msgbuf, sizeof(msgbuf))) == -1){
+ perror("Unable to obtain kernel buffer");
+ usage();
+ }