*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: uselocale | Section: 3 | Source: OpenBSD | File: uselocale.3
USELOCALE(3) FreeBSD Library Functions Manual USELOCALE(3) NAME uselocale - select the locale for the current thread SYNOPSIS #include <locale.h> locale_t uselocale(locale_t newloc); DESCRIPTION The function uselocale() selects newloc for use by functions in the current thread that do not take a locale_t argument. Neither the global locale set by setlocale(3) nor locales used by other threads change. The current thread uses newloc until uselocale() is called again successfully with a non-null argument in the same thread, and passing newloc to freelocale(3) or newlocale(3) before that results in undefined behaviour. To revoke the use of newloc in the current thread without installing another thread-specific locale, instead reverting to the global locale, call uselocale() with the special argument LC_GLOBAL_LOCALE. When called with the argument (locale_t)0, the thread-specific locale remains unchanged. RETURN VALUES The function uselocale() returns the thread-specific locale which is in use right before the call, or the special return value LC_GLOBAL_LOCALE if the thread used the global locale before the call. ERRORS The function uselocale() fails if: [EINVAL] The newloc argument is neither a valid locale object nor (locale_t)0. SEE ALSO iswalnum(3), iswctype(3), newlocale(3), towctrans(3), towlower(3), wcscasecmp(3), wctrans(3), wctype(3) STANDARDS The function uselocale() conforms to IEEE Std 1003.1-2008 ("POSIX.1"). HISTORY The function uselocale() has been available since OpenBSD 6.2. FreeBSD 14.1-RELEASE-p8 September 5, 2017 FreeBSD 14.1-RELEASE-p8

Navigation Options