LLVM API Documentation

Public Member Functions | Public Attributes
llvm::sys::FileStatus Class Reference

File status structure. More...

#include <PathV1.h>

Collaboration diagram for llvm::sys::FileStatus:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FileStatus ()
TimeValue getTimestamp () const
uint64_t getSize () const
uint32_t getMode () const
uint32_t getUser () const
uint32_t getGroup () const
uint64_t getUniqueID () const

Public Attributes

uint64_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.
uint64_t uniqueID
 A number to uniquely ID this file.
bool isDir: 1
 True if this is a directory.
bool isFile: 1
 True if this is a file.

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 other fields should always be applicable on all platforms. The structure is filled in by the PathWithStatus class.

Definition at line 41 of file PathV1.h.


Constructor & Destructor Documentation

llvm::sys::FileStatus::FileStatus ( ) [inline]

Definition at line 52 of file PathV1.h.


Member Function Documentation

uint32_t llvm::sys::FileStatus::getGroup ( ) const [inline]

Definition at line 59 of file PathV1.h.

References group.

Referenced by llvm::ArchiveMember::getGroup().

uint32_t llvm::sys::FileStatus::getMode ( ) const [inline]

Definition at line 57 of file PathV1.h.

References mode.

Referenced by llvm::ArchiveMember::getMode().

uint64_t llvm::sys::FileStatus::getSize ( ) const [inline]

Definition at line 56 of file PathV1.h.

References fileSize.

Referenced by llvm::DiffFilesWithTolerance(), ExpandResponseFiles(), and llvm::ArchiveMember::getSize().

TimeValue llvm::sys::FileStatus::getTimestamp ( ) const [inline]

Definition at line 55 of file PathV1.h.

References modTime.

Referenced by llvm::ArchiveMember::getModTime().

uint64_t llvm::sys::FileStatus::getUniqueID ( ) const [inline]

Definition at line 60 of file PathV1.h.

References uniqueID.

uint32_t llvm::sys::FileStatus::getUser ( ) const [inline]

Definition at line 58 of file PathV1.h.

References user.

Referenced by llvm::ArchiveMember::getUser().


Member Data Documentation

Size of the file in bytes.

Definition at line 43 of file PathV1.h.

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

Group ID of owner, if applicable.

Definition at line 47 of file PathV1.h.

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

True if this is a directory.

Definition at line 49 of file PathV1.h.

True if this is a file.

Definition at line 50 of file PathV1.h.

Mode of the file, if applicable.

Definition at line 45 of file PathV1.h.

Referenced by llvm::ArchiveMember::ArchiveMember(), getMode(), and llvm::Archive::parseMemberHeader().

Time of file's modification.

Definition at line 44 of file PathV1.h.

Referenced by llvm::ArchiveMember::ArchiveMember(), getTimestamp(), and llvm::Archive::parseMemberHeader().

A number to uniquely ID this file.

Definition at line 48 of file PathV1.h.

Referenced by getUniqueID().

User ID of owner, if applicable.

Definition at line 46 of file PathV1.h.

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


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