]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Define O_NONBLOCK to become 000200000
authorHelge Deller <deller@gmx.de>
Sat, 29 Aug 2020 12:11:35 +0000 (14:11 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 15 Oct 2020 06:10:38 +0000 (08:10 +0200)
commit5ba3e04d76f077d6e9234fbfae76454b085c37ff
tree9a4c4f9c393c30af9d0a825710bb114884fe82f1
parent3c06fa768b7c02468c2979681765f0b30fd862d4
parisc: Define O_NONBLOCK to become 000200000

HPUX has separate NDELAY & NONBLOCK values. In the past we wanted to
be able to run HP-UX binaries natively on parisc Linux which is why
we defined O_NONBLOCK to 000200004 to distinguish NDELAY & NONBLOCK
bits.
But with 2 bits set in this bitmask we often ran into compatibility
issues with other Linux applications which often only test one bit (or
even compare the values).

To avoid such issues in the future, this patch changes O_NONBLOCK to
become 000200000. That way old programs will still be functional, and
for new programs we now have only one bit set.

Update the comment about SOCK_NONBLOCK too.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/socket.h
arch/parisc/include/uapi/asm/fcntl.h