Re: [PATCH v2 1/2] open: new O_REGULAR flag support
From: Arnd Bergmann
Date: Mon Jan 26 2026 - 10:56:19 EST
On Mon, Jan 26, 2026, at 16:39, Dorjoy Chowdhury wrote:
> diff --git a/arch/parisc/include/uapi/asm/fcntl.h
> b/arch/parisc/include/uapi/asm/fcntl.h
> index 03dee816cb13..efd763335ff7 100644
> --- a/arch/parisc/include/uapi/asm/fcntl.h
> +++ b/arch/parisc/include/uapi/asm/fcntl.h
> @@ -19,6 +19,7 @@
>
> #define O_PATH 020000000
> #define __O_TMPFILE 040000000
> +#define O_REGULAR 060000000
This is two bits, not one, and it overlaps with O_PATH|__O_TMPFILE.
The other ones look like they are fine in this regard, but I'm
still unsure if we should be using the next available bit, or
reusing an unused lower bit, e.g. these bits removed in commit
41f5a81c07cd ("parisc: Drop HP-UX specific fcntl and signal flags"):
-#define O_BLKSEEK 000000100 /* HPUX only */
-#define O_RSYNC 002000000 /* HPUX only */
-#define O_INVISIBLE 004000000 /* invisible I/O, for DMAPI/XDSM */
Arnd