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

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: Fixes, implement httpfs, and write tests. 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..61b0648322f61a5e75f2021b3ce1835fa3f1c1b9 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 at a given path can be accessed.
+ // Returns 0 on success, or an appropriate errno value on failure.
binji 2013/06/19 16:46:28 What is the behavior of access if given a director
Matt Giuca 2013/06/20 01:43:14 Should be the same as for normal access. R_OK mean
binji 2013/06/20 16:07:21 Hm. I might like to have something similar to your
+ 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.

Powered by Google App Engine
This is Rietveld 408576698