summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall/trunc.c
diff options
context:
space:
mode:
authorhunt <hunt>2007-06-21 04:12:06 +0000
committerhunt <hunt>2007-06-21 04:12:06 +0000
commitcb7f0d1a2afef80d045efd2150ba3721efd84c47 (patch)
treed14c94a4fdee80dd21a2742700ba1892bec352c0 /testsuite/systemtap.syscall/trunc.c
parent66f08017b92f685f9e62f76731c9cfc79a53f0b0 (diff)
downloadsystemtap-steved-cb7f0d1a2afef80d045efd2150ba3721efd84c47.tar.gz
systemtap-steved-cb7f0d1a2afef80d045efd2150ba3721efd84c47.tar.xz
systemtap-steved-cb7f0d1a2afef80d045efd2150ba3721efd84c47.zip
2007-06-21 Martin Hunt <hunt@redhat.com>
* chmod.c, dir.c, mmap.c, net1.c, readwrite.c, stat.c, sync.c, trunc.c: Eliminated hardcoded fd numbers.
Diffstat (limited to 'testsuite/systemtap.syscall/trunc.c')
-rw-r--r--testsuite/systemtap.syscall/trunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/systemtap.syscall/trunc.c b/testsuite/systemtap.syscall/trunc.c
index ff20cb39..39a524a7 100644
--- a/testsuite/systemtap.syscall/trunc.c
+++ b/testsuite/systemtap.syscall/trunc.c
@@ -13,7 +13,7 @@ int main()
fd = creat("foobar",S_IREAD|S_IWRITE);
ftruncate(fd, 1024);
- // ftruncate (4, 1024) = 0
+ // ftruncate (NNNN, 1024) = 0
close(fd);
truncate("foobar", 2048);