LLVM API Documentation

Public Member Functions | Friends
llvm::sys::fs::file_status Class Reference

#include <FileSystem.h>

List of all members.

Public Member Functions

 file_status ()
 file_status (file_type Type)
 file_status (file_type Type, perms Perms, dev_t Dev, ino_t Ino, time_t MTime, uid_t UID, gid_t GID, off_t Size)
file_type type () const
perms permissions () const
TimeValue getLastModificationTime () const
UniqueID getUniqueID () const
uint32_t getUser () const
uint32_t getGroup () const
uint64_t getSize () 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?

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.


Constructor & Destructor Documentation

Definition at line 168 of file FileSystem.h.

Definition at line 169 of file FileSystem.h.

llvm::sys::fs::file_status::file_status ( file_type  Type,
perms  Perms,
dev_t  Dev,
ino_t  Ino,
time_t  MTime,
uid_t  UID,
gid_t  GID,
off_t  Size 
) [inline]

Definition at line 172 of file FileSystem.h.


Member Function Documentation

uint32_t llvm::sys::fs::file_status::getGroup ( ) const [inline]

Definition at line 196 of file FileSystem.h.

uint64_t llvm::sys::fs::file_status::getSize ( ) const [inline]

Definition at line 197 of file FileSystem.h.

Referenced by llvm::sys::fs::file_size(), getOpenFileImpl(), and shouldUseMmap().

uint32_t llvm::sys::fs::file_status::getUser ( ) const [inline]

Definition at line 195 of file FileSystem.h.

Definition at line 190 of file FileSystem.h.

Definition at line 212 of file FileSystem.h.

Definition at line 211 of file FileSystem.h.


Friends And Related Function Documentation

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: