diff options
Diffstat (limited to 'other/Kermit/test/test_systemmap.cpp')
| -rw-r--r-- | other/Kermit/test/test_systemmap.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/other/Kermit/test/test_systemmap.cpp b/other/Kermit/test/test_systemmap.cpp new file mode 100644 index 0000000..41179c1 --- /dev/null +++ b/other/Kermit/test/test_systemmap.cpp | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #include <SystemMap.hpp> | ||
| 2 | #include <string> | ||
| 3 | #include <iostream> | ||
| 4 | |||
| 5 | |||
| 6 | int main () | ||
| 7 | { | ||
| 8 | SystemMap a = SystemMap ("System.map"); | ||
| 9 | cout.setf (ios::hex, ios::basefield); | ||
| 10 | |||
| 11 | cout << "sys_fork " << a[string ("sys_fork")] << endl; | ||
| 12 | cout << "sys_write " << a[string ("sys_write")] << endl; | ||
| 13 | cout << "init " << a[string ("init")] << endl; | ||
| 14 | return 0; | ||
| 15 | } | ||
