Skip to content

Commit fad1e6f

Browse files
committed
Auto merge of #2153 - umanwizard:locale, r=JohnTitor
Add some locale-related functions for openbsd These are available since OpenBSD 6.2.
2 parents 802f327 + 39be894 commit fad1e6f

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,10 @@ extern "C" {
15391539
>,
15401540
data: *mut ::c_void,
15411541
) -> ::c_int;
1542+
pub fn uselocale(loc: ::locale_t) -> ::locale_t;
1543+
pub fn freelocale(loc: ::locale_t);
1544+
pub fn newlocale(mask: ::c_int, locale: *const ::c_char, base: ::locale_t) -> ::locale_t;
1545+
pub fn duplocale(base: ::locale_t) -> ::locale_t;
15421546
}
15431547

15441548
cfg_if! {

0 commit comments

Comments
 (0)