libfossil
fsl_fstat Struct Reference

A simple wrapper around the stat(2) structure resp. More...

#include "fossil-util.h"

Data Fields

fsl_time_t ctime
 The time of the last file metadata change (owner, permissions, etc.). More...
 
fsl_time_t mtime
 Last modification time. More...
 
int perm
 Contains the filesystem entry's permissions as a bitmask of fsl_fstat_perm_t values. More...
 
fsl_size_t size
 The size of the stat'd file, in bytes. More...
 
fsl_fstat_type_t type
 Indicates the type of filesystem object. More...
 

Detailed Description

A simple wrapper around the stat(2) structure resp.

_stat/_wstat (on Windows). It exposes only the aspects of stat(2) info which Fossil works with, and not any platform-/filesystem-specific details except the executable bit for the permissions mode and some handling of symlinks.

Definition at line 2570 of file fossil-util.h.

Field Documentation

fsl_time_t fsl_fstat::ctime

The time of the last file metadata change (owner, permissions, etc.).

The man pages (neither for Linux nor Windows) do not specify exactly what unit this is. Let's assume seconds since the start of the Unix Epoch.

Definition at line 2581 of file fossil-util.h.

fsl_time_t fsl_fstat::mtime

Last modification time.

Definition at line 2585 of file fossil-util.h.

int fsl_fstat::perm

Contains the filesystem entry's permissions as a bitmask of fsl_fstat_perm_t values.

Note that only the executable bit for _files_ (not directories) is exposed here.

Definition at line 2595 of file fossil-util.h.

fsl_size_t fsl_fstat::size

The size of the stat'd file, in bytes.

Definition at line 2589 of file fossil-util.h.

fsl_fstat_type_t fsl_fstat::type

Indicates the type of filesystem object.

Definition at line 2574 of file fossil-util.h.


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