diff shell/shdc/examples.txt @ 40:1d50532dce12

- added syscall support to shdc - general cleanup and refactoring
author Tassilo Philipp
date Tue, 14 Apr 2020 17:44:04 +0200
parents 0cfcc391201f
children
line wrap: on
line diff
--- a/shell/shdc/examples.txt	Mon Apr 13 21:58:48 2020 +0200
+++ b/shell/shdc/examples.txt	Tue Apr 14 17:44:04 2020 +0200
@@ -1,12 +1,22 @@
 Call:
 -----
-$ ./shdc -c /usr/lib/libm.so sqrt "d)d" 3
+
+$ ./shdc -c /usr/lib/libm.so sqrt 'd)d' 3
 1.73205
-$ ./shdc -c /usr/lib/libm.so powf "ff)f" 3 2.5
+
+$ ./shdc -c /usr/lib/libm.so powf 'ff)f' 3 2.5
 15.5885
-$ ./shdc -c /usr/lib/libc.so printf "_eZZi)v" "Hi! Say hi to %s, l%ier!" "Daniel" 8
+
+$ ./shdc -c /usr/lib/libc.so printf '_eZ_.Zi)v' 'Hi! Say hi to %s, l%ier!' 'Daniel' 8
 Hi! Say hi to Daniel, l8er!
 
+$ # FreeBSD syscall where SYS_write == 4; return value from syscall is 18, with
+$ # write of string results in stdout output of "syscall write test18"
+$ ./shdc -c "" 4 '_$iZi)i' 1 'syscall write test' 18
+syscall write test18
+
+
 List:
 -----
 $ ./shdc -l /usr/lib/libm.so
+