From 0e0739046f8dbdcf278d9e7ba5fb7c5b4780d1f2 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 23 Apr 2007 18:55:39 +0000 Subject: 2007-04-23 Martin Hunt * mmap.c (main): Use open() instead of creat(). --- testsuite/systemtap.syscall/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite/systemtap.syscall/mmap.c') 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); -- cgit