LLVM  6.0.0svn
Public Member Functions | Friends | List of all members
llvm::sys::fs::file_status Class Reference

file_status - Represents the result of a call to stat and friends. More...

#include "llvm/Support/FileSystem.h"

Public Member Functions

file_type type () const
 
perms permissions () const
 
TimePoint getLastAccessedTime () const
 
TimePoint getLastModificationTime () const
 
UniqueID getUniqueID () const
 
uint32_t getLinkCount () const
 
void type (file_type v)
 
void permissions (perms p)
 

Friends

bool equivalent (file_status A, file_status B)
 Do file_status's represent the same thing? More...
 

Detailed Description

file_status - Represents the result of a call to stat and friends.

It has a platform-specific member to store the result.

Definition at line 146 of file FileSystem.h.

Member Function Documentation

◆ getLastAccessedTime()

TimePoint llvm::sys::fs::file_status::getLastAccessedTime ( ) const

Referenced by llvm::pruneCache().

◆ getLastModificationTime()

TimePoint llvm::sys::fs::file_status::getLastModificationTime ( ) const

◆ getLinkCount()

uint32_t llvm::sys::fs::file_status::getLinkCount ( ) const

◆ getUniqueID()

UniqueID llvm::sys::fs::file_status::getUniqueID ( ) const

◆ permissions() [1/2]

perms llvm::sys::fs::file_status::permissions ( ) const
inline

◆ permissions() [2/2]

void llvm::sys::fs::file_status::permissions ( perms  p)
inline

◆ type() [1/2]

file_type llvm::sys::fs::file_status::type ( ) const
inline

◆ type() [2/2]

void llvm::sys::fs::file_status::type ( file_type  v)
inline

Definition at line 232 of file FileSystem.h.

Friends And Related Function Documentation

◆ equivalent

bool equivalent ( file_status  A,
file_status  B 
)
friend

Do file_status's represent the same thing?

Parameters
AInput file_status.
BInput file_status.

assert(status_known(A) || status_known(B));

Returns
True if A and B both represent the same file system entity, false otherwise.

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