mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dorjoy Chowdhury <dorjoychy111@gmail.com>
To: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk,
	brauner@kernel.org, jack@suse.cz, jlayton@kernel.org,
	chuck.lever@oracle.com, alex.aring@gmail.com, arnd@arndb.de,
	adilger@dilger.ca
Subject: [PATCH v3 3/4] sparc/fcntl.h: convert O_* flag macros from hex to octal
Date: Tue, 27 Jan 2026 23:58:19 +0600	[thread overview]
Message-ID: <20260127180109.66691-4-dorjoychy111@gmail.com> (raw)
In-Reply-To: <20260127180109.66691-1-dorjoychy111@gmail.com>

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 <dorjoychy111@gmail.com>
---
 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 a93d18d2c23e..3c16f1a66a6a 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 O_REGULAR	0x4000000
+#define O_PATH		0100000000
+#define __O_TMPFILE	0200000000
+#define O_REGULAR	0400000000
 
 #define F_GETOWN	5	/*  for sockets. */
 #define F_SETOWN	6	/*  for sockets. */
-- 
2.52.0


  parent reply	other threads:[~2026-01-27 18:01 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-27 17:58 [PATCH v3 0/4] O_REGULAR flag support for open Dorjoy Chowdhury
2026-01-27 17:58 ` [PATCH v3 1/4] open: new O_REGULAR flag support Dorjoy Chowdhury
2026-01-27 23:23   ` Aleksa Sarai
2026-01-28  7:12     ` Mateusz Guzik
2026-01-28 16:57       ` Dorjoy Chowdhury
2026-01-28 19:26       ` Aleksa Sarai
2026-01-27 23:52   ` Jeff Layton
2026-01-28 15:36     ` Dorjoy Chowdhury
2026-01-28 15:51       ` Jeff Layton
2026-01-28 16:29         ` Dorjoy Chowdhury
2026-01-29 12:33         ` Christian Brauner
2026-01-29 13:12           ` Jeff Layton
2026-01-29 13:42             ` Jeff Layton
2026-02-18 18:26             ` Dorjoy Chowdhury
2026-02-18 19:01               ` Jeff Layton
2026-02-18 19:19                 ` Dorjoy Chowdhury
2026-02-18 19:32                   ` Jeff Layton
2026-02-18 19:44                     ` Dorjoy Chowdhury
2026-01-29 14:01           ` Jeff Layton
2026-01-29 10:49   ` Christian Brauner
2026-01-29 16:55     ` Dorjoy Chowdhury
2026-01-29 17:03     ` Aleksa Sarai
2026-01-29 17:41       ` Dorjoy Chowdhury
2026-01-27 17:58 ` [PATCH v3 2/4] kselftest/openat2: test for O_REGULAR flag Dorjoy Chowdhury
2026-01-27 17:58 ` Dorjoy Chowdhury [this message]
2026-01-27 17:58 ` [PATCH v3 4/4] mips/fcntl.h: convert O_* flag macros from hex to octal Dorjoy Chowdhury

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260127180109.66691-4-dorjoychy111@gmail.com \
    --to=dorjoychy111@gmail.com \
    --cc=adilger@dilger.ca \
    --cc=alex.aring@gmail.com \
    --cc=arnd@arndb.de \
    --cc=brauner@kernel.org \
    --cc=chuck.lever@oracle.com \
    --cc=jack@suse.cz \
    --cc=jlayton@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®