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
3 // found in the LICENSE file.
5 #ifndef LIBRARIES_NACL_IO_MEMFS_MEM_FS_NODE_H_
6 #define LIBRARIES_NACL_IO_MEMFS_MEM_FS_NODE_H_
8 #include "nacl_io/node.h"
12 class MemFsNode
: public Node
{
14 explicit MemFsNode(Filesystem
* filesystem
);
20 // Normal read/write operations on a file
21 virtual Error
Read(const HandleAttr
& attr
,
25 virtual Error
Write(const HandleAttr
& attr
,
29 virtual Error
FTruncate(off_t size
);
30 virtual Error
Futimens(const struct timespec times
[2]);
31 virtual Error
Fchmod(mode_t mode
);
34 Error
Resize(off_t size
);
37 size_t data_capacity_
;
41 } // namespace nacl_io
43 #endif // LIBRARIES_NACL_IO_MEMFS_MEM_FS_NODE_H_