Use current locale (f.e. set by thread). It was global locale alwayspreviously.MFC after: 7 days
Move logic to destroy a struct catentry to its own function.This will be used later for memory leak handling.Obtained from: OneFSSponsored by: EMC / Isilon Storage Division
Use mdoc(7) macros to handle parenthesis
When catopen(3) returns an error, it caches the result of that errorfrom r202992. The refcount on the cache entry is not initialized, soany attempt to clean the cache will skip over this item since
When catopen(3) returns an error, it caches the result of that errorfrom r202992. The refcount on the cache entry is not initialized, soany attempt to clean the cache will skip over this item since it likelyhas a >0 value.This change is currently a NOP. There is work in progress to supportfreeing the cache which requires this change to avoid a memory leak.MFC after: 2 weeksSponsored by: EMC / Isilon Storage Division
show more ...
Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}if not already defined. This allows building libc from outside oflib/libc using a reach-over makefile.A typical use-case is to
Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}if not already defined. This allows building libc from outside oflib/libc using a reach-over makefile.A typical use-case is to build a standard ILP32 version and a COMPAT32version in a single iteration by building the COMPAT32 version using areach-over makefile.Obtained from: Juniper Networks, Inc.
POSIX 1003.1-2008: add ENOTRECOVERABLE, EOWNERDEAD errnos.
Add entry for errno ECAPMODE.MFC after: 3 days
libc: Fix typo in French translation.PR: kern/177704Submitted by: martymacMFC after: 1 week
Add derived versions for common Simplified Chinese encodings.MFC after: 2 weeks
Add zh_CN.UTF-8 catalog.Reviewed by: alphachi <alphachi mediaspirit.org>MFC after: 2 weeks
Fix warning from valgrind when a failed entry is tested.PR: kern/173008Submitted by: Zhihao Yuan <[email protected]>Reviewed by: gaborApproved by: cperciva (implicit)MFC after: 1 week
libc: Use O_CLOEXEC for various internal file descriptors.This fixes a race condition where another thread may fork() before CLOEXECis set, unintentionally passing the descriptor to the child proc
libc: Use O_CLOEXEC for various internal file descriptors.This fixes a race condition where another thread may fork() before CLOEXECis set, unintentionally passing the descriptor to the child process.This commit only adds O_CLOEXEC flags to open() or openat() calls where nofcntl(fd, F_SETFD, FD_CLOEXEC) follows. The separate fcntl() call stillleaves a race window so it should be fixed later.
Merge from English r198040: add C message catalogue entries for newererrnos: EBADMSG, EMULTIHOP, ENOLINK, EPROTO, ENOTCAPABLE.PR: docs/147983Submitted by: pluknetMFC after: 1 week
- More style(9) fixupsApproved by: delphij (mentor)
- Deal with some special cases [1]- style(9) nitsPointed out by: jilles [1]Approved by: delphij (mentor)
- Fix some style(9) bugsPointed out by: bde
- style(9)Approved by: delphij
Cache failing and opened catalogs in catopen() and related functions.Continuous catopen() calls cause 4 failig stat(2) each, which means a lotof overhead. It is also a good idea to keep the opened
Cache failing and opened catalogs in catopen() and related functions.Continuous catopen() calls cause 4 failig stat(2) each, which means a lotof overhead. It is also a good idea to keep the opened catalogs in the memoryto speed up further catopen() calls to the same catalog since these catalogsare not big at all. In this case, we count references and only free() theallocated space when the reference count reaches 0. The reads and writes tothe cache are syncronized with an rwlock when these functions are called froma threaded program.Requested by: kibApproved by: delphij
- Update Galician catalog
- Update the Spanish NLS catalogReviewed by: carvay, [email protected], Joan Picanyol i Puig <[email protected]>, Ing . Marcos Luis Ortiz Valmaseda <[email protected]>, eska
- Update the Spanish NLS catalogReviewed by: carvay, [email protected], Joan Picanyol i Puig <[email protected]>, Ing . Marcos Luis Ortiz Valmaseda <[email protected]>, [email protected], Jose M Rodriguez <[email protected]>, Guillermo Hernandez <[email protected]>, [email protected]
- Update Hungarian libc catalog
Sync with C.msg r199083.
Synchronize with C.msg revision 199083 and improve some existing messages.Reviewed by: remkoApproved by: remko
Add Japanese catalogue entries for newer errnos: EBADMSG, EMULTIHOP,ENOLINK, EPROTO, ENOTCAPABLE.
Add gai_strerror() catalog for ja_JP.UTF-8 and ja_JP.eucJP.
123456