Skip to content

Commit 005ae8d

Browse files
authored
Merge pull request #3654 from djkoloski/correct_fuchsia_mode_constants
Correct types of mode bit constants on Fuchsia
2 parents 12fda3e + 0338155 commit 005ae8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fuchsia/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1334,9 +1334,9 @@ pub const GRPQUOTA: ::c_int = 1;
13341334

13351335
pub const SIGIOT: ::c_int = 6;
13361336

1337-
pub const S_ISUID: ::c_int = 0x800;
1338-
pub const S_ISGID: ::c_int = 0x400;
1339-
pub const S_ISVTX: ::c_int = 0x200;
1337+
pub const S_ISUID: ::mode_t = 0o4000;
1338+
pub const S_ISGID: ::mode_t = 0o2000;
1339+
pub const S_ISVTX: ::mode_t = 0o1000;
13401340

13411341
pub const IF_NAMESIZE: ::size_t = 16;
13421342
pub const IFNAMSIZ: ::size_t = IF_NAMESIZE;

0 commit comments

Comments
 (0)