bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 2/3] hurd: Implement O_TMPFILE


From: Samuel Thibault
Subject: Re: [RFC PATCH 2/3] hurd: Implement O_TMPFILE
Date: Mon, 30 Jan 2023 00:25:42 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Hello,

Sergey Bugaev, le lun. 12 déc. 2022 14:46:35 +0300, a ecrit:
> diff --git a/sysdeps/mach/hurd/bits/fcntl.h b/sysdeps/mach/hurd/bits/fcntl.h
> index 17dcb384..b898a0c5 100644
> --- a/sysdeps/mach/hurd/bits/fcntl.h
> +++ b/sysdeps/mach/hurd/bits/fcntl.h
> @@ -123,6 +123,11 @@
>  # define O_CLOEXEC   0x00400000 /* Set FD_CLOEXEC.  */
>  #endif
>  
> +#ifdef __USE_GNU
> +# define __O_TMPFILE 0x00800000 /* Make a new unnamed file.  */
> +# define O_TMPFILE   (__O_TMPFILE | O_DIRECTORY)
> +#endif

I don't think we need the __O_TMPFILE variant, only the O_TMPFILE one?

Linux uses __ variants just because it has per-arch definitions.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]