mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-20 19:49:28 +00:00
parent
e3be65833f
commit
167925ab76
@ -31,6 +31,19 @@ class Vfs::Vfs_handle
|
|||||||
|
|
||||||
public:
|
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 };
|
enum { STATUS_RDONLY = 0, STATUS_WRONLY = 1, STATUS_RDWR = 2 };
|
||||||
|
|
||||||
Vfs_handle(Directory_service &ds, File_io_service &fs, int status_flags)
|
Vfs_handle(Directory_service &ds, File_io_service &fs, int status_flags)
|
||||||
|
Loading…
Reference in New Issue
Block a user