svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
langinfo.h(3head)
langinfo.h(3HEAD) Headers langinfo.h(3HEAD)
NAME
langinfo.h, langinfo - language information constants
SYNOPSIS
#include <langinfo.h>
DESCRIPTION
The <langinfo.h> header contains the constants used to identify items
of langinfo data (see nl_langinfo(3C)). The type of the constant,
nl_item, is defined as described in <nl_types.h>.
The <langinfo.h> header defines the locale_t type as described in
<locale.h>.
The following constants are defined. The entries under Category indi‐
cate in which setlocale(3C) category each item is defined.
tab(); lw(1.4i) lw(1.44i) lw(2.66i) lw(1.4i) lw(1.44i) lw(2.66i) Con‐
stantCategoryMeaning _ CODESETLC_CTYPEcodeset name _
D_T_FMTLC_TIMEstring for formatting date and time _ D_FMTLC_TIMEdate
format string _ T_FMTLC_TIMEtime format string _ T_FMT_AMPMLC_TIMEa.m.
or p.m. time format string _ AM_STRLC_TIMEante-meridiem affix _
PM_STRLC_TIMEpost-meridiem affix _ DAY_1LC_TIMET{ name of the first day
of the week (for example, Sunday) T} _ DAY_2LC_TIMET{ name of the sec‐
ond day of the week (for example, Monday) T} _ DAY_3LC_TIMET{ name of
the third day of the week (for example, Tuesday) T} _ DAY_4LC_TIMET{
name of the fourth day of the week (for example, Wednesday) T} _
DAY_5LC_TIMET{ name of the fifth day of the week (for example, Thurs‐
day) T} _ DAY_6LC_TIMET{ name of the sixth day of the week (for exam‐
ple, Friday) T} _ DAY_7LC_TIMET{ name of the seventh day of the week
(for example, Saturday) T} _ ABDAY_1LC_TIMET{ abbreviated name of the
first day of the week T} _ ABDAY_2LC_TIMET{ abbreviated name of the
second day of the week T} _ ABDAY_3LC_TIMET{ abbreviated name of the
third day of the week T} _ ABDAY_4LC_TIMET{ abbreviated name of the
fourth day of the week T} _ ABDAY_5LC_TIMET{ abbreviated name of the
fifth day of the week T} _ ABDAY_6LC_TIMET{ abbreviated name of the
seventh day of the week T} _ ABDAY_7LC_TIMET{ abbreviated name of the
seventh day of the week T} _ MON_1LC_TIMEname of the first month of the
year _ MON_2LC_TIMEname of the second month _ MON_3LC_TIMEname of the
third month _ MON_4LC_TIMEname of the fourth month _ MON_5LC_TIMEname
of the fifth month _ MON_6LC_TIMEname of the sixth month _
MON_7LC_TIMEname of the seventh month _ MON_8LC_TIMEname of the eighth
month _ MON_9LC_TIMEname of the ninth month _ MON_10LC_TIMEname of the
tenth month _ MON_11LC_TIMEname of the eleventh month _ MON_12LC_TIME‐
name of the twelfth month _ ABMON_1LC_TIMEabbreviated name of the first
month _ ABMON_2LC_TIMEabbreviated name of the second month _
ABMON_3LC_TIMEabbreviated name of the third month _ ABMON_4LC_TIMEab‐
breviated name of the fourth month _ ABMON_5LC_TIMEabbreviated name of
the fifth month _ ABMON_6LC_TIMEabbreviated name of the sixth month _
ABMON_7LC_TIMEabbreviated name of the seventh month _ ABMON_8LC_TIMEab‐
breviated name of the eighth month _ ABMON_9LC_TIMEabbreviated name of
the ninth month _ ABMON_10LC_TIMEabbreviated name of the tenth month _
ABMON_11LC_TIMEabbreviated name of the eleventh month _
ABMON_12LC_TIMEabbreviated name of the twelfth month _ ERALC_TIMEera
description segments _ ERA_D_FMTLC_TIMEera date format string _
ERA_D_T_FMTLC_TIMEera date and time format string _ ERA_T_FMTLC_TIMEera
time format string _ ALT_DIGITSLC_TIMEalternative symbols for digits _
RADIXCHARLC_NUMERICradix character _ THOUSEPLC_NUMERICseparator for
thousands _ YESEXPRLC_MESSAGESaffirmative response expression _ NOEX‐
PRLC_MESSAGESnegative response expression _ YESSTRLC_MESSAGESaffirma‐
tive response for yes/no queries _ NOSTRLC_MESSAGESnegative response ro
yes/no queries _ CRNCYSTRLC_MONETARYT{ local currency symbol, preceded
by '-' if the symbol should appear before the value, '+' if the symbol
should appear after the value, or '.' if the symbol should replace the
radix character T}
If the locale's values for p_cs_precedes and n_cs_precedes do not
match, the value of nl_langinfo(CRNCYSTR) is unspecified.
The <langinfo.h> header declares the following as a function:
char *nl_langinfo(nl_item);
char *nl_langinfo_l(nl_item, locale_t);
Inclusion of <langinfo.h> header may also make visible all symbols from
<nl_types.h>.
USAGE
Wherever possible, users are advised to use functions compatible with
those in the ISO C standard to access items of langinfo data. In par‐
ticular, the strftime(3C) function should be used to access date and
time information defined in category LC_TIME. The localeconv(3C) func‐
tion should be used to access information corresponding to RADIXCHAR,
THOUSEP, and CRNCYSTR.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Interface StabilityCommitted _ StandardSee stan‐
dards(7).
SEE ALSO
mkmsgs(1), localeconv(3C), nl_langinfo(3C), setlocale(3C), strf‐
time(3C), locale.h(3HEAD), nl_types.h(3HEAD), attributes(7), stan‐
dards(7)
Oracle Solaris 11.4 13 Nov 2020 langinfo.h(3HEAD)