This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Rename RWF_WRITE_LIFE_NOT_SET to RWH_WRITE_LIFE_NOT_SET following Linux 5.5
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 12 Feb 2020 08:31:40 +0100
- Subject: Re: Rename RWF_WRITE_LIFE_NOT_SET to RWH_WRITE_LIFE_NOT_SET following Linux 5.5
- References: <alpine.DEB.2.21.2002120044090.3988@digraph.polyomino.org.uk>
* Joseph Myers:
> Linux 5.5 renames RWF_WRITE_LIFE_NOT_SET to RWH_WRITE_LIFE_NOT_SET,
> with the old name kept as an alias. This patch makes the
> corresponding change in glibc.
>
> Tested for x86_64.
>
> diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> index 07a889d683..b06488a847 100644
> --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> @@ -290,7 +290,8 @@ struct f_owner_ex
>
> #ifdef __USE_GNU
> /* Hint values for F_{GET,SET}_RW_HINT. */
> -# define RWF_WRITE_LIFE_NOT_SET 0
> +# define RWH_WRITE_LIFE_NOT_SET 0
> +# define RWF_WRITE_LIFE_NOT_SET RWH_WRITE_LIFE_NOT_SET
> # define RWH_WRITE_LIFE_NONE 1
> # define RWH_WRITE_LIFE_SHORT 2
> # define RWH_WRITE_LIFE_MEDIUM 3
Looks good. Thanks.