diff options
author | joel <joel@FreeBSD.org> | 2012-03-25 16:00:56 +0000 |
---|---|---|
committer | joel <joel@FreeBSD.org> | 2012-03-25 16:00:56 +0000 |
commit | db7581ccf5eaa9a69c6969b93bdac3408d1f1d0c (patch) | |
tree | dbe9b4470af7195ad940bc288cb0ea4b23dc7c8c /lib/libc | |
parent | fd2370c0573dde79a290d6194b6b88aa8b6b2cb1 (diff) | |
download | FreeBSD-src-db7581ccf5eaa9a69c6969b93bdac3408d1f1d0c.zip FreeBSD-src-db7581ccf5eaa9a69c6969b93bdac3408d1f1d0c.tar.gz |
Make sure sections are sorted into conventional order.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/duplocale.3 | 18 | ||||
-rw-r--r-- | lib/libc/locale/xlocale.3 | 30 | ||||
-rw-r--r-- | lib/libc/sys/cap_new.2 | 10 |
3 files changed, 29 insertions, 29 deletions
diff --git a/lib/libc/locale/duplocale.3 b/lib/libc/locale/duplocale.3 index 9c14c52..712b578 100644 --- a/lib/libc/locale/duplocale.3 +++ b/lib/libc/locale/duplocale.3 @@ -59,15 +59,6 @@ locale. .Pt The locale returned by this call must be freed with .Xr freelocale 3 . -.Sh BUGS -Ideally, -.Xr uselocale 3 -should make a copy of the -.Fa locale_t -implicitly to ensure thread safety, -and a copy of the global locale should be installed lazily on each thread. -The FreeBSD implementation does not do this, -for compatibility with Darwin. .Sh SEE ALSO .Xr freelocale 3 , .Xr localeconv 3 , @@ -78,3 +69,12 @@ for compatibility with Darwin. .Sh STANDARDS This function, conforms to .St -p1003.1-2008 +.Sh BUGS +Ideally, +.Xr uselocale 3 +should make a copy of the +.Fa locale_t +implicitly to ensure thread safety, +and a copy of the global locale should be installed lazily on each thread. +The FreeBSD implementation does not do this, +for compatibility with Darwin. diff --git a/lib/libc/locale/xlocale.3 b/lib/libc/locale/xlocale.3 index debe7f5..11a392d 100644 --- a/lib/libc/locale/xlocale.3 +++ b/lib/libc/locale/xlocale.3 @@ -65,21 +65,6 @@ LC_GLOBAL_LOCALE refers to the global locale. The global locale is the locale set with the .Xr setlocale 3 function. -.Sh CAVEATS -The -.Xr setlocale 3 -function, and others in the family, refer to the global locale. -Other functions that depend on the locale, however, -will take the thread-local locale if one has been set. -This means that the idiom of setting the locale using -.Xr setlocale 3 , -calling a locale-dependent function, -and then restoring the locale will not -have the expected behavior if the current thread has had a locale set using -.Xr uselocale 3 . -You should avoid this idiom and prefer to use the -.Fa _l -suffixed versions instead. .Sh SEE ALSO .Xr duplocale 3 , .Xr freelocale 3 , @@ -278,3 +263,18 @@ The xlocale APIs first appeared in Darwin 8.0. This implementation was written by David Chisnall, under sponsorship from the FreeBSD Foundation and first appeared in .Fx 9.1 . +.Sh CAVEATS +The +.Xr setlocale 3 +function, and others in the family, refer to the global locale. +Other functions that depend on the locale, however, +will take the thread-local locale if one has been set. +This means that the idiom of setting the locale using +.Xr setlocale 3 , +calling a locale-dependent function, +and then restoring the locale will not +have the expected behavior if the current thread has had a locale set using +.Xr uselocale 3 . +You should avoid this idiom and prefer to use the +.Fa _l +suffixed versions instead. diff --git a/lib/libc/sys/cap_new.2 b/lib/libc/sys/cap_new.2 index 362be5c..b469f9a 100644 --- a/lib/libc/sys/cap_new.2 +++ b/lib/libc/sys/cap_new.2 @@ -462,14 +462,14 @@ argument is not a capability. Support for capabilities and capabilities mode was developed as part of the .Tn TrustedBSD Project. +.Sh AUTHORS +These functions and the capability facility were created by +.An "Robert N. M. Watson" +at the University of Cambridge Computer Laboratory with support from a grant +from Google, Inc. .Sh BUGS This man page should list the set of permitted system calls more specifically for each capability right. .Pp Capability rights sometimes have unclear indirect impacts, which should be documented, or at least hinted at. -.Sh AUTHORS -These functions and the capability facility were created by -.An "Robert N. M. Watson" -at the University of Cambridge Computer Laboratory with support from a grant -from Google, Inc. |