annotate shell/shdc/examples.txt @ 58:e4bf6e44fbf5

fixes to test code
author Tassilo Philipp
date Mon, 08 Feb 2021 10:15:27 +0100
parents 1d50532dce12
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 Call:
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 -----
40
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
3
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
4 $ ./shdc -c /usr/lib/libm.so sqrt 'd)d' 3
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 1.73205
40
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
6
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
7 $ ./shdc -c /usr/lib/libm.so powf 'ff)f' 3 2.5
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 15.5885
40
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
9
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
10 $ ./shdc -c /usr/lib/libc.so printf '_eZ_.Zi)v' 'Hi! Say hi to %s, l%ier!' 'Daniel' 8
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 Hi! Say hi to Daniel, l8er!
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12
40
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
13 $ # FreeBSD syscall where SYS_write == 4; return value from syscall is 18, with
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
14 $ # write of string results in stdout output of "syscall write test18"
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
15 $ ./shdc -c "" 4 '_$iZi)i' 1 'syscall write test' 18
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
16 syscall write test18
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
17
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
18
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 List:
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 -----
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 $ ./shdc -l /usr/lib/libm.so
40
1d50532dce12 - added syscall support to shdc
Tassilo Philipp
parents: 0
diff changeset
22