Cygwin /sbin/mount -o tmpfiles mount option to always set |FILE_ATTRIBUTE_TEMPORARY| ... / was: Re: Random ideas for 3.7
Roland Mainz
roland.mainz@nrubsig.org
Tue Apr 22 13:01:06 GMT 2025
On Tue, Mar 18, 2025 at 8:50 PM Corinna Vinschen
<corinna-cygwin@cygwin.com> wrote:
>
> Fodder for future Cygwin development:
>
> For a start I'd like to add some additions to POSIX-1.2025 which catched
> my eye. Whoever wants to take a stab at some of the functionality, feel
> free.
[snip]
[Might be an old idea from somewhere else, I just don't remember:]
1. Cygwin mount option "tmpfiles" to enable |FILE_ATTRIBUTE_TEMPORARY|
for all |open()|/openat()|/create()| which are opened for that
filesystem
2. Default /tmp mount (enabled by default), which just maps to
/cygdrive/c/cygwin64/tmp/, but has the "tmpfiles" mount option set
The idea is that opening files in /tmp will automagically set the
|FILE_ATTRIBUTE_TEMPORARY|
3. POSIX |tmpfile()| should open files with |FILE_ATTRIBUTE_TEMPORARY|
by default
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz@nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
More information about the Cygwin-developers
mailing list