libc::stat - Rust
Description: API documentation for the Rust `stat` struct in crate `libc`.
Keywords: rust, rustlang, rust-lang, stat

# Struct libc::stat [−] [src]

    pub struct stat {
        pub st_dev: dev_t,
        pub st_ino: ino_t,
        pub st_mode: mode_t,
        pub st_nlink: nlink_t,
        pub st_uid: uid_t,
        pub st_gid: gid_t,
        pub st_rdev: dev_t,
        pub st_size: off_t,
        pub st_blksize: blksize_t,
        pub st_blocks: blkcnt_t,
        pub st_atime: time_t,
        pub st_atime_nsec: c_long,
        pub st_mtime: time_t,
        pub st_mtime_nsec: c_long,
        pub st_ctime: time_t,
        pub st_ctime_nsec: c_long,
        // some fields omitted
    }

Unstable (`libc`)

: use `libc` from crates.io

## Fields

`st_dev: dev_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_ino: ino_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_mode: mode_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_nlink: nlink_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_uid: uid_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_gid: gid_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_rdev: dev_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_size: off_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_blksize: blksize_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_blocks: blkcnt_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_atime: time_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_atime_nsec: c_long`
Unstable (`libc`)

: use `libc` from crates.io

`st_mtime: time_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_mtime_nsec: c_long`
Unstable (`libc`)

: use `libc` from crates.io

`st_ctime: time_t`
Unstable (`libc`)

: use `libc` from crates.io

`st_ctime_nsec: c_long`
Unstable (`libc`)

: use `libc` from crates.io

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)