[PATCH] decode open's O_TMPFILE

Dmitry V. Levin ldv at altlinux.org
Wed Nov 19 22:03:01 UTC 2014


On Wed, Nov 19, 2014 at 04:36:42PM -0500, Mike Frysinger wrote:
> * xlat/open_mode_flags.in: Add O_TMPFILE definition.

O_TMPFILE is too recent to include without ifdefs.

> ---
>  xlat/open_mode_flags.in | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/xlat/open_mode_flags.in b/xlat/open_mode_flags.in
> index b323f8b..a584834 100644
> --- a/xlat/open_mode_flags.in
> +++ b/xlat/open_mode_flags.in
> @@ -19,6 +19,8 @@ O_NOFOLLOW
>  O_NOATIME
>  O_CLOEXEC
>  O_PATH
> +/* The kernel & C liraries often inline O_DIRECTORY */
> +{ O_TMPFILE & ~O_DIRECTORY, "O_TMPFILE" },
>  FNDELAY
>  FAPPEND
>  FMARK

-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20141120/7740d44e/attachment.bin>


More information about the Strace-devel mailing list