mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
committed by
Christian Helmuth
parent
e3be65833f
commit
167925ab76
@@ -31,6 +31,19 @@ class Vfs::Vfs_handle
|
||||
|
||||
public:
|
||||
|
||||
struct Guard
|
||||
{
|
||||
Vfs_handle *handle;
|
||||
|
||||
Guard(Vfs_handle *handle) : handle(handle) { }
|
||||
|
||||
~Guard()
|
||||
{
|
||||
if (handle)
|
||||
Genode::destroy(Genode::env()->heap(), handle);
|
||||
}
|
||||
};
|
||||
|
||||
enum { STATUS_RDONLY = 0, STATUS_WRONLY = 1, STATUS_RDWR = 2 };
|
||||
|
||||
Vfs_handle(Directory_service &ds, File_io_service &fs, int status_flags)
|
||||
|
||||
Reference in New Issue
Block a user