Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch Add a few missing open(2) flags (LINUX...



details:   https://anonhg.NetBSD.org/src/rev/71ab4938aec0
branches:  trunk
changeset: 330162:71ab4938aec0
user:      njoly <njoly%NetBSD.org@localhost>
date:      Wed Jun 25 16:30:42 2014 +0000

description:
Add a few missing open(2) flags (LINUX_O_*). Fix alpha wrong values.

diffstat:

 sys/compat/linux/arch/alpha/linux_fcntl.h   |  10 +++++++---
 sys/compat/linux/arch/amd64/linux_fcntl.h   |   6 +++++-
 sys/compat/linux/arch/arm/linux_fcntl.h     |   6 +++++-
 sys/compat/linux/arch/i386/linux_fcntl.h    |   6 +++++-
 sys/compat/linux/arch/m68k/linux_fcntl.h    |   5 ++++-
 sys/compat/linux/arch/mips/linux_fcntl.h    |   6 +++++-
 sys/compat/linux/arch/powerpc/linux_fcntl.h |   6 +++++-
 7 files changed, 36 insertions(+), 9 deletions(-)

diffs (148 lines):

diff -r 53ecf754465e -r 71ab4938aec0 sys/compat/linux/arch/alpha/linux_fcntl.h
--- a/sys/compat/linux/arch/alpha/linux_fcntl.h Wed Jun 25 16:14:43 2014 +0000
+++ b/sys/compat/linux/arch/alpha/linux_fcntl.h Wed Jun 25 16:30:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_fcntl.h,v 1.4 2010/11/02 18:01:25 chs Exp $      */
+/*     $NetBSD: linux_fcntl.h,v 1.5 2014/06/25 16:30:42 njoly Exp $    */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -45,10 +45,14 @@
 #define LINUX_O_TRUNC          0x000400
 #define LINUX_O_EXCL           0x000800
 #define LINUX_O_NDELAY         LINUX_O_NONBLOCK
+#define LINUX_O_NOCTTY         0x001000
 #define LINUX_FASYNC           0x002000
 #define LINUX_O_SYNC           0x004000
-#define LINUX_O_NOCTTY         0x008000
-#define LINUX_O_DIRECTORY      0x040000
+#define LINUX_O_DIRECTORY      0x008000
+#define LINUX_O_NOFOLLOW       0x010000
+#define LINUX_O_LARGEFILE      0x020000
+#define LINUX_O_DIRECT         0x080000
+#define LINUX_O_NOATIME                0x100000
 #define LINUX_O_CLOEXEC                0x200000
 
 /* fcntl(2) operations */
diff -r 53ecf754465e -r 71ab4938aec0 sys/compat/linux/arch/amd64/linux_fcntl.h
--- a/sys/compat/linux/arch/amd64/linux_fcntl.h Wed Jun 25 16:14:43 2014 +0000
+++ b/sys/compat/linux/arch/amd64/linux_fcntl.h Wed Jun 25 16:30:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_fcntl.h,v 1.4 2010/11/02 18:01:25 chs Exp $ */
+/*     $NetBSD: linux_fcntl.h,v 1.5 2014/06/25 16:30:42 njoly Exp $ */
 
 /*-
  * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved.
@@ -50,7 +50,11 @@
 #define LINUX_O_NDELAY         LINUX_O_NONBLOCK
 #define LINUX_O_SYNC           0x01000
 #define LINUX_FASYNC           0x02000
+#define LINUX_O_DIRECT         0x04000
+#define LINUX_O_LARGEFILE      0x08000
 #define LINUX_O_DIRECTORY      0x10000
+#define LINUX_O_NOFOLLOW       0x20000
+#define LINUX_O_NOATIME                0x40000
 #define LINUX_O_CLOEXEC                0x80000
 
 /* fcntl(2) operations */
diff -r 53ecf754465e -r 71ab4938aec0 sys/compat/linux/arch/arm/linux_fcntl.h
--- a/sys/compat/linux/arch/arm/linux_fcntl.h   Wed Jun 25 16:14:43 2014 +0000
+++ b/sys/compat/linux/arch/arm/linux_fcntl.h   Wed Jun 25 16:30:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_fcntl.h,v 1.4 2010/11/02 18:01:25 chs Exp $      */
+/*     $NetBSD: linux_fcntl.h,v 1.5 2014/06/25 16:30:42 njoly Exp $    */
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -49,6 +49,10 @@
 #define LINUX_O_SYNC           0x01000
 #define LINUX_FASYNC           0x02000
 #define LINUX_O_DIRECTORY      0x04000
+#define LINUX_O_NOFOLLOW       0x08000
+#define LINUX_O_DIRECT         0x10000
+#define LINUX_O_LARGEFILE      0x20000
+#define LINUX_O_NOATIME                0x40000
 #define LINUX_O_CLOEXEC                0x80000
 
 /* fcntl(2) operations */
diff -r 53ecf754465e -r 71ab4938aec0 sys/compat/linux/arch/i386/linux_fcntl.h
--- a/sys/compat/linux/arch/i386/linux_fcntl.h  Wed Jun 25 16:14:43 2014 +0000
+++ b/sys/compat/linux/arch/i386/linux_fcntl.h  Wed Jun 25 16:30:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_fcntl.h,v 1.7 2010/11/02 18:01:26 chs Exp $      */
+/*     $NetBSD: linux_fcntl.h,v 1.8 2014/06/25 16:30:42 njoly Exp $    */
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -48,7 +48,11 @@
 #define LINUX_O_NDELAY         LINUX_O_NONBLOCK
 #define LINUX_O_SYNC           0x01000
 #define LINUX_FASYNC           0x02000
+#define LINUX_O_DIRECT         0x04000
+#define LINUX_O_LARGEFILE      0x08000
 #define LINUX_O_DIRECTORY      0x10000
+#define LINUX_O_NOFOLLOW       0x20000
+#define LINUX_O_NOATIME                0x40000
 #define LINUX_O_CLOEXEC                0x80000
 
 /* fcntl(2) operations */
diff -r 53ecf754465e -r 71ab4938aec0 sys/compat/linux/arch/m68k/linux_fcntl.h
--- a/sys/compat/linux/arch/m68k/linux_fcntl.h  Wed Jun 25 16:14:43 2014 +0000
+++ b/sys/compat/linux/arch/m68k/linux_fcntl.h  Wed Jun 25 16:30:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_fcntl.h,v 1.4 2010/11/02 18:01:26 chs Exp $      */
+/*     $NetBSD: linux_fcntl.h,v 1.5 2014/06/25 16:30:42 njoly Exp $    */
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -50,6 +50,9 @@
 #define LINUX_FASYNC           0x02000
 #define LINUX_O_DIRECTORY      0x04000
 #define LINUX_O_NOFOLLOW       0x08000
+#define LINUX_O_DIRECT         0x10000
+#define LINUX_O_LARGEFILE      0x20000
+#define LINUX_O_NOATIME                0x40000
 #define LINUX_O_CLOEXEC                0x80000
 
 /* fcntl(2) operations */
diff -r 53ecf754465e -r 71ab4938aec0 sys/compat/linux/arch/mips/linux_fcntl.h
--- a/sys/compat/linux/arch/mips/linux_fcntl.h  Wed Jun 25 16:14:43 2014 +0000
+++ b/sys/compat/linux/arch/mips/linux_fcntl.h  Wed Jun 25 16:30:42 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_fcntl.h,v 1.7 2010/11/02 18:01:26 chs Exp $ */
+/* $NetBSD: linux_fcntl.h,v 1.8 2014/06/25 16:30:42 njoly Exp $ */
 
 /*-
  * Copyright (c) 1995, 1998, 2001 The NetBSD Foundation, Inc.
@@ -50,7 +50,11 @@
 #define LINUX_O_EXCL           0x00400
 #define LINUX_O_NOCTTY         0x00800
 #define LINUX_FASYNC           0x01000
+#define LINUX_O_LARGEFILE      0x02000
+#define LINUX_O_DIRECT         0x08000
 #define LINUX_O_DIRECTORY      0x10000
+#define LINUX_O_NOFOLLOW       0x20000
+#define LINUX_O_NOATIME                0x40000
 #define LINUX_O_CLOEXEC                0x80000
 
 /* fcntl(2) operations */
diff -r 53ecf754465e -r 71ab4938aec0 sys/compat/linux/arch/powerpc/linux_fcntl.h
--- a/sys/compat/linux/arch/powerpc/linux_fcntl.h       Wed Jun 25 16:14:43 2014 +0000
+++ b/sys/compat/linux/arch/powerpc/linux_fcntl.h       Wed Jun 25 16:30:42 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_fcntl.h,v 1.9 2010/11/02 18:01:26 chs Exp $ */
+/* $NetBSD: linux_fcntl.h,v 1.10 2014/06/25 16:30:42 njoly Exp $ */
 
 /*-
  * Copyright (c) 1995, 1998, 2001 The NetBSD Foundation, Inc.
@@ -51,6 +51,10 @@
 #define LINUX_O_SYNC           0x01000
 #define LINUX_FASYNC           0x02000
 #define LINUX_O_DIRECTORY      0x04000
+#define LINUX_O_NOFOLLOW       0x08000
+#define LINUX_O_LARGEFILE      0x10000
+#define LINUX_O_DIRECT         0x20000
+#define LINUX_O_NOATIME                0x40000
 #define LINUX_O_CLOEXEC                0x80000
 
 /* fcntl(2) operations */



Home | Main Index | Thread Index | Old Index