Index: native_client_sdk/src/libraries/nacl_io/mount.h |
diff --git a/native_client_sdk/src/libraries/nacl_io/mount.h b/native_client_sdk/src/libraries/nacl_io/mount.h |
index ddf1fd5c76814eb0b27be4793d938fff69a048bd..3fdb32dd2bbea88f4bff9bd910b0ca2d29507683 100644 |
--- a/native_client_sdk/src/libraries/nacl_io/mount.h |
+++ b/native_client_sdk/src/libraries/nacl_io/mount.h |
@@ -52,6 +52,10 @@ class Mount : public RefObject { |
// All paths in functions below are expected to containing a leading "/". |
+ // Test whether a file or directory at a given path can be accessed. |
+ // Returns 0 on success, or an appropriate errno value on failure. |
+ virtual Error Access(const Path& path, int a_mode) = 0; |
+ |
// Open a node at |path| with the specified open flags. The resulting |
// MountNode is created with a ref count of 1. |
// Assumes that |out_node| is non-NULL. |