You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both the Filesystem Hierarchy Standard and POSIX mandate that /tmp exists. I think that on most Linux distributions, it is also a tmpfs mount where everything is kept in memory (or swap if needed). While I could not find any documentation stating that /tmpmust be a tmpfs mount, I think it is rather safe to assume it is.
To be safer, we could use a dedicated temporary file crate (e.g. https://github.com/Stebalien/tempfile) which uses specific system calls internally to create temporary files.
Both the Filesystem Hierarchy Standard and POSIX mandate that /tmp exists. I think that on most Linux distributions, it is also a tmpfs mount where everything is kept in memory (or swap if needed). While I could not find any documentation stating that /tmpmust be a tmpfs mount, I think it is rather safe to assume it is.
To be safer, we could use a dedicated temporary file crate (e.g. https://github.com/Stebalien/tempfile) which uses specific system calls internally to create temporary files.
This can be done with fnctl, memfd_create or other libc syscalls
The text was updated successfully, but these errors were encountered: