]> sourceware.org Git - systemtap.git/commitdiff
2007-04-23 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Mon, 23 Apr 2007 18:55:39 +0000 (18:55 +0000)
committerhunt <hunt>
Mon, 23 Apr 2007 18:55:39 +0000 (18:55 +0000)
* mmap.c (main): Use open() instead of creat().

testsuite/systemtap.syscall/ChangeLog
testsuite/systemtap.syscall/mmap.c

index be1fa509ccecead22819769e0842658e372edbb6..f9f4030e3ecfe193e60349fa51be4eb425c312a2 100644 (file)
@@ -1,5 +1,9 @@
 2007-04-23  Martin Hunt  <hunt@redhat.com>
 
+       * mmap.c (main): Use open() instead of creat().
+
+2007-04-23  Martin Hunt  <hunt@redhat.com>
+       
        * syscall.exp (test_procedure): For 64-bit machines, first
        run with "-m64" and then with "-m32".
 
index 75563854fb89535882bae446c2ada9db463681f7..80a98902758e852cea82c7fd8d3660c882b93a5e 100644 (file)
@@ -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);
This page took 0.027768 seconds and 5 git commands to generate.