comparison 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
comparison
equal deleted inserted replaced
39:b6114d9a9a98 40:1d50532dce12
1 Call: 1 Call:
2 ----- 2 -----
3 $ ./shdc -c /usr/lib/libm.so sqrt "d)d" 3 3
4 $ ./shdc -c /usr/lib/libm.so sqrt 'd)d' 3
4 1.73205 5 1.73205
5 $ ./shdc -c /usr/lib/libm.so powf "ff)f" 3 2.5 6
7 $ ./shdc -c /usr/lib/libm.so powf 'ff)f' 3 2.5
6 15.5885 8 15.5885
7 $ ./shdc -c /usr/lib/libc.so printf "_eZZi)v" "Hi! Say hi to %s, l%ier!" "Daniel" 8 9
10 $ ./shdc -c /usr/lib/libc.so printf '_eZ_.Zi)v' 'Hi! Say hi to %s, l%ier!' 'Daniel' 8
8 Hi! Say hi to Daniel, l8er! 11 Hi! Say hi to Daniel, l8er!
12
13 $ # FreeBSD syscall where SYS_write == 4; return value from syscall is 18, with
14 $ # write of string results in stdout output of "syscall write test18"
15 $ ./shdc -c "" 4 '_$iZi)i' 1 'syscall write test' 18
16 syscall write test18
17
9 18
10 List: 19 List:
11 ----- 20 -----
12 $ ./shdc -l /usr/lib/libm.so 21 $ ./shdc -l /usr/lib/libm.so
22