| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\|
| |
| |
| | |
Notes:
svn path=/projects/collation/; revision=289256
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=288004
|
| |
| |
| |
| |
| |
| |
| | |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=287181
|
|\|
| |
| |
| | |
Notes:
svn path=/projects/collation/; revision=287142
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Reviewed by: wblock, pfg
Approved by: bapt (mentor)
Differential Revision: D3380
Notes:
svn path=/head/; revision=287089
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Reviewed by: wblock, pfg
Approved by: bapt (mentor)
Differential Revision: D3380
Notes:
svn path=/head/; revision=287088
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
as well as when it was removed from POSIX specification.
Reviewed by: theraven, wblock, bapt, rodrigc
Approved by: bapt, rodrigc (mentor)
Differential Revision: D3374
Notes:
svn path=/head/; revision=286757
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix some phrases to make it more clear.
Differential Revision: D3378
Reported by: bde@
Reviewed by: wblock
Approved by: bapt, rodrigc (mentor)
Sponsored by: gandi.net
Notes:
svn path=/head/; revision=286715
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
POSIX.1-2001 and removed from the specification in POSIX.1-2008.
New softwares shall use memcpy(3) or memmove(3).
Differential Revision: D3358
Reviewed by: wblock
Approved by: rodrigc
Sponsored by: gandi.net
Notes:
svn path=/head/; revision=286651
|
| |
| |
| |
| | |
Notes:
svn path=/projects/collation/; revision=286535
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove useless tests before free()
Suggested by: jilles
Notes:
svn path=/projects/collation/; revision=286493
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
packed LC_COLLATE binary formats. These were generated with the colldef
tool, but the new LC_COLLATE files are going to be generated by the new
localedef tool using CLDR POSIX files as input. The BSD-flavored
version of localedef identifies the format as "BSD 1.0". Any
LC_COLLATE file with a different version will simply not be loaded, and
all LC* categories will get set to "C" (aka "POSIX") locale.
This work is based off of Nexenta's contribution to Illumos.
The integration with xlocale is John Marino's work for Dragonfly.
The following commits will enable localedef tool, disable the colldef
tool, add generated colldef directory, and finally remove colldef from
base.
The only difference with Dragonfly are:
- a few fixes to build with clang
- And identification of the flavor as "BSD 1.0" instead of "Dragonfly 4.4"
Obtained from: Dragonfly
Notes:
svn path=/projects/collation/; revision=286430
|
|
|
|
| |
Notes:
svn path=/head/; revision=284001
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This function originated in glibc, and this matches their behaviour
(and NetBSD, OpenBSD, and musl).
An empty big string (arg "l") is handled by the existing
l_len < s_len test.
Reviewed by: bapt, ngie
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2657
Notes:
svn path=/head/; revision=283584
|
|
|
|
|
|
|
|
|
| |
Bring small upstream updates.
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=281135
|
|
|
|
|
|
|
| |
Found with: mandoc -Tlint
Notes:
svn path=/head/; revision=276006
|
|
|
|
|
|
|
| |
Suggested by: jmg
Notes:
svn path=/head/; revision=273189
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=272675
|
|
|
|
|
|
|
|
| |
Obtained from: OpenBSD
MFC after: 2 weeks
Notes:
svn path=/head/; revision=272673
|
|
|
|
|
|
|
|
| |
PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>
Notes:
svn path=/head/; revision=267774
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
POSIX.1-2008 specifies that those two functions should be declared by
including <strings.h>, not <string.h> (the latter only has strcoll_l()
and strxfrm_l()):
http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html
Obtained from: DragonFlyBSD
Reviewed by: theraven
MFC after: 2 weeks
Notes:
svn path=/head/; revision=266865
|
|
|
|
|
|
|
|
|
| |
Replace literal parentheses with .Po/.Pc
Approved by: wblock (mentor)
Notes:
svn path=/head/; revision=266725
|
|
|
|
|
|
|
|
|
|
| |
Detach strcspn.3 from the build
Add strcspn.3 to MLINKS do it will be symlinked to strspn.3
Approved by: eadler (mentor), bcr (mentor)
Notes:
svn path=/head/; revision=266671
|
|
|
|
|
|
|
|
|
| |
Architecture
MFC After: 3 days
Notes:
svn path=/head/; revision=262890
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
if not already defined. This allows building libc from outside of
lib/libc using a reach-over makefile.
A typical use-case is to build a standard ILP32 version and a COMPAT32
version in a single iteration by building the COMPAT32 version using a
reach-over makefile.
Obtained from: Juniper Networks, Inc.
Notes:
svn path=/head/; revision=262722
|
|
|
|
|
|
|
| |
Obtained From: DragonflyBSD (1ac92c8c857a15dc010924c5f066da404e568640)
Notes:
svn path=/head/; revision=257909
|
|
|
|
|
|
|
|
| |
DST affects the day by one hour, but the number of days in the
week stay the same.
Notes:
svn path=/head/; revision=257720
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This explanation is supposed to be simpler and better. In particular
"comparing it to the snprintf API provides lots of value, since it raises the
bar on understanding, so that programmers/auditors will a better job calling
all 3 of these functions."
Requested by: deraadt@cvs.openbsd.org
Obtained From: OpenBSD
Reviewed by: cperciva
Notes:
svn path=/head/; revision=257646
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
This was forgotten in the initial commit of strchrnul()
Approved by: theraven
Notes:
svn path=/head/; revision=247899
|
|
|
|
|
|
|
|
|
|
| |
a pointer to the end of the string, rather than NULL, if the character was
not found.
Approved by: theraven
Notes:
svn path=/head/; revision=246766
|
|
|
|
|
|
|
|
| |
Approved by: wblock
MFC after: 3 days
Notes:
svn path=/head/; revision=241062
|
|
|
|
| |
Notes:
svn path=/head/; revision=240705
|
|
|
|
|
|
|
|
| |
Messages for known signals looked like "Terminated: 15" instead of
"Terminated".
Notes:
svn path=/head/; revision=240704
|
|
|
|
|
|
|
|
|
|
| |
Since r142667 strerror has unconditionally returned a pointer to a
static buffer.
MFC after: 1 week
Notes:
svn path=/head/; revision=238853
|
|
|
|
|
|
|
|
|
|
|
| |
relevant Makefile.
Reminded by: gavin
Approved by: gabor (mentor)
MFC after: 5 days
Notes:
svn path=/head/; revision=237409
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- libc/string/strcoll.3
- libc/string/strstr.3
- libc/string/strxfrm.3
- libc/string/strcasecmp.3
Reviewed by: theraven, gabor
Approved by: gabor (mentor)
MFC after: 5 days
Notes:
svn path=/head/; revision=237393
|
|
|
|
|
|
|
|
|
| |
PR: 167734
Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after: 3 days
Notes:
svn path=/head/; revision=235286
|
|
|
|
|
|
|
|
|
|
| |
Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days
Notes:
svn path=/head/; revision=233648
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=232973
|
|
|
|
|
|
|
|
|
|
| |
PR: kern/140690
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
Approved by: cperciva
MFC after: 2 weeks
Notes:
svn path=/head/; revision=232503
|
|
|
|
|
|
|
|
|
|
| |
PR: docs/164940
Submitted by: Niclas Zeising <zeising@daemonic.se>
Approved by: cperciva
MFC after: 3 days
Notes:
svn path=/head/; revision=231813
|
|
|
|
|
|
|
|
|
|
|
| |
This allows people to still write statically linked applications that
call strchr() or strrchr() and have a local variable or function called
index.
Discussed with: bde@
Notes:
svn path=/head/; revision=229571
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As I looked through the C library, I noticed the FreeBSD MIPS port has a
hand-written version of index(). This is nice, if it weren't for the
fact that most applications call strchr() instead.
Also, on the other architectures index() and strchr() are identical,
meaning we have two identical pieces of code in the C library and
statically linked applications.
Solve this by naming the actual file strchr.[cS] and let it use
__strong_reference()/STRONG_ALIAS() to provide the index() routine. Do
the same for rindex()/strrchr().
This seems to make the C libraries and static binaries slightly smaller,
but this reduction in size seems negligible.
Notes:
svn path=/head/; revision=229368
|
|
|
|
|
|
|
|
| |
Reviewed by: many
Approved by: des
Notes:
svn path=/head/; revision=228202
|
|
|
|
|
|
|
|
|
|
| |
- add a comment explaining why I used '|' instead of '||'
Submitted by: danfe@
Approved by: emaste@
Notes:
svn path=/head/; revision=227812
|
|
|
|
|
|
|
|
|
|
|
|
| |
- while here change 's' to 's1' in strcoll
Submitted by: eadler@
Reviewed by: theraven@
Approved by: brooks@
MFC after: 2 weeks
Notes:
svn path=/head/; revision=227808
|
|
|
|
|
|
|
|
|
| |
needed.
Approved by: brooks (mentor)
Notes:
svn path=/head/; revision=227807
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
load of _l suffixed versions of various standard library functions that use
the global locale, making them take an explicit locale parameter. Also
adds support for per-thread locales. This work was funded by the FreeBSD
Foundation.
Please test any code you have that uses the C standard locale functions!
Reviewed by: das (gdtoa changes)
Approved by: dim (mentor)
Notes:
svn path=/head/; revision=227753
|