* mmap.c (main): Use open() instead of creat().
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".
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);