summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall/sendfile.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2010-02-15 13:59:24 -0500
committerDave Brolley <brolley@redhat.com>2010-02-15 13:59:24 -0500
commited8abf2763d68a4404477e6b09fee0fe4d591970 (patch)
treea62ef645c92a11d334115eb9bb72e0271fc75bc5 /testsuite/systemtap.syscall/sendfile.c
parent27dc09b13650456b7b3efd45c07690083e526b6d (diff)
parentc8408b459b88a5aa5f4325e690aef95b5da7c2eb (diff)
downloadsystemtap-steved-ed8abf2763d68a4404477e6b09fee0fe4d591970.tar.gz
systemtap-steved-ed8abf2763d68a4404477e6b09fee0fe4d591970.tar.xz
systemtap-steved-ed8abf2763d68a4404477e6b09fee0fe4d591970.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.syscall/sendfile.c')
-rw-r--r--testsuite/systemtap.syscall/sendfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/systemtap.syscall/sendfile.c b/testsuite/systemtap.syscall/sendfile.c
index 690d078e..a21694fe 100644
--- a/testsuite/systemtap.syscall/sendfile.c
+++ b/testsuite/systemtap.syscall/sendfile.c
@@ -14,7 +14,7 @@ int main ()
int write_fd;
struct stat stat_buf;
off_t offset = 0;
- char buff[512];
+ char buff[22]; // Note below 22 == EINVAL
int ret;
memset(buff, 5, sizeof(buff));
@@ -32,11 +32,11 @@ int main ()
write_fd = creat("foobar2",S_IREAD|S_IWRITE|S_IRWXO);
/*
- * For kernel2.6 the write_fd has to be a socket otherwise
- * sendfile will fail. So we test for failure here.
+ * For 2.6 the write_fd had to be a socket otherwise
+ * sendfile would fail. So we also test for failure here.
*/
ret = sendfile (write_fd, read_fd, &offset, stat_buf.st_size);
- //staptest// sendfile (NNNN, NNNN, XXXX, 512) = -22 (EINVAL)
+ //staptest// sendfile (NNNN, NNNN, XXXX, 22) = -?22
close (read_fd);
close (write_fd);