diff options
author | Sébastien Marie <semarie@online.fr> | 2022-10-17 16:06:41 +0000 |
---|---|---|
committer | Sébastien Marie <semarie@online.fr> | 2022-10-17 16:06:41 +0000 |
commit | 75224dd1cf6aa419b3e24ced42c77284a715e6a3 (patch) | |
tree | b982e99b36baa98ddf8099e54c3a9c3a873d5b24 | |
parent | 998e88630ebbdceda33774cd6531335254f9769b (diff) | |
download | rust-libc-75224dd1cf6aa419b3e24ced42c77284a715e6a3.tar.gz |
openbsd: add more locale constants for use with newlocale()
-rw-r--r-- | src/unix/bsd/netbsdlike/openbsd/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs index 506306e9f7..f63ad9e638 100644 --- a/src/unix/bsd/netbsdlike/openbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs @@ -1643,6 +1643,18 @@ pub const MNT_WAIT: ::c_int = 1; pub const MNT_NOWAIT: ::c_int = 2; pub const MNT_LAZY: ::c_int = 3; +pub const LC_COLLATE_MASK: ::c_int = 1 << ::LC_COLLATE; +pub const LC_CTYPE_MASK: ::c_int = 1 << ::LC_CTYPE; +pub const LC_MONETARY_MASK: ::c_int = 1 << ::LC_MONETARY; +pub const LC_NUMERIC_MASK: ::c_int = 1 << ::LC_NUMERIC; +pub const LC_TIME_MASK: ::c_int = 1 << ::LC_TIME; +pub const LC_MESSAGES_MASK: ::c_int = 1 << ::LC_MESSAGES; + +const _LC_LAST: ::c_int = 7; +pub const LC_ALL_MASK: ::c_int = (1 << _LC_LAST) - 2; + +pub const LC_GLOBAL_LOCALE: ::locale_t = -1isize as ::locale_t; + const_fn! { {const} fn _ALIGN(p: usize) -> usize { (p + _ALIGNBYTES) & !_ALIGNBYTES |