@@ -38,6 +38,7 @@ pub type blksize_t = c_long;
3838pub type blkcnt_t = i64 ;
3939pub type nfds_t = c_ulong ;
4040pub type wchar_t = i32 ;
41+ pub type nl_item = c_int ;
4142
4243s_no_extra_traits ! {
4344 #[ repr( align( 16 ) ) ]
@@ -369,6 +370,71 @@ pub static CLOCK_REALTIME: clockid_t = unsafe { clockid_t(ptr_addr_of!(_CLOCK_RE
369370pub static CLOCK_THREAD_CPUTIME_ID : clockid_t =
370371 unsafe { clockid_t ( ptr_addr_of ! ( _CLOCK_THREAD_CPUTIME_ID) ) } ;
371372
373+ pub const ABDAY_1 : :: nl_item = 0x20000 ;
374+ pub const ABDAY_2 : :: nl_item = 0x20001 ;
375+ pub const ABDAY_3 : :: nl_item = 0x20002 ;
376+ pub const ABDAY_4 : :: nl_item = 0x20003 ;
377+ pub const ABDAY_5 : :: nl_item = 0x20004 ;
378+ pub const ABDAY_6 : :: nl_item = 0x20005 ;
379+ pub const ABDAY_7 : :: nl_item = 0x20006 ;
380+
381+ pub const DAY_1 : :: nl_item = 0x20007 ;
382+ pub const DAY_2 : :: nl_item = 0x20008 ;
383+ pub const DAY_3 : :: nl_item = 0x20009 ;
384+ pub const DAY_4 : :: nl_item = 0x2000A ;
385+ pub const DAY_5 : :: nl_item = 0x2000B ;
386+ pub const DAY_6 : :: nl_item = 0x2000C ;
387+ pub const DAY_7 : :: nl_item = 0x2000D ;
388+
389+ pub const ABMON_1 : :: nl_item = 0x2000E ;
390+ pub const ABMON_2 : :: nl_item = 0x2000F ;
391+ pub const ABMON_3 : :: nl_item = 0x20010 ;
392+ pub const ABMON_4 : :: nl_item = 0x20011 ;
393+ pub const ABMON_5 : :: nl_item = 0x20012 ;
394+ pub const ABMON_6 : :: nl_item = 0x20013 ;
395+ pub const ABMON_7 : :: nl_item = 0x20014 ;
396+ pub const ABMON_8 : :: nl_item = 0x20015 ;
397+ pub const ABMON_9 : :: nl_item = 0x20016 ;
398+ pub const ABMON_10 : :: nl_item = 0x20017 ;
399+ pub const ABMON_11 : :: nl_item = 0x20018 ;
400+ pub const ABMON_12 : :: nl_item = 0x20019 ;
401+
402+ pub const MON_1 : :: nl_item = 0x2001A ;
403+ pub const MON_2 : :: nl_item = 0x2001B ;
404+ pub const MON_3 : :: nl_item = 0x2001C ;
405+ pub const MON_4 : :: nl_item = 0x2001D ;
406+ pub const MON_5 : :: nl_item = 0x2001E ;
407+ pub const MON_6 : :: nl_item = 0x2001F ;
408+ pub const MON_7 : :: nl_item = 0x20020 ;
409+ pub const MON_8 : :: nl_item = 0x20021 ;
410+ pub const MON_9 : :: nl_item = 0x20022 ;
411+ pub const MON_10 : :: nl_item = 0x20023 ;
412+ pub const MON_11 : :: nl_item = 0x20024 ;
413+ pub const MON_12 : :: nl_item = 0x20025 ;
414+
415+ pub const AM_STR : :: nl_item = 0x20026 ;
416+ pub const PM_STR : :: nl_item = 0x20027 ;
417+
418+ pub const D_T_FMT : :: nl_item = 0x20028 ;
419+ pub const D_FMT : :: nl_item = 0x20029 ;
420+ pub const T_FMT : :: nl_item = 0x2002A ;
421+ pub const T_FMT_AMPM : :: nl_item = 0x2002B ;
422+
423+ pub const ERA : :: nl_item = 0x2002C ;
424+ pub const ERA_D_FMT : :: nl_item = 0x2002E ;
425+ pub const ALT_DIGITS : :: nl_item = 0x2002F ;
426+ pub const ERA_D_T_FMT : :: nl_item = 0x20030 ;
427+ pub const ERA_T_FMT : :: nl_item = 0x20031 ;
428+
429+ pub const CODESET : :: nl_item = 14 ;
430+ pub const CRNCYSTR : :: nl_item = 0x4000F ;
431+ pub const RADIXCHAR : :: nl_item = 0x10000 ;
432+ pub const THOUSEP : :: nl_item = 0x10001 ;
433+ pub const YESEXPR : :: nl_item = 0x50000 ;
434+ pub const NOEXPR : :: nl_item = 0x50001 ;
435+ pub const YESSTR : :: nl_item = 0x50002 ;
436+ pub const NOSTR : :: nl_item = 0x50003 ;
437+
372438#[ cfg_attr(
373439 feature = "rustc-dep-of-std" ,
374440 link(
@@ -657,6 +723,9 @@ extern "C" {
657723 pub fn getcwd ( buf : * mut c_char , size : :: size_t ) -> * mut c_char ;
658724 pub fn chdir ( dir : * const c_char ) -> :: c_int ;
659725
726+ pub fn nl_langinfo ( item : :: nl_item ) -> * mut :: c_char ;
727+ pub fn nl_langinfo_l ( item : :: nl_item , loc : :: locale_t ) -> * mut :: c_char ;
728+
660729 pub fn __wasilibc_register_preopened_fd ( fd : c_int , path : * const c_char ) -> c_int ;
661730 pub fn __wasilibc_fd_renumber ( fd : c_int , newfd : c_int ) -> c_int ;
662731 pub fn __wasilibc_unlinkat ( fd : c_int , path : * const c_char ) -> c_int ;
0 commit comments