[Top][All Lists]

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

Re: "here strings" and tmpfiles

From: Chet Ramey
Subject: Re: "here strings" and tmpfiles
Date: Wed, 10 Apr 2019 16:45:35 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 4/10/19 4:33 PM, konsolebox wrote:
> On Wed, Apr 10, 2019 at 11:15 PM Chet Ramey <address@hidden> wrote:
>> If we're going to go off into hypotheticals and speculation, it would be
>> nice if memfd_create were available universally.
> I see many parts in lib/* that adapts to available system features
> like mmap and MAP_ANONYMOUS.  I don't see why memfd_create should be
> an exception.  Using a volatile file is much better than forking, and
> this only requires a one-time implementation of a wrapper library
> function that returns -1 if the feature is not available in the
> system.  It should be easy to integrate with the current code since it
> returns an fd.

It has slightly inconvenient semantics, in that you can't open it more
than once, and if you can't do that, you can't convert it from read-write
to readonly.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/

reply via email to

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