LLVM API Documentation

llvm::sys::FileStatus Class Reference

File status structure. More...

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

Definition at line 35 of file Path.h.


Constructor & Destructor Documentation

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

Definition at line 46 of file Path.h.


Member Function Documentation

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

Definition at line 49 of file Path.h.

References modTime.

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

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

Definition at line 50 of file Path.h.

References fileSize.

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

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

Definition at line 51 of file Path.h.

References mode.

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

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

Definition at line 52 of file Path.h.

References user.

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

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

Definition at line 53 of file Path.h.

References group.

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

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

Definition at line 54 of file Path.h.

References uniqueID.


Member Data Documentation

Size of the file in bytes.

Definition at line 37 of file Path.h.

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

Time of file's modification.

Definition at line 38 of file Path.h.

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

Mode of the file, if applicable.

Definition at line 39 of file Path.h.

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

User ID of owner, if applicable.

Definition at line 40 of file Path.h.

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

Group ID of owner, if applicable.

Definition at line 41 of file Path.h.

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

A number to uniquely ID this file.

Definition at line 42 of file Path.h.

Referenced by getUniqueID().

True if this is a directory.

Definition at line 43 of file Path.h.

True if this is a file.

Definition at line 44 of file Path.h.


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.