ldas-tools-ldasgen
2.7.1
|
Perform statvfs system call. More...
Public Types | |
typedef struct statvfs | buffer_type |
Public Member Functions | |
void | Reset (const std::string &Filename) |
Specify the file to be used in statvfs call. More... | |
void | Sync (buffer_type &StatVFSBuffer) |
Syncronize the callers buffer with the local buffer. More... | |
Protected Member Functions | |
virtual int | eval () |
Do the statvfs call. More... | |
Private Attributes | |
std::string | m_filename |
The pathname of any file within the mounted filesystem. More... | |
buffer_type | m_buffer_ts |
Buffer used to return information about the file system. More... | |
Perform statvfs system call.
This class wraps the statvfs system call. The benifit of using this call is that the user is protected
typedef struct statvfs anonymous_namespace{StatVFS.cc}::lStatVFS::buffer_type |
|
protectedvirtual |
Do the statvfs call.
void anonymous_namespace{StatVFS.cc}::lStatVFS::Reset | ( | const std::string & | Filename | ) |
Specify the file to be used in statvfs call.
[in] | Filename | The pathname of any file within the mounted filesystem. |
void anonymous_namespace{StatVFS.cc}::lStatVFS::Sync | ( | buffer_type & | StatVFSBuffer | ) |
Syncronize the callers buffer with the local buffer.
|
private |
Buffer used to return information about the file system.
This buffer is used locally to make the call thread safe. If the native call were to use the caller's buffer directly, then in the situation where the native call times out, the application would be vulnerable to memory corruption as the callers buffer would go out of scope and the system would reclaim the resources.
|
private |
The pathname of any file within the mounted filesystem.