Implement strerror_l().Only for the arches that provide user-mode TLS.PR: 251651Requested by: yuriDiscussed with: emaste, jilles, tijlSponsored by: The FreeBSD FoundationDifferential revision
Implement strerror_l().Only for the arches that provide user-mode TLS.PR: 251651Requested by: yuriDiscussed with: emaste, jilles, tijlSponsored by: The FreeBSD FoundationDifferential revision: https://reviews.freebsd.org/D27495MFC after: 2 weeks
show more ...
Replace literal uses of /usr/local in C sources with _PATH_LOCALBASELiteral references to /usr/local exist in a large number of files inthe FreeBSD base system. Many are in contributed software, i
Replace literal uses of /usr/local in C sources with _PATH_LOCALBASELiteral references to /usr/local exist in a large number of files inthe FreeBSD base system. Many are in contributed software, in configurationfiles, or in the documentation, but 19 uses have been identified in Csource files or headers outside the contrib and sys/contrib directories.This commit makes it possible to set _PATH_LOCALBASE in paths.h to usea different prefix for locally installed software.In order to avoid changes to openssh source files, LOCALBASE is passed tothe build via Makefiles under src/secure. While _PATH_LOCALBASE could havebeen used here, there is precedent in the construction of the path used toa xauth program which depends on the LOCALBASE value passed on the compilercommand line to select a non-default directory.This could be changed in a later commit to make the openssh buildconsistently use _PATH_LOCALBASE. It is considered out-of-scope for thiscommit.Reviewed by: impMFC after: 1 monthDifferential Revision: https://reviews.freebsd.org/D26942
Fix race condition in catopen(3).The current code uses a rwlock to protect the cached list, whichin turn holds a list of catentry objects, and increments referencecount while holding only read lo
Fix race condition in catopen(3).The current code uses a rwlock to protect the cached list, whichin turn holds a list of catentry objects, and increments referencecount while holding only read lock.Fix this by converting the reference counter to use atomic operations.While I'm there, also perform some clean ups around memory operations.PR: 202636Reported by: Henry Hu <[email protected]>Reviewed by: markjMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D24095
Create new EINTEGRITY error with message "Integrity check failed".An integrity check such as a check-hash or a cross-correlation failed.The integrity error falls between EINVAL that identifies err
Create new EINTEGRITY error with message "Integrity check failed".An integrity check such as a check-hash or a cross-correlation failed.The integrity error falls between EINVAL that identifies errors inparameters to a system call and EIO that identifies errors with theunderlying storage media. EINTEGRITY is typically raised by intermediatekernel layers such as a filesystem or an in-kernel GEOM subsystem whenthey detect inconsistencies. Uses include allowing the mount(8) commandto return a different exit value to automate the running of fsck(8)during a system boot.These changes make no use of the new error, they just add it. Latercommits will be made for the use of the new error number and it willbe added to additional manual pages as appropriate.Reviewed by: gnn, dim, brueffer, impDiscussed with: kib, cem, emaste, ed, jillesDifferential Revision: https://reviews.freebsd.org/D18765
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
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
123456