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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.h

Issue 565343002: [NaCl SDK] nacl_io: Plumb through {,f}utime{,s} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_ 5 #ifndef LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_
6 #define LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_ 6 #define LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "nacl_io/filesystem.h" 10 #include "nacl_io/filesystem.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 public: 48 public:
49 virtual bool CanOpen(int open_flags); 49 virtual bool CanOpen(int open_flags);
50 virtual Error GetStat(struct stat* stat); 50 virtual Error GetStat(struct stat* stat);
51 virtual Error VIoctl(int request, va_list args); 51 virtual Error VIoctl(int request, va_list args);
52 virtual Error Tcflush(int queue_selector); 52 virtual Error Tcflush(int queue_selector);
53 virtual Error Tcgetattr(struct termios* termios_p); 53 virtual Error Tcgetattr(struct termios* termios_p);
54 virtual Error Tcsetattr(int optional_actions, 54 virtual Error Tcsetattr(int optional_actions,
55 const struct termios* termios_p); 55 const struct termios* termios_p);
56 virtual Error GetSize(off_t* out_size); 56 virtual Error GetSize(off_t* out_size);
57 virtual Error Futimens(const struct timespec times[2]);
57 58
58 protected: 59 protected:
59 struct fuse_operations* fuse_ops_; 60 struct fuse_operations* fuse_ops_;
60 struct fuse_file_info info_; 61 struct fuse_file_info info_;
61 std::string path_; 62 std::string path_;
62 }; 63 };
63 64
64 class FileFuseFsNode : public FuseFsNode { 65 class FileFuseFsNode : public FuseFsNode {
65 public: 66 public:
66 FileFuseFsNode(Filesystem* filesystem, 67 FileFuseFsNode(Filesystem* filesystem,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 off_t off); 113 off_t off);
113 114
114 private: 115 private:
115 friend class FuseFs; 116 friend class FuseFs;
116 DISALLOW_COPY_AND_ASSIGN(DirFuseFsNode); 117 DISALLOW_COPY_AND_ASSIGN(DirFuseFsNode);
117 }; 118 };
118 119
119 } // namespace nacl_io 120 } // namespace nacl_io
120 121
121 #endif // LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_ 122 #endif // LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698