OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:FdFile
(Results
1 - 8
of
8
) sorted by null
/art/runtime/base/unix_file/
fd_file.cc
26
FdFile
::
FdFile
() : fd_(-1), auto_close_(true) {
29
FdFile
::
FdFile
(int fd) : fd_(fd), auto_close_(true) {
32
FdFile
::
FdFile
(int fd, const std::string& path) : fd_(fd), file_path_(path), auto_close_(true) {
36
FdFile
::~
FdFile
() {
42
void
FdFile
::DisableAutoClose() {
46
bool
FdFile
::Open(const std::string& path, int flags)
[
all
...]
fd_file.h
30
class
FdFile
: public RandomAccessFile {
32
FdFile
();
33
// Creates an
FdFile
using the given file descriptor. Takes ownership of the
35
explicit
FdFile
(int fd);
36
explicit
FdFile
(int fd, const std::string& path);
38
// Destroys an
FdFile
, closing the file descriptor if Close hasn't already
43
virtual ~
FdFile
();
70
DISALLOW_COPY_AND_ASSIGN(
FdFile
);
fd_file_test.cc
26
return new
FdFile
(fileno(tmpfile()));
43
FdFile
file;
51
FdFile
file;
mapped_file.h
31
class MappedFile : public
FdFile
{
39
MappedFile() :
FdFile
(), file_size_(-1), mapped_file_(NULL) {
43
explicit MappedFile(int fd) :
FdFile
(fd), file_size_(-1), mapped_file_(NULL) {
random_access_file_utils_test.cc
40
FdFile
src(-1);
47
FdFile
dst(-1);
mapped_file.cc
36
return
FdFile
::Close();
110
return
FdFile
::Read(buf, byte_count, offset);
116
return
FdFile
::SetLength(new_length);
123
return
FdFile
::GetLength();
128
int rc = IsMapped() ? TEMP_FAILURE_RETRY(msync(mapped_file_, file_size_, 0)) :
FdFile
::Flush();
145
return
FdFile
::Write(buf, byte_count, offset);
mapped_file_test.cc
37
FdFile
dst(fd);
122
FdFile
new_file(TEMP_FAILURE_RETRY(open(new_path.c_str(), O_RDONLY)));
/art/runtime/
os.h
21
class
FdFile
;
26
typedef ::unix_file::
FdFile
File;
Completed in 89 milliseconds