summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall/readwrite.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-05-05 14:01:51 -0400
committerDave Brolley <brolley@redhat.com>2009-05-05 14:01:51 -0400
commitf80f9e60d170329f4c3210d28914daa732ce0a48 (patch)
treebf7c5142c22a35aa8b56adfcd4812873a0b2efca /testsuite/systemtap.syscall/readwrite.c
parentb03d329d5ad9d22d684b61859971a7b12b5e5104 (diff)
parent7c4e9d57761b10058d36756df3b39039e292812d (diff)
downloadsystemtap-steved-f80f9e60d170329f4c3210d28914daa732ce0a48.tar.gz
systemtap-steved-f80f9e60d170329f4c3210d28914daa732ce0a48.tar.xz
systemtap-steved-f80f9e60d170329f4c3210d28914daa732ce0a48.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Conflicts: modsign.cxx runtime/staprun/modverify.c runtime/staprun/staprun_funcs.c stap-authorize-server-cert stap-authorize-signing-cert stap-serverd systemtap.spec
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);