stat Struct Reference

#include <stdapis/sys/stat.h>

struct stat

Detailed Description

This structure provides detailed information about a file. The information returned depends on the type of file and/or the file system on which the file resides. Includes following members,

Member Attribute Documentation

__st_atimensec

long__st_atimensec

__st_ctimensec

long__st_ctimensec

__st_mtimensec

long__st_mtimensec

int

unsignedint

st_atime

time_t st_atime

st_birthtime

time_t st_birthtime

st_birthtimensec

longst_birthtimensec

st_blksize

blksize_t st_blksize

optimal blocksize for IO

st_blocks

blkcnt_t st_blocks

blocks allocated for file

st_ctime

time_t st_ctime

st_dev

__dev_t st_dev

inode's device

st_flags

fflags_t st_flags

user defined flags for file

st_gen

__uint32_t st_gen

file generation number

st_gid

gid_t st_gid

group ID of the file's group

st_ino

ino_t st_ino

inode's number

st_lspare

__int32_t st_lspare

st_mode

mode_t st_mode

inode protection mode

st_mtime

time_t st_mtime

st_nlink

nlink_t st_nlink

number of hard links

st_rdev

__dev_t st_rdev

device type

st_size

off_t st_size

file size, in bytes

st_uid

uid_t st_uid

user ID of the file's owner