Skip to content

Commit

Permalink
Merge pull request #3625 from Lilit0x/stat-flags-and-mode-type
Browse files Browse the repository at this point in the history
Windows `stats::st_mode` and `stat` flags type.
  • Loading branch information
tgross35 authored Nov 20, 2024
2 parents 91c1297 + b56d275 commit 117d6b0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ s! {
pub struct stat {
pub st_dev: dev_t,
pub st_ino: ino_t,
pub st_mode: u16,
pub st_mode: c_ushort,
pub st_nlink: ::c_short,
pub st_uid: ::c_short,
pub st_gid: ::c_short,
Expand Down Expand Up @@ -142,13 +142,13 @@ pub const _O_OBTAIN_DIR: ::c_int = 0x2000;
pub const O_SEQUENTIAL: ::c_int = 0x0020;
pub const O_RANDOM: ::c_int = 0x0010;

pub const S_IFCHR: ::c_int = 0o2_0000;
pub const S_IFDIR: ::c_int = 0o4_0000;
pub const S_IFREG: ::c_int = 0o10_0000;
pub const S_IFMT: ::c_int = 0o17_0000;
pub const S_IEXEC: ::c_int = 0o0100;
pub const S_IWRITE: ::c_int = 0o0200;
pub const S_IREAD: ::c_int = 0o0400;
pub const S_IFCHR: ::c_ushort = 0o2_0000;
pub const S_IFDIR: ::c_ushort = 0o4_0000;
pub const S_IFREG: ::c_ushort = 0o10_0000;
pub const S_IFMT: ::c_ushort = 0o17_0000;
pub const S_IEXEC: ::c_ushort = 0o0100;
pub const S_IWRITE: ::c_ushort = 0o0200;
pub const S_IREAD: ::c_ushort = 0o0400;

pub const LC_ALL: ::c_int = 0;
pub const LC_COLLATE: ::c_int = 1;
Expand Down

0 comments on commit 117d6b0

Please sign in to comment.