| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Only for the arches that provide user-mode TLS.
PR: 251651
Requested by: yuri
Discussed with: emaste, jilles, tijl
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D27495
MFC after: 2 weeks
Notes:
svn path=/head/; revision=368692
|
|
|
|
|
|
|
|
|
| |
Reported by: gj
MFC after: 13 days
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=342574
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Addition of the new errno values requires adding new elements to
sys_errlist array, which is actually ABI-incompatible, since ELF
records the object size. Expand array in advance to 150 elements so
that we have our users to go over the issue only once, at least until
more than 53 new errors are added.
I did not bumped the symbol version, same as it was not done for
previous increases of the array size. Runtime linker only copies as
much data into binary object on copy relocation as the binary'object
specifies. This is not fixable for binaries which access sys_errlist
directly.
While there, correct comment and calculation of the temporary buffer
size for the message printed for unknown error. The on-stack buffer
is used only for the number and delimiter since r108603.
Requested by: mckusick
Reviewed by: mckusick, yuripv
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D18656
Notes:
svn path=/head/; revision=342551
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
Notes:
svn path=/head/; revision=326025
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This ensures strerror() and friends continue to work correctly even if a
(non-PIE) executable linked against an older libc imports sys_errlist (which
causes sys_errlist to refer to the executable's copy with a size fixed when
that executable was linked).
The executable's use of sys_errlist remains broken because it uses the
current value of sys_nerr and may access past the bounds of the array.
Different from the message "Using sys_errlist from executables is not
ABI-stable" on freebsd-arch, this change does not affect the static library.
There seems no reason to prevent overriding the error messages in the static
library.
Notes:
svn path=/head/; revision=255108
|
|
|
|
|
|
|
|
| |
NetBSD, OpenBSD, and Android's Bionic number the clauses 1 through 3,
so follow suit to make comparison easier.
Notes:
svn path=/head/; revision=251069
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=232973
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Of course, strerror_r() may still fail with ERANGE.
Although the POSIX specification said this could fail with EINVAL and
doing this likely indicates invalid use of errno, most other
implementations permitted it, various POSIX testsuites require it to
work (matching the older sys_errlist array) and apparently some
applications depend on it.
PR: standards/151316
MFC after: 1 week
Notes:
svn path=/head/; revision=220376
|
|
|
|
|
|
|
|
|
| |
clause.
# If I've done so improperly on a file, please let me know.
Notes:
svn path=/head/; revision=165903
|
|
|
|
| |
Notes:
svn path=/head/; revision=142693
|
|
|
|
|
|
|
|
|
| |
Controlled by NLS define, currently disabled by default.
Idea obtained from: NetBSD
Notes:
svn path=/head/; revision=142667
|
|
|
|
|
|
|
| |
vocally objected to this safety belt.
Notes:
svn path=/head/; revision=114443
|
|
|
|
|
|
|
|
|
|
| |
technique) so that we don't wind up calling into an application's
version if the application defines them.
Inspired by: qpopper's interfering and buggy version of strlcpy
Notes:
svn path=/head/; revision=114256
|
|
|
|
|
|
|
|
|
|
|
| |
As a side effect, it makes the code easier to read and requires less
pointer arithmetic.
Test by: strerror regression test
Submitted by: Tim Kientzle <kientzle@acm.org>
Notes:
svn path=/head/; revision=108603
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Fix an English error (comma splice) and poorly worded sentence.
o Fix KNF ordering of variables (pointers come before arithmetic types).
o Restore hand-optimization of sizeof()-1, instead of strlen().
o Remove unneeded local variables in strerror_r().
Test by: strerror regression test
Requested by: bde
Reviewed by: bde
Notes:
svn path=/head/; revision=108118
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
strerror_r(). Doing this allows us to ensure that strerror_r() always
fills the supplied buffer regardless of EINVAL or ERANGE errors.
strerror()'s semantics have changed slightly such that an argument of
0 is now considered invalid and errno is set to EINVAL.
Remove internal regression test for strerror() and strerror_r(). This
will be reincarnated in src/tools/regression/lib/libc/string.
In strerror(3), add a comment about strerror()'s bogus return type.
PR: 44356
Notes:
svn path=/head/; revision=108044
|
|
|
|
|
|
|
|
|
| |
PR: misc/40104
Submitted by: Neal Fachan <neal@isilon.com>
MFC after: 3 days
Notes:
svn path=/head/; revision=99331
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
more careful about reporting truncation with ERANGE in strerror_r.
Set errno to EINVAL for "unknown" errnum in strerror as required
by P1003.1-200x Draft June 14, 2001.
More carefully document the handling of strerrbuf when errors
(ERANGE, EINVAL) are encountered in strerror_r.
Reviewed by: bde (ongoing discussion)
Notes:
svn path=/head/; revision=87480
|
|
|
|
|
|
|
|
|
|
| |
complete with documentation.
Reviewed by: mike@ gad@
MFC after: 1 week
Notes:
svn path=/head/; revision=87434
|
|
|
|
|
|
|
|
| |
Reviewed by: Mike Barcroft <mike@FreeBSD.org>
MFC after: 2 weeks
Notes:
svn path=/head/; revision=86944
|
|
|
|
| |
Notes:
svn path=/head/; revision=86170
|
|
|
|
|
|
|
| |
Do the same for the non-wcs*/wmem* files while I'm here.
Notes:
svn path=/head/; revision=77117
|
|
|
|
|
|
|
|
|
| |
unsigned's; null termination was only guaranteed for the first call.
Fix lint: don't declare externs internally; they were both out of date.
Notes:
svn path=/head/; revision=2505
|
|
Notes:
svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573
|