Skip to content
Commit 44a4c9e4 authored by Helge Deller's avatar Helge Deller
Browse files

parisc: Add wrapper syscalls to fix O_NONBLOCK flag usage

The commit 75ae0420 ("parisc: Define O_NONBLOCK to become
000200000") changed the O_NONBLOCK constant to have only one bit set
(like all other architectures). This change broke some existing
userspace code (e.g.  udevadm, systemd-udevd, elogind) which called
specific syscalls which do strict value checking on their flag
parameter.

This patch adds wrapper functions for the relevant syscalls. The
wrappers masks out any old invalid O_NONBLOCK flags, reports in the
syslog if the old O_NONBLOCK value was used and then calls the target
syscall with the new O_NONBLOCK value.

Fixes: 75ae0420

 ("parisc: Define O_NONBLOCK to become 000200000")
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Tested-by: default avatarMeelis Roos <mroos@linux.ee>
Tested-by: default avatarJeroen Roovers <jer@xs4all.nl>
parent 879bc2d2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment