[PATCH v3] io: Fix F_GETLK, F_SETLK, and F_SETLKW for powerpc64
Andreas Schwab
schwab@linux-m68k.org
Wed May 31 17:44:53 GMT 2023
On Mai 31 2023, Adhemerval Zanella wrote:
> Different than other 64 bit architectures, powerpc64 defines the
> LFS POSIX lock constants with values similar to 32 ABI, which
> are meant to be used with fcntl64 syscall. Since powerpc64 kABI
> does not have fcntl, the constants are adjusted with the
> FCNTL_ADJUST_CMD macro.
>
> The 4d0fe291aed3a476a changed the logic of generic constants
> LFS value are equal to the default values; which is now wrong
> for powerpc64.
>
> Fix the value by explicit define the previous glibc constants
> (powerpc64 does not need to use the 32 kABI value, but it simplifies
> the FCNTL_ADJUST_CMD which should be kept as compatibility).
Ok.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Libc-alpha
mailing list