Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

Stat

Public Struct
std.os.emscripten.Stat
pub const Stat = extern struct

Fields

dev: dev_t
mode: mode_t
nlink: nlink_t
uid: uid_t
gid: gid_t
rdev: dev_t
size: off_t
blksize: blksize_t
blocks: blkcnt_t
atim: timespec
mtim: timespec
ctim: timespec
ino: ino_t

Functions

pub fn atime(self: @This()) timespec
pub fn mtime(self: @This()) timespec
pub fn ctime(self: @This()) timespec

File

os/emscripten.zig:780
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
pub const Stat = extern struct {
    dev: dev_t,
    mode: mode_t,
    nlink: nlink_t,
    uid: uid_t,
    gid: gid_t,
    rdev: dev_t,
    size: off_t,
    blksize: blksize_t,
    blocks: blkcnt_t,
    atim: timespec,
    mtim: timespec,
    ctim: timespec,
    ino: ino_t,

    pub fn atime(self: @This()) timespec {
        return self.atim;
    }

    pub fn mtime(self: @This()) timespec {
        return self.mtim;
    }

    pub fn ctime(self: @This()) timespec {
        return self.ctim;
    }
}