Rudiments

filesystem.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_FILESYSTEM_H
5 #define RUDIMENTS_FILESYSTEM_H
6
7 #include <rudiments/private/filesystemincludes.h>
8
16 class RUDIMENTS_DLLSPEC filesystem {
17 public:
19 filesystem();
20
23 filesystem(const filesystem &f);
24
27 filesystem &operator=(const filesystem &f);
28
30 virtual ~filesystem();
31
37 bool open(const char *path);
38
43 bool open(int32_t fd);
44
46 bool close();
47
51 bool getCurrentProperties();
52
54 int64_t getType() const;
55
57 int64_t getBlockSize() const;
58
60 int64_t getOptimumTransferBlockSize() const;
61
64 int64_t getTotalBlocks() const;
65
67 int64_t getFreeBlocks() const;
68
71 int64_t getAvailableBlocks() const;
72
75 int64_t getReservedBlocks() const;
76
78 int64_t getTotalFileNodes() const;
79
81 int64_t getFreeFileNodes() const;
82
85 int64_t getAvailableFileNodes() const;
86
89 int64_t getReservedFileNodes() const;
90
92 int64_t getFileSystemId() const;
93
96 int64_t getMaximumFileNameLength() const;
97
99 uid_t getOwner() const;
100
103 int64_t getSyncWrites() const;
104
107 int64_t getAsyncWrites() const;
108
110 const char *getTypeName() const;
111
113 const char *getMountPoint() const;
114
117 int64_t getSyncReads() const;
118
121 int64_t getAsyncReads() const;
122
124 const char *getDeviceName() const;
125
127 const char *getFilesystemSpecificString() const;
128
132 void *getInternalFilesystemStatisticsStructure();
133
134 #include <rudiments/private/filesystem.h>
135 };
136
137 #endif
filesystem
Definition: filesystem.h:16
filesystem::getMaximumFileNameLength
int64_t getMaximumFileNameLength() const
filesystem::getAvailableFileNodes
int64_t getAvailableFileNodes() const
filesystem::getFreeFileNodes
int64_t getFreeFileNodes() const
filesystem::getAvailableBlocks
int64_t getAvailableBlocks() const
filesystem::getInternalFilesystemStatisticsStructure
void * getInternalFilesystemStatisticsStructure()
filesystem::getType
int64_t getType() const
filesystem::getFreeBlocks
int64_t getFreeBlocks() const
filesystem::getAsyncWrites
int64_t getAsyncWrites() const
filesystem::getReservedBlocks
int64_t getReservedBlocks() const
filesystem::getTypeName
const char * getTypeName() const
filesystem::open
bool open(int32_t fd)
filesystem::close
bool close()
filesystem::getOwner
uid_t getOwner() const
filesystem::getDeviceName
const char * getDeviceName() const
filesystem::~filesystem
virtual ~filesystem()
filesystem::getTotalBlocks
int64_t getTotalBlocks() const
filesystem::filesystem
filesystem()
filesystem::getAsyncReads
int64_t getAsyncReads() const
filesystem::getSyncWrites
int64_t getSyncWrites() const
filesystem::getTotalFileNodes
int64_t getTotalFileNodes() const
filesystem::getOptimumTransferBlockSize
int64_t getOptimumTransferBlockSize() const
filesystem::filesystem
filesystem(const filesystem &f)
filesystem::getMountPoint
const char * getMountPoint() const
filesystem::getReservedFileNodes
int64_t getReservedFileNodes() const
filesystem::getBlockSize
int64_t getBlockSize() const
filesystem::getSyncReads
int64_t getSyncReads() const
filesystem::getFilesystemSpecificString
const char * getFilesystemSpecificString() const
filesystem::open
bool open(const char *path)
filesystem::getFileSystemId
int64_t getFileSystemId() const
filesystem::getCurrentProperties
bool getCurrentProperties()
filesystem::operator=
filesystem & operator=(const filesystem &f)