Skip to content

Commit 75224dd

Browse files
committed
openbsd: add more locale constants for use with newlocale()
1 parent 998e886 commit 75224dd

File tree

1 file changed

+12
-0
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+12
-0
lines changed

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,18 @@ pub const MNT_WAIT: ::c_int = 1;
16431643
pub const MNT_NOWAIT: ::c_int = 2;
16441644
pub const MNT_LAZY: ::c_int = 3;
16451645

1646+
pub const LC_COLLATE_MASK: ::c_int = 1 << ::LC_COLLATE;
1647+
pub const LC_CTYPE_MASK: ::c_int = 1 << ::LC_CTYPE;
1648+
pub const LC_MONETARY_MASK: ::c_int = 1 << ::LC_MONETARY;
1649+
pub const LC_NUMERIC_MASK: ::c_int = 1 << ::LC_NUMERIC;
1650+
pub const LC_TIME_MASK: ::c_int = 1 << ::LC_TIME;
1651+
pub const LC_MESSAGES_MASK: ::c_int = 1 << ::LC_MESSAGES;
1652+
1653+
const _LC_LAST: ::c_int = 7;
1654+
pub const LC_ALL_MASK: ::c_int = (1 << _LC_LAST) - 2;
1655+
1656+
pub const LC_GLOBAL_LOCALE: ::locale_t = -1isize as ::locale_t;
1657+
16461658
const_fn! {
16471659
{const} fn _ALIGN(p: usize) -> usize {
16481660
(p + _ALIGNBYTES) & !_ALIGNBYTES

0 commit comments

Comments
 (0)