Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount.h

Issue 15800004: [NaCl SDK] nacl_io: Added support for access() syscall. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to HEAD. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698