All of lore.kernel.org
 help / color / mirror / Atom feed
* <sys/memfd.h> header
@ 2017-11-03 19:22 Florian Weimer
       [not found] ` <a989051a-3dcd-9fe6-ab23-5d9fd5d3442b-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Weimer @ 2017-11-03 19:22 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA

memfd_create(2) mentions a <sys/memfd.h>.  Is this a typo for 
<linux/memfd.h>?

I want to implement the system call wrapper, but we're probably going to 
put it into <sys/mman.h> and have it include <linux/memfd.h> for 
_GNU_SOURCE.

Thanks,
Florian
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: <sys/memfd.h> header
       [not found] ` <a989051a-3dcd-9fe6-ab23-5d9fd5d3442b-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2017-11-03 20:01   ` Michael Kerrisk (man-pages)
       [not found]     ` <CAKgNAkjeMPPReMa+-_QpL1xZUtBy7yspBkPepG1F4LW6WO9H+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Kerrisk (man-pages) @ 2017-11-03 20:01 UTC (permalink / raw)
  To: Florian Weimer; +Cc: linux-man, David Herrmann

[CC += David Herrmann]

Hi Florian,

On 3 November 2017 at 20:22, Florian Weimer <fweimer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> memfd_create(2) mentions a <sys/memfd.h>.  Is this a typo for
> <linux/memfd.h>?

Offhand, I do not know. This header file was listed in the original
draft of the page that I received from David Herrmann. (I did much
reworking of the page, but overlooked this detail.) Perhaps it was a
typo, or perhaps it was David's estimation that there would eventually
be such a glibc header.

> I want to implement the system call wrapper, but we're probably going to put
> it into <sys/mman.h> and have it include <linux/memfd.h> for _GNU_SOURCE.

I'm agnostic about it. Maybe David will have some thoughts.

Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: <sys/memfd.h> header
       [not found]     ` <CAKgNAkjeMPPReMa+-_QpL1xZUtBy7yspBkPepG1F4LW6WO9H+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-11-03 20:04       ` Florian Weimer
       [not found]         ` <c37978b1-0fa3-fa3b-9d11-db2d8a22e7a3-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Weimer @ 2017-11-03 20:04 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man, David Herrmann

On 11/03/2017 09:01 PM, Michael Kerrisk (man-pages) wrote:
> [CC += David Herrmann]
> 
> Hi Florian,
> 
> On 3 November 2017 at 20:22, Florian Weimer <fweimer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> memfd_create(2) mentions a <sys/memfd.h>.  Is this a typo for
>> <linux/memfd.h>?
> 
> Offhand, I do not know. This header file was listed in the original
> draft of the page that I received from David Herrmann. (I did much
> reworking of the page, but overlooked this detail.) Perhaps it was a
> typo, or perhaps it was David's estimation that there would eventually
> be such a glibc header.
> 
>> I want to implement the system call wrapper, but we're probably going to put
>> it into <sys/mman.h> and have it include <linux/memfd.h> for _GNU_SOURCE.
> 
> I'm agnostic about it. Maybe David will have some thoughts.

Thanks.

My <sys/mman.h> approach is probably not such a great idea because we 
can't include <linux/memfd.h> because the kernel headers may not have 
it.  So if we put memfd_create into <sys/mman.h>, then we'd have to 
duplicate the constants.  In contrast, a new header could indeed include 
<linux/memfd.h>.

Florian
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: <sys/memfd.h> header
       [not found]         ` <c37978b1-0fa3-fa3b-9d11-db2d8a22e7a3-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2017-11-05 12:06           ` David Herrmann
       [not found]             ` <CANq1E4T6=t1AfX8uVBMGXpY=GBgb+R21Zf5Ac8D7gM5D9D9U8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: David Herrmann @ 2017-11-05 12:06 UTC (permalink / raw)
  To: Florian Weimer; +Cc: Michael Kerrisk (man-pages), linux-man

Hi

On Fri, Nov 3, 2017 at 9:04 PM, Florian Weimer <fweimer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> On 11/03/2017 09:01 PM, Michael Kerrisk (man-pages) wrote:
>>
>> [CC += David Herrmann]
>>
>> Hi Florian,
>>
>> On 3 November 2017 at 20:22, Florian Weimer <fweimer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>>>
>>> memfd_create(2) mentions a <sys/memfd.h>.  Is this a typo for
>>> <linux/memfd.h>?
>>
>>
>> Offhand, I do not know. This header file was listed in the original
>> draft of the page that I received from David Herrmann. (I did much
>> reworking of the page, but overlooked this detail.) Perhaps it was a
>> typo, or perhaps it was David's estimation that there would eventually
>> be such a glibc header.
>>
>>> I want to implement the system call wrapper, but we're probably going to
>>> put
>>> it into <sys/mman.h> and have it include <linux/memfd.h> for _GNU_SOURCE.
>>
>>
>> I'm agnostic about it. Maybe David will have some thoughts.
>
>
> Thanks.
>
> My <sys/mman.h> approach is probably not such a great idea because we can't
> include <linux/memfd.h> because the kernel headers may not have it.  So if
> we put memfd_create into <sys/mman.h>, then we'd have to duplicate the
> constants.  In contrast, a new header could indeed include <linux/memfd.h>.

Yeah, the sys/memfd.h reference is stale. I don't remember whether it
is just a typo or whether I intended to refer to my glibc-patch back
then. Regardless, the file never existed.

Thanks
David
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: <sys/memfd.h> header
       [not found]             ` <CANq1E4T6=t1AfX8uVBMGXpY=GBgb+R21Zf5Ac8D7gM5D9D9U8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-11-05 14:55               ` Florian Weimer
       [not found]                 ` <3ca56cf9-5a80-6d20-f5a6-1b1b15131634-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Weimer @ 2017-11-05 14:55 UTC (permalink / raw)
  To: David Herrmann; +Cc: Michael Kerrisk (man-pages), linux-man

On 11/05/2017 01:06 PM, David Herrmann wrote:
> Yeah, the sys/memfd.h reference is stale. I don't remember whether it
> is just a typo or whether I intended to refer to my glibc-patch back
> then. Regardless, the file never existed.

Thanks.  Any objections to creating this header?

<https://sourceware.org/ml/libc-alpha/2017-11/msg00128.html>

Thanks,
Florian
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: <sys/memfd.h> header
       [not found]                 ` <3ca56cf9-5a80-6d20-f5a6-1b1b15131634-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2017-11-06 22:19                   ` David Herrmann
  0 siblings, 0 replies; 6+ messages in thread
From: David Herrmann @ 2017-11-06 22:19 UTC (permalink / raw)
  To: Florian Weimer; +Cc: Michael Kerrisk (man-pages), linux-man

Hi

On Sun, Nov 5, 2017 at 3:55 PM, Florian Weimer <fweimer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> On 11/05/2017 01:06 PM, David Herrmann wrote:
>>
>> Yeah, the sys/memfd.h reference is stale. I don't remember whether it
>> is just a typo or whether I intended to refer to my glibc-patch back
>> then. Regardless, the file never existed.
>
>
> Thanks.  Any objections to creating this header?
>
> <https://sourceware.org/ml/libc-alpha/2017-11/msg00128.html>

Looks all good to me!

Thanks
David
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-06 22:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-03 19:22 <sys/memfd.h> header Florian Weimer
     [not found] ` <a989051a-3dcd-9fe6-ab23-5d9fd5d3442b-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-11-03 20:01   ` Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkjeMPPReMa+-_QpL1xZUtBy7yspBkPepG1F4LW6WO9H+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-03 20:04       ` Florian Weimer
     [not found]         ` <c37978b1-0fa3-fa3b-9d11-db2d8a22e7a3-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-11-05 12:06           ` David Herrmann
     [not found]             ` <CANq1E4T6=t1AfX8uVBMGXpY=GBgb+R21Zf5Ac8D7gM5D9D9U8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-05 14:55               ` Florian Weimer
     [not found]                 ` <3ca56cf9-5a80-6d20-f5a6-1b1b15131634-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-11-06 22:19                   ` David Herrmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.