include/llfio/v2.0/file_handle.hpp
/*! \em Securely create a file handle creating a temporary anonymous inode in
the filesystem referred to by \em dirpath. The inode created has
no name nor accessible path on the filing system and ceases to
exist as soon as the last handle is closed, making it ideal for use as
a temporary file where other processes do not need to have access
to its contents via some path on the filing system (a classic use case
is for backing shared memory maps).

\errors Any of the values POSIX open() or CreateFile() can return.
*/
\em Securely create a file handle creating a temporary anonymous inode in
the filesystem referred to by \em dirpath. The inode created has
no name nor accessible path on the filing system and ceases to
exist as soon as the last handle is closed, making it ideal for use as
a temporary file where other processes do not need to have access
to its contents via some path on the filing system (a classic use case
is for backing shared memory maps).

\errors Any of the values POSIX open() or CreateFile() can return.
\ em Securely create a file handle creating a temporary anonymous inode in the filesystem referred to by \ em dirpath . The inode created has no name nor accessible path on the filing system and ceases to exist as soon as the last handle is closed making it ideal for use as a temporary file where other processes do not need to have access to its contents via some path on the filing system ( a classic use case is for backing shared memory maps ) . \ errors Any of the values POSIX open () or CreateFile () can return .
inline result<file_handle> temp_inode(const path_handle &dirh = path_discovery::storage_backed_temporary_files_directory(),
                                      file_handle::mode _mode = file_handle::mode::write, file_handle::flag flags = file_handle::flag::none) noexcept
{
  return file_handle::temp_inode(std::forward<decltype(dirh)>(dirh), std::forward<decltype(_mode)>(_mode), std::forward<decltype(flags)>(flags));
}
inline result < file_handle > temp_inode ( const path_handle & dirh = path_discovery :: storage_backed_temporary_files_directory ( ) , file_handle :: mode _mode = file_handle :: mode :: write , file_handle :: flag flags = file_handle :: flag :: none ) noexcept { return file_handle :: temp_inode ( std :: forward < decltype ( dirh ) > ( dirh ) , std :: forward < decltype ( _mode ) > ( _mode ) , std :: forward < decltype ( flags ) > ( flags ) ) ; }
\em Securely create a file handle creating a temporary anonymous inode in
the filesystem referred to by \em dirpath.
\ em Securely create a file handle creating a temporary anonymous inode in the filesystem referred to by \ em dirpath .