diff options
| author | Michael Forney | 2021-01-14 23:36:02 +0100 |
|---|---|---|
| committer | Laurent Vivier | 2021-01-21 13:27:34 +0100 |
| commit | b1d2e476e94cb215d9e19fef1049d413b414ffc2 (patch) | |
| tree | 6c4e10cf23bb7861a6f63a65210faf2c7b9f3c77 /linux-user/generic | |
| parent | linux-user: Add IPv6 options to do_print_sockopt() (diff) | |
| download | qemu-b1d2e476e94cb215d9e19fef1049d413b414ffc2.tar.gz qemu-b1d2e476e94cb215d9e19fef1049d413b414ffc2.tar.xz qemu-b1d2e476e94cb215d9e19fef1049d413b414ffc2.zip | |
linux-user: Remove obsolete F_SHLCK and F_EXLCK translation
These lock types are unsupported by Linux since v2.2[0][1] and
always return EINVAL (except on SPARC up until v2.6, which just
warned).
musl libc does not define these constants, so just remove them from
the translation cases.
[0] https://github.com/mpe/linux-fullhistory/blob/v2.2.0/fs/locks.c#L322-L324
[1] https://github.com/mpe/linux-fullhistory/blob/v2.2.0/fs/locks.c#L429-L445
Signed-off-by: Michael Forney <mforney@mforney.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210114223602.9004-1-mforney@mforney.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/generic')
| -rw-r--r-- | linux-user/generic/fcntl.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/linux-user/generic/fcntl.h b/linux-user/generic/fcntl.h index c85c5b9fed..4568d1f42b 100644 --- a/linux-user/generic/fcntl.h +++ b/linux-user/generic/fcntl.h @@ -119,11 +119,6 @@ struct target_f_owner_ex { #define TARGET_F_UNLCK 2 #endif -#ifndef TARGET_F_EXLCK -#define TARGET_F_EXLCK 4 -#define TARGET_F_SHLCK 8 -#endif - #ifndef TARGET_HAVE_ARCH_STRUCT_FLOCK #ifndef TARGET_ARCH_FLOCK_PAD #define TARGET_ARCH_FLOCK_PAD |
