LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::sys::Path::StatusInfo Struct Reference

File status structure. More...

#include <Path.h>

Collaboration diagram for llvm::sys::Path::StatusInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StatusInfo ()

Public Attributes

size_t fileSize
 Size of the file in bytes.
TimeValue modTime
 Time of file's modification.
uint32_t mode
 Mode of the file, if applicable.
uint32_t user
 User ID of owner, if applicable.
uint32_t group
 Group ID of owner, if applicable.
bool isDir
 True if this is a directory.

Detailed Description

File status structure.

This structure provides basic file system information about a file. It is patterned after the stat(2) Unix operating system call but made platform independent and eliminates many of the unix-specific fields. However, to support llvm-ar, the mode, user, and group fields are retained. These pertain to unix security and may not have a meaningful value on non-Unix platforms. However, the fileSize and modTime fields should always be applicabe on all platforms. The structure is filled in by the getStatusInfo method.

Definition at line 59 of file Path.h.


Constructor & Destructor Documentation

llvm::sys::Path::StatusInfo::StatusInfo  )  [inline]
 

Definition at line 60 of file Path.h.


Member Data Documentation

size_t llvm::sys::Path::StatusInfo::fileSize
 

Size of the file in bytes.

Definition at line 62 of file Path.h.

Referenced by llvm::ArchiveMember::ArchiveMember(), llvm::ArchiveMember::getMemberSize(), llvm::ArchiveMember::getSize(), llvm::sys::Path::getStatusInfo(), and llvm::Archive::parseMemberHeader().

uint32_t llvm::sys::Path::StatusInfo::group
 

Group ID of owner, if applicable.

Definition at line 66 of file Path.h.

Referenced by llvm::ArchiveMember::ArchiveMember(), llvm::ArchiveMember::getGroup(), llvm::sys::Path::getStatusInfo(), and llvm::Archive::parseMemberHeader().

bool llvm::sys::Path::StatusInfo::isDir
 

True if this is a directory.

Definition at line 67 of file Path.h.

Referenced by llvm::sys::Path::getStatusInfo().

uint32_t llvm::sys::Path::StatusInfo::mode
 

Mode of the file, if applicable.

Definition at line 64 of file Path.h.

Referenced by llvm::ArchiveMember::ArchiveMember(), llvm::ArchiveMember::getMode(), llvm::sys::Path::getStatusInfo(), llvm::Archive::parseMemberHeader(), and llvm::sys::Path::setStatusInfo().

TimeValue llvm::sys::Path::StatusInfo::modTime
 

Time of file's modification.

Definition at line 63 of file Path.h.

Referenced by llvm::ArchiveMember::ArchiveMember(), llvm::ArchiveMember::getModTime(), llvm::sys::Path::getStatusInfo(), llvm::Archive::parseMemberHeader(), and llvm::sys::Path::setStatusInfo().

uint32_t llvm::sys::Path::StatusInfo::user
 

User ID of owner, if applicable.

Definition at line 65 of file Path.h.

Referenced by llvm::ArchiveMember::ArchiveMember(), llvm::sys::Path::getStatusInfo(), llvm::ArchiveMember::getUser(), and llvm::Archive::parseMemberHeader().


The documentation for this struct was generated from the following file: