| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) _locale.h
LC_*_MASK bit shifting order was partially broken from the initial commit
time at year 2012. Only LC_COLLATE_MASK and LC_CTYPE_MASK are in the
right order.
The order here should match XLC_* from "xlocale_private.h" which, in turn,
match LC_* publicly visible order from <locale.h> which determines how
locale components are stored in the structure.
LC_*_MASK -> XLC_* translation done as "ffs(mask) - 1" in the querylocale()
and equivalent shift loop in the newlocale(), so mapped to some wrong
components (excluding two mentioned above).
Formally the fix is ABI breakage, but old code using those masks
never works properly in any case.
Only newlocale() and querylocale() are affected.
2) msgcat.c
Use current locale (f.e. set by thread). It was global locale always
previously.
PR: 211743
|
|
|
|
|
|
|
|
| |
When catopen(3) returns an error, it caches the result of that error from
r202992. The refcount on the cache entry is not initialized, so any attempt
to clean the cache will skip over this item since it likely has a >0 value.
This change is currently a NOP.
|
| |
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
| |
PR: kern/177704
Submitted by: martymac
MFC after: 1 week
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
| |
Reviewed by: alphachi <alphachi mediaspirit.org>
MFC after: 2 weeks
|
|
|
|
|
|
|
|
| |
PR: kern/173008
Submitted by: Zhihao Yuan <lichray@gmail.com>
Reviewed by: gabor
Approved by: cperciva (implicit)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
This fixes a race condition where another thread may fork() before CLOEXEC
is set, unintentionally passing the descriptor to the child process.
This commit only adds O_CLOEXEC flags to open() or openat() calls where no
fcntl(fd, F_SETFD, FD_CLOEXEC) follows. The separate fcntl() call still
leaves a race window so it should be fixed later.
|
|
|
|
|
|
|
|
| |
errnos: EBADMSG, EMULTIHOP, ENOLINK, EPROTO, ENOTCAPABLE.
PR: docs/147983
Submitted by: pluknet
MFC after: 1 week
|
|
|
|
| |
Approved by: delphij (mentor)
|
|
|
|
|
|
|
| |
- style(9) nits
Pointed out by: jilles [1]
Approved by: delphij (mentor)
|
|
|
|
| |
Pointed out by: bde
|
|
|
|
| |
Approved by: delphij
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Continuous catopen() calls cause 4 failig stat(2) each, which means a lot
of overhead. It is also a good idea to keep the opened catalogs in the memory
to speed up further catopen() calls to the same catalog since these catalogs
are not big at all. In this case, we count references and only free() the
allocated space when the reference count reaches 0. The reads and writes to
the cache are syncronized with an rwlock when these functions are called from
a threaded program.
Requested by: kib
Approved by: delphij
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Reviewed by: carvay,
the.infamous.paul@gmail.com,
Joan Picanyol i Puig <lists-freebsd-es@biaix.org>,
Ing . Marcos Luis Ortiz Valmaseda <mlortiz@uci.cu>,
eskanete@gmail.com,
Jose M Rodriguez <josemi@freebsd.jazztel.es>,
Guillermo Hernandez <guillermo@QuerySoft.es>,
dani.doni@gmail.com
|
| |
|
| |
|
|
|
|
|
| |
Reviewed by: remko
Approved by: remko
|
|
|
|
| |
ENOLINK, EPROTO, ENOTCAPABLE.
|
| |
|
|
|
|
| |
Controlled by NLS define.
|
|
|
|
|
| |
Pointed out by: nyan
MFC after: 1 week
|
|
|
|
|
| |
Reviewed by: hrs, nork, takawata
MFC after: 1 week
|
|
|
|
|
| |
Reviewed by: hrs, nork, takawata
MFC after: 1 week
|
|
|
|
| |
Requested by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
|
|
|
|
| |
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
|
|
|
|
|
|
|
| |
ENOLINK, EPROTO, ENOTCAPABLE.
Submitted by: Alan R. S. Bueno <alan.bsd at gmail.com>
MFC after: 3 days (most)
|
| |
|
|
|
|
|
|
| |
Some parts (ERANGE, ETXTBSY) triggered by Christoph Mallon.
Discussed with: brueffer, gabor (previous version)
|
|
|
|
|
| |
PR: conf/133004
Submitted by: Tatsiana Elavaya <t.elavaya@gmail.com>
|
| |
|
|
|
|
| |
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
|
|
|
|
|
|
| |
PR: kern/132773
Reported by: Alan R. S. Bueno <alan.bsd@gmail.com>
Submitted by: Murilo Opsfelder <mopsfelder@gmail.com>
|
|
|
|
|
|
|
|
| |
- Fixes for German catalog [2]
PR: kern/132694 [1], conf/80504 [2]
Submitted by: Murilo Opsfelder <mopsfelder@gmail.com> [1],
brueffer [2]
|
|
|
|
|
|
| |
mkdir calls
- Remove the ugly workaroung from libc NLS, which was to create some of
these directories
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to possible breakages in the catalog handling code. Since then, that
code has been replaced by the secure code from NetBSD but NLS in libc
remained turned off. Tests have shown that the feature is stable and
working so we can now turn it on again.
- Add several new catalog files:
- ca_ES.ISO8859-1
- de_DE.ISO8859-1
- el_GR.ISO8859-7 (by manolis@ and keramida@)
- es_ES.ISO8859-1 (kern/123179, by carvay@)
- fi_FI.ISO8859-1
- fr_FR.ISO8859-1 (kern/78756, by thierry@)
- hu_HU.ISO8859-2 (by gabor@)
- it_IT.ISO8859-15
- nl_NL.ISO8859-1 (corrections by rene@)
- no_NO.ISO8859-1
- mn_MN.UTF-8 (by ganbold@)
- sk_SK.ISO8859-2
- sv_SE.ISO8859-1
(The catalogs without explicit source has been obtained from NetBSD.)
Approved by: attilio
|
| |
|
| |
|
|
|
|
| |
Reviewed by: davidxu
|
| |
|
|
|
|
|
|
| |
Requested by: many Korean users from bsdforum.or.kr
Submitted by: perky
Approved by: anholt (mentor)
|
|
|
|
| |
Approved by: re
|
|
|
|
|
| |
Submitted by: Hye-Shik Chang <perky@FreeBSD.org>
PR: misc/78290
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Translated by: Valeriy Kravchuk <openxs@ipnet.kiev.ua>
Alexey Dokuchaev <danfe@nsu.ru>
|