Skip to content

Commit 12339fe

Browse files
committed
refactor: 3161 synchronized flag types and mode type
1 parent a0f5b4b commit 12339fe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/windows/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ s! {
5757
pub struct stat {
5858
pub st_dev: dev_t,
5959
pub st_ino: ino_t,
60-
pub st_mode: u16,
60+
pub st_mode: c_ushort,
6161
pub st_nlink: ::c_short,
6262
pub st_uid: ::c_short,
6363
pub st_gid: ::c_short,
@@ -140,13 +140,13 @@ pub const _O_OBTAIN_DIR: ::c_int = 0x2000;
140140
pub const O_SEQUENTIAL: ::c_int = 0x0020;
141141
pub const O_RANDOM: ::c_int = 0x0010;
142142

143-
pub const S_IFCHR: ::c_int = 8192;
144-
pub const S_IFDIR: ::c_int = 16384;
145-
pub const S_IFREG: ::c_int = 32768;
146-
pub const S_IFMT: ::c_int = 61440;
147-
pub const S_IEXEC: ::c_int = 64;
148-
pub const S_IWRITE: ::c_int = 128;
149-
pub const S_IREAD: ::c_int = 256;
143+
pub const S_IFCHR: ::c_ushort = 8192;
144+
pub const S_IFDIR: ::c_ushort = 16384;
145+
pub const S_IFREG: ::c_ushort = 32768;
146+
pub const S_IFMT: ::c_ushort = 61440;
147+
pub const S_IEXEC: ::c_ushort = 64;
148+
pub const S_IWRITE: ::c_ushort = 128;
149+
pub const S_IREAD: ::c_ushort = 256;
150150

151151
pub const LC_ALL: ::c_int = 0;
152152
pub const LC_COLLATE: ::c_int = 1;

0 commit comments

Comments
 (0)