Linux PPC: fix the constant used for O_DIRECT
commitd2d28f714b7e25ccad6057fe4c63407b6fbf8a0c
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 31 Jan 2024 06:48:52 +0000 (31 07:48 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 31 Jan 2024 06:48:52 +0000 (31 07:48 +0100)
treeefb1a8ca24534dcc8eb0b04fe97f9d9e62e91c68
parent2c8ecd648204a8be01714fa6878373f57e073d25
Linux PPC: fix the constant used for O_DIRECT

There are two defined

$ grep -rI O_DIRECT /usr/include/* | grep -v ORY | grep -v __
/usr/include/asm/fcntl.h:#define O_DIRECT       0400000 /* direct disk access hint */
/usr/include/asm-generic/fcntl.h:#define O_DIRECT       00040000        /* direct disk access hint */

and of course I used the wrong one. The non-generic value is the right one.
include/vki/vki-ppc32-linux.h
include/vki/vki-ppc64-linux.h