summaryrefslogtreecommitdiffstats
path: root/DNA/linux
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-08 14:23:06 +0200
committertv <tv@xso>2011-09-08 14:23:06 +0200
commitd1c842ec42599c885cf68cab8eade387a313b922 (patch)
tree65d4805c52066f69ca0c40c11236d0030cc21b47 /DNA/linux
parent80bc911bc2a142f9d6a0710453ba7764d74c43a1 (diff)
//DNA/linux/TODO: initial heuristics
Diffstat (limited to 'DNA/linux')
-rw-r--r--DNA/linux/TODO10
1 files changed, 10 insertions, 0 deletions
diff --git a/DNA/linux/TODO b/DNA/linux/TODO
new file mode 100644
index 00000000..64701dac
--- /dev/null
+++ b/DNA/linux/TODO
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+h="/lib/modules/$(uname -r)/build/include/linux/syscalls.h"
+sed -n 's/.*sys_\([^)]\+\)(.*/\1/p' $h | while read f; do
+ x="`( man 3p $f || man 3 $f || man $f ) 2>/dev/null`"
+ echo "`
+ echo "$x" | grep -q ENAMETOOLONG && echo 1 || echo 0``
+ echo "$x" | grep -q EACCES && echo 1 || echo 0``
+ ` $f"
+done