summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.syscall/mmap.c
diff options
context:
space:
mode:
authorhunt <hunt>2007-04-23 18:55:39 +0000
committerhunt <hunt>2007-04-23 18:55:39 +0000
commit0e0739046f8dbdcf278d9e7ba5fb7c5b4780d1f2 (patch)
treefda178543e642fff7feaa08cda4c6d8954795b59 /testsuite/systemtap.syscall/mmap.c
parentfe592f24dd6d4885141d067ed6acb8ec82f2d990 (diff)
downloadsystemtap-steved-0e0739046f8dbdcf278d9e7ba5fb7c5b4780d1f2.tar.gz
systemtap-steved-0e0739046f8dbdcf278d9e7ba5fb7c5b4780d1f2.tar.xz
systemtap-steved-0e0739046f8dbdcf278d9e7ba5fb7c5b4780d1f2.zip
2007-04-23 Martin Hunt <hunt@redhat.com>
* mmap.c (main): Use open() instead of creat().
Diffstat (limited to 'testsuite/systemtap.syscall/mmap.c')
-rw-r--r--testsuite/systemtap.syscall/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/systemtap.syscall/mmap.c b/testsuite/systemtap.syscall/mmap.c
index 75563854..80a98902 100644
--- a/testsuite/systemtap.syscall/mmap.c
+++ b/testsuite/systemtap.syscall/mmap.c
@@ -12,7 +12,7 @@ int main()
void * r;
/* create a file with something in it */
- fd = creat("foobar",S_IREAD|S_IWRITE);
+ fd = open("foobar",O_WRONLY|O_CREAT|O_TRUNC, 0600);
// open ("foobar", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 4
lseek(fd, 1024, SEEK_SET);
write(fd, "abcdef", 6);