summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall/readwrite.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-05-04 16:06:14 -0400
committerDave Brolley <brolley@redhat.com>2009-05-04 16:06:14 -0400
commitfac37258fd3c7710407203b206963c7bff57075d (patch)
treef0b053d28c4c9593f872b3004c99729ffb27e18c /testsuite/systemtap.syscall/readwrite.c
parent2035bcd40b17832439df0a1eb28403b99a71b74f (diff)
parent97d1fa6e24d8d4e8ceefc62f0d4a7f93a18e4125 (diff)
downloadsystemtap-steved-fac37258fd3c7710407203b206963c7bff57075d.tar.gz
systemtap-steved-fac37258fd3c7710407203b206963c7bff57075d.tar.xz
systemtap-steved-fac37258fd3c7710407203b206963c7bff57075d.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.syscall/readwrite.c')
-rw-r--r--testsuite/systemtap.syscall/readwrite.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/testsuite/systemtap.syscall/readwrite.c b/testsuite/systemtap.syscall/readwrite.c
index aacd68f2..bd0914cc 100644
--- a/testsuite/systemtap.syscall/readwrite.c
+++ b/testsuite/systemtap.syscall/readwrite.c
@@ -26,56 +26,56 @@ int main()
v[2].iov_len = sizeof(STRING3);
fd = open("foobar1",O_WRONLY|O_CREAT, 0666);
- // open ("foobar1", O_WRONLY|O_CREAT, 0666) = NNNN
+ //staptest// open ("foobar1", O_WRONLY|O_CREAT, 0666) = NNNN
write(fd,"Hello world", 11);
- // write (NNNN, "Hello world", 11) = 11
+ //staptest// write (NNNN, "Hello world", 11) = 11
write(fd,"Hello world abcdefghijklmnopqrstuvwxyz 01234567890123456789", 59);
- // write (NNNN, "Hello world abcdefghijklmnopqrstuvwxyz 012345"..., 59) = 59
+ //staptest// write (NNNN, "Hello world abcdefghijklmnopqrstuvwxyz 012345"..., 59) = 59
pwrite(fd,"Hello Again",11,12);
- // pwrite (NNNN, "Hello Again", 11, 12) = 11
+ //staptest// pwrite (NNNN, "Hello Again", 11, 12) = 11
writev(fd, v, 3);
- // writev (NNNN, XXXX, 3) = 15
+ //staptest// writev (NNNN, XXXX, 3) = 15
lseek(fd, 0, SEEK_SET);
- // lseek (NNNN, 0, SEEK_SET) = 0
+ //staptest// lseek (NNNN, 0, SEEK_SET) = 0
lseek(fd, 1, SEEK_CUR);
- // lseek (NNNN, 1, SEEK_CUR) = 1
+ //staptest// lseek (NNNN, 1, SEEK_CUR) = 1
lseek(fd, -1, SEEK_END);
- // lseek (NNNN, -1, SEEK_END) = 84
+ //staptest// lseek (NNNN, -1, SEEK_END) = 84
#ifdef SYS__llseek
syscall(SYS__llseek, fd, 1, 0, &res, SEEK_SET);
- // llseek (NNNN, 0x1, 0x0, XXXX, SEEK_SET) = 0
+ //staptest// llseek (NNNN, 0x1, 0x0, XXXX, SEEK_SET) = 0
syscall(SYS__llseek, fd, 0, 0, &res, SEEK_SET);
- // llseek (NNNN, 0x0, 0x0, XXXX, SEEK_SET) = 0
+ //staptest// llseek (NNNN, 0x0, 0x0, XXXX, SEEK_SET) = 0
syscall(SYS__llseek, fd, 0, 12, &res, SEEK_CUR);
- // llseek (NNNN, 0x0, 0xc, XXXX, SEEK_CUR) = 0
+ //staptest// llseek (NNNN, 0x0, 0xc, XXXX, SEEK_CUR) = 0
syscall(SYS__llseek, fd, 8, 1, &res, SEEK_END);
- // llseek (NNNN, 0x8, 0x1, XXXX, SEEK_END) = 0
+ //staptest// llseek (NNNN, 0x8, 0x1, XXXX, SEEK_END) = 0
#endif
close (fd);
fd = open("foobar1",O_RDONLY);
- // open ("foobar1", O_RDONLY) = NNNN
+ //staptest// open ("foobar1", O_RDONLY) = NNNN
read(fd, buf, 11);
- // read (NNNN, XXXX, 11) = 11
+ //staptest// read (NNNN, XXXX, 11) = 11
read(fd, buf, 50);
- // read (NNNN, XXXX, 50) = 50
+ //staptest// read (NNNN, XXXX, 50) = 50
pread(fd, buf, 11, 10);
- // pread (NNNN, XXXX, 11, 10) = 11
+ //staptest// pread (NNNN, XXXX, 11, 10) = 11
x[0].iov_base = buf1;
x[0].iov_len = sizeof(STRING1);
@@ -84,7 +84,7 @@ int main()
x[2].iov_base = buf3;
x[2].iov_len = sizeof(STRING3);
readv(fd, x, 3);
- // readv (NNNN, XXXX, 3) = 15
+ //staptest// readv (NNNN, XXXX, 3) = 15
close (fd);