summaryrefslogtreecommitdiff
path: root/lib/libc/string/strxfrm.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-251-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. 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. Notes: svn path=/head/; revision=326193
* Fix typoBaptiste Daroussin2015-08-091-5/+3
| | | | | | | | | Remove useless tests before free() Suggested by: jilles Notes: svn path=/projects/collation/; revision=286493
* The collate functions within libc have been using version 1 and 1.2 of theBaptiste Daroussin2015-08-071-25/+41
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Implement xlocale APIs from Darwin, mainly for use by libc++. This adds aDavid Chisnall2011-11-201-3/+19
| | | | | | | | | | | | | | | 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
* Further simplify the code.Xin LI2008-10-191-11/+2
| | | | | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de> Notes: svn path=/head/; revision=184055
* Use strlcpy() in !localized case to avoid the -1's.Xin LI2008-10-171-2/+1
| | | | Notes: svn path=/head/; revision=183990
* Style: One space between "restrict" qualifier and "*".Tim J. Robbins2002-09-061-1/+1
| | | | Notes: svn path=/head/; revision=103012
* - Add the 'restrict' qualifier required by IEEE Std 1003.1-2001Robert Drehmel2002-08-141-4/+1
| | | | | | | | | | to the function definition of strxfrm(3) in form of our '__restrict' macro. - Use an ANSI-C function definition for strxfrm(3). - Change the manual page accordingly. Notes: svn path=/head/; revision=101881
* rcsid[]->__FBSDIDDavid E. O'Brien2001-11-071-4/+2
| | | | Notes: svn path=/head/; revision=86170
* Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.David E. O'Brien2001-05-241-2/+5
| | | | | | | Do the same for the non-wcs*/wmem* files while I'm here. Notes: svn path=/head/; revision=77117
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* fix wrong return resultAndrey A. Chernov1999-02-121-19/+24
| | | | | | | | fix n=0 case improve manpage Notes: svn path=/head/; revision=43945
* Fix handling more than 1 char with non-C localeAndrey A. Chernov1998-06-051-16/+4
| | | | | | | | | Misc. cleanup PR: 6825 Submitted by: Sergey Gershtein <sg@mplik.ru> Notes: svn path=/head/; revision=36665
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Back out fallback approximation changes, they are not so right to liveAndrey A. Chernov1996-08-131-17/+5
| | | | Notes: svn path=/head/; revision=17583
* Use better approximation if collate info not available.Andrey A. Chernov1996-06-091-6/+18
| | | | | | | Fix bug: strxfrm+strcmp != strcoll, if collate info not available Notes: svn path=/head/; revision=16255
* Minor optimization.Andrey A. Chernov1995-02-181-7/+9
| | | | Notes: svn path=/head/; revision=6544
* Copyrights cleanupAndrey A. Chernov1995-02-181-7/+1
| | | | Notes: svn path=/head/; revision=6537
* Add 8bit collate stuffAndrey A. Chernov1995-02-161-35/+64
| | | | | | | Submitted by: alex@elvisti.kiev.ua Notes: svn path=/head/; revision=6509
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+67
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573