Boost.AFIO    Boost C++ Libraries
Public Member Functions | Public Attributes
boost::afio::stat_t Struct Reference

Metadata about a directory entry. More...

List of all members.

Public Member Functions

 stat_t ()
 Constructs a UNINITIALIZED instance i.e. full of random garbage.
 stat_t (std::nullptr_t)
 Constructs a zeroed instance.

Public Attributes

uint64_t st_dev
uint64_t st_ino
filesystem::file_type st_type
filesystem::perms st_perms
int16_t st_nlink
int16_t st_uid
int16_t st_gid
dev_t st_rdev
chrono::system_clock::time_point st_atim
chrono::system_clock::time_point st_mtim
chrono::system_clock::time_point st_ctim
off_t st_size
off_t st_allocated
off_t st_blocks
uint16_t st_blksize
uint32_t st_flags
uint32_t st_gen
chrono::system_clock::time_point st_birthtim
unsigned st_sparse: 1
unsigned st_compressed: 1
unsigned st_reparse_point: 1

Detailed Description

Metadata about a directory entry.

This structure looks somewhat like a `struct stat`, and indeed it was derived from BSD's `struct stat`. However there are a number of changes to better interoperate with modern practice, specifically:

Definition at line 850 of file afio.hpp.


Constructor & Destructor Documentation

Constructs a UNINITIALIZED instance i.e. full of random garbage.

Definition at line 886 of file afio.hpp.

boost::afio::stat_t::stat_t ( std::nullptr_t  )

Constructs a zeroed instance.

Definition at line 888 of file afio.hpp.


Member Data Documentation

inode of device containing file (POSIX only)

Definition at line 853 of file afio.hpp.

inode of file (Windows, POSIX)

Definition at line 855 of file afio.hpp.

filesystem::file_type boost::afio::stat_t::st_type

type of file (Windows, POSIX)

Definition at line 856 of file afio.hpp.

filesystem::perms boost::afio::stat_t::st_perms

uint16_t bitfield perms of file (POSIX only)

Definition at line 861 of file afio.hpp.

number of hard links (Windows, POSIX)

Definition at line 864 of file afio.hpp.

user ID of the file (POSIX only)

Definition at line 866 of file afio.hpp.

group ID of the file (POSIX only)

Definition at line 867 of file afio.hpp.

id of file if special (POSIX only)

Definition at line 868 of file afio.hpp.

chrono::system_clock::time_point boost::afio::stat_t::st_atim

time of last access (Windows, POSIX)

Definition at line 870 of file afio.hpp.

chrono::system_clock::time_point boost::afio::stat_t::st_mtim

time of last data modification (Windows, POSIX)

Definition at line 871 of file afio.hpp.

chrono::system_clock::time_point boost::afio::stat_t::st_ctim

time of last status change (Windows, POSIX)

Definition at line 872 of file afio.hpp.

file size, in bytes (Windows, POSIX)

Definition at line 873 of file afio.hpp.

bytes allocated for file (Windows, POSIX)

Definition at line 874 of file afio.hpp.

number of blocks allocated (Windows, POSIX)

Definition at line 875 of file afio.hpp.

block size used by this device (Windows, POSIX)

Definition at line 876 of file afio.hpp.

user defined flags for file (FreeBSD, OS X, zero otherwise)

Definition at line 877 of file afio.hpp.

file generation number (FreeBSD, OS X, zero otherwise)

Definition at line 878 of file afio.hpp.

chrono::system_clock::time_point boost::afio::stat_t::st_birthtim

time of file creation (Windows, FreeBSD, OS X, zero otherwise)

Definition at line 879 of file afio.hpp.

if this file is sparse, or this directory capable of sparse files (Windows, POSIX)

Definition at line 881 of file afio.hpp.

if this file is compressed, or this directory capable of compressed files (Windows)

Definition at line 882 of file afio.hpp.

if this file or directory is a reparse point (Windows)

Definition at line 883 of file afio.hpp.


January, 2014

Copyright © 2013-2014 Niall Douglas, Cork, Ireland
Copyright © 2013 Paul Kirth, California
Documentation is generated by Doxygen