Skip to content

Commit a2ac992

Browse files
djkoloskiJohnTitor
authored andcommitted
Correct types of mode bit constants on Fuchsia
Fuchsia's definitions of these constants were split from the unix impls before #503, and so S_ISUID, S_ISGID, and S_ISVTX are all incorrectly typed as c_int instead of mode_t. This applies the same fix to Fuchsia's constant definitions to bring them in line with the rest of libc.
1 parent 71c79d5 commit a2ac992

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fuchsia/mod.rs

Lines changed: 3 additions & 3 deletions
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 = 0x800;
1338+
pub const S_ISGID: ::mode_t = 0x400;
1339+
pub const S_ISVTX: ::mode_t = 0x200;
13401340

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

0 commit comments

Comments
 (0)