Following the convention in include/uapi/asm-generic/fcntl.h and other
architecture specific arch/*/include/uapi/asm/fcntl.h files.

Signed-off-by: Dorjoy Chowdhury <[email protected]>
---
 arch/sparc/include/uapi/asm/fcntl.h | 36 ++++++++++++++---------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/arch/sparc/include/uapi/asm/fcntl.h 
b/arch/sparc/include/uapi/asm/fcntl.h
index bb6e9fa94bc9..33ce58ec57f6 100644
--- a/arch/sparc/include/uapi/asm/fcntl.h
+++ b/arch/sparc/include/uapi/asm/fcntl.h
@@ -2,23 +2,23 @@
 #ifndef _SPARC_FCNTL_H
 #define _SPARC_FCNTL_H
 
-#define O_APPEND       0x0008
-#define FASYNC         0x0040  /* fcntl, for BSD compatibility */
-#define O_CREAT                0x0200  /* not fcntl */
-#define O_TRUNC                0x0400  /* not fcntl */
-#define O_EXCL         0x0800  /* not fcntl */
-#define O_DSYNC                0x2000  /* used to be O_SYNC, see below */
-#define O_NONBLOCK     0x4000
+#define O_APPEND       0000000010
+#define FASYNC         0000000100      /* fcntl, for BSD compatibility */
+#define O_CREAT                0000001000      /* not fcntl */
+#define O_TRUNC                0000002000      /* not fcntl */
+#define O_EXCL         0000004000      /* not fcntl */
+#define O_DSYNC                0000020000      /* used to be O_SYNC, see below 
*/
+#define O_NONBLOCK     0000040000
 #if defined(__sparc__) && defined(__arch64__)
-#define O_NDELAY       0x0004
+#define O_NDELAY       0000000004
 #else
-#define O_NDELAY       (0x0004 | O_NONBLOCK)
+#define O_NDELAY       (0000000004 | O_NONBLOCK)
 #endif
-#define O_NOCTTY       0x8000  /* not fcntl */
-#define O_LARGEFILE    0x40000
-#define O_DIRECT        0x100000 /* direct disk access hint */
-#define O_NOATIME      0x200000
-#define O_CLOEXEC      0x400000
+#define O_NOCTTY       0000100000      /* not fcntl */
+#define O_LARGEFILE    0001000000
+#define O_DIRECT        0004000000 /* direct disk access hint */
+#define O_NOATIME      0010000000
+#define O_CLOEXEC      0020000000
 /*
  * Before Linux 2.6.33 only O_DSYNC semantics were implemented, but using
  * the O_SYNC flag.  We continue to use the existing numerical value
@@ -32,12 +32,12 @@
  *
  * Note: __O_SYNC must never be used directly.
  */
-#define __O_SYNC       0x800000
+#define __O_SYNC       0040000000
 #define O_SYNC         (__O_SYNC|O_DSYNC)
 
-#define O_PATH         0x1000000
-#define __O_TMPFILE    0x2000000
-#define OPENAT2_REGULAR        0x4000000
+#define O_PATH         0100000000
+#define __O_TMPFILE    0200000000
+#define OPENAT2_REGULAR        0400000000
 
 #define F_GETOWN       5       /*  for sockets. */
 #define F_SETOWN       6       /*  for sockets. */
-- 
2.53.0


Reply via email to