From b9979e9a59f202c39a0d507f637c60692d5fd8aa Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Thu, 16 Sep 2021 19:23:55 +0200 Subject: LibC: Implement most langinfo values mentioned in POSIX --- Userland/Libraries/LibC/langinfo.h | 61 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) (limited to 'Userland/Libraries/LibC/langinfo.h') diff --git a/Userland/Libraries/LibC/langinfo.h b/Userland/Libraries/LibC/langinfo.h index 3470f18f93..c52aacaa99 100644 --- a/Userland/Libraries/LibC/langinfo.h +++ b/Userland/Libraries/LibC/langinfo.h @@ -13,6 +13,67 @@ __BEGIN_DECLS enum { CODESET, + + D_T_FMT, + D_FMT, + T_FMT, + T_FMT_AMPM, + AM_STR, + PM_STR, + + DAY_1, + DAY_2, + DAY_3, + DAY_4, + DAY_5, + DAY_6, + DAY_7, + + ABDAY_1, + ABDAY_2, + ABDAY_3, + ABDAY_4, + ABDAY_5, + ABDAY_6, + ABDAY_7, + + MON_1, + MON_2, + MON_3, + MON_4, + MON_5, + MON_6, + MON_7, + MON_8, + MON_9, + MON_10, + MON_11, + MON_12, + + ABMON_1, + ABMON_2, + ABMON_3, + ABMON_4, + ABMON_5, + ABMON_6, + ABMON_7, + ABMON_8, + ABMON_9, + ABMON_10, + ABMON_11, + ABMON_12, + + ERA, + ERA_D_FMT, + ERA_D_T_FMT, + ERA_T_FMT, + + ALT_DIGITS, + RADIXCHAR, + THOUSEP, + YESEXPR, + NOEXPR, + CRNCYSTR, }; char* nl_langinfo(nl_item); -- cgit v1.2.3