aboutsummaryrefslogtreecommitdiffstats
path: root/ports/linux
diff options
context:
space:
mode:
Diffstat (limited to 'ports/linux')
-rw-r--r--ports/linux/guts/__openat64_2.c4
-rw-r--r--ports/linux/guts/open64.c4
-rw-r--r--ports/linux/guts/openat64.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/ports/linux/guts/__openat64_2.c b/ports/linux/guts/__openat64_2.c
index 8772115..e970df7 100644
--- a/ports/linux/guts/__openat64_2.c
+++ b/ports/linux/guts/__openat64_2.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008-2010 Wind River Systems; see
+ * Copyright (c) 2008-2010,2012 Wind River Systems; see
* guts/COPYRIGHT for information.
*
* static int
@@ -7,7 +7,7 @@
* int rc = -1;
*/
- rc = wrap_openat(dirfd, path, flags, O_LARGEFILE);
+ rc = wrap_openat(dirfd, path, flags | O_LARGEFILE, 0);
/* return rc;
* }
diff --git a/ports/linux/guts/open64.c b/ports/linux/guts/open64.c
index adeb885..8028ede 100644
--- a/ports/linux/guts/open64.c
+++ b/ports/linux/guts/open64.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008-2010 Wind River Systems; see
+ * Copyright (c) 2008-2010,2012 Wind River Systems; see
* guts/COPYRIGHT for information.
*
* static int
@@ -7,7 +7,7 @@
* int rc = -1;
*/
- rc = wrap_openat(AT_FDCWD, path, flags, mode | O_LARGEFILE);
+ rc = wrap_openat(AT_FDCWD, path, flags | O_LARGEFILE, mode);
/* return rc;
* }
diff --git a/ports/linux/guts/openat64.c b/ports/linux/guts/openat64.c
index 726ec6d..8dedcbf 100644
--- a/ports/linux/guts/openat64.c
+++ b/ports/linux/guts/openat64.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008-2010 Wind River Systems; see
+ * Copyright (c) 2008-2010,2012 Wind River Systems; see
* guts/COPYRIGHT for information.
*
* static int
@@ -7,7 +7,7 @@
* int rc = -1;
*/
- rc = wrap_openat(dirfd, path, flags, mode | O_LARGEFILE);
+ rc = wrap_openat(dirfd, path, flags | O_LARGEFILE, mode);
/* return rc;
* }