libfossil
fsl_fstat Struct Reference

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

#include "util.h"

Collaboration diagram for fsl_fstat:

Data Fields

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

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 3321 of file util.h.

Field Documentation

◆ ctime

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 3332 of file util.h.

◆ mtime

fsl_time_t fsl_fstat::mtime

Last modification time.

Definition at line 3336 of file util.h.

◆ perm

int fsl_fstat::perm

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

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

Definition at line 3346 of file util.h.

◆ size

fsl_size_t fsl_fstat::size

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

Definition at line 3340 of file util.h.

◆ type

fsl_fstat_type_e fsl_fstat::type

Indicates the type of filesystem object.

Definition at line 3325 of file util.h.


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