summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Re-word the COMPATIBILITY section, taking care to use the word "deprecated"Tim J. Robbins2004-07-2912-98/+74
| | | | | | | | | to describe the 4.4BSD extension of accepting arguments outside the range of unsigned char. This gives us freedom to remove this extension when we remove the <rune.h> interface in FreeBSD 6. Notes: svn path=/head/; revision=132859
* Use newly added __used attribute to keep static function symbols from beingAlexander Kabaev2004-07-291-8/+8
| | | | | | | eliminated by compiler optimizer. Notes: svn path=/head/; revision=132849
* Remove unnecessary #include directives.Tim J. Robbins2004-07-293-8/+0
| | | | Notes: svn path=/head/; revision=132821
* Prefer <runetype.h> to <rune.h>, since the latter is going away soon.Tim J. Robbins2004-07-295-5/+5
| | | | Notes: svn path=/head/; revision=132820
* Remove useless checks for characters longer than INT_MAX bytes.Tim J. Robbins2004-07-293-12/+0
| | | | Notes: svn path=/head/; revision=132819
* Add support for multibyte characters.Tim J. Robbins2004-07-291-30/+84
| | | | Notes: svn path=/head/; revision=132817
* Add a paragraph break in the STANDARDS section to improve readability.Tim J. Robbins2004-07-291-0/+1
| | | | Notes: svn path=/head/; revision=132816
* Add support for multibyte characters.Tim J. Robbins2004-07-291-49/+112
| | | | Notes: svn path=/head/; revision=132812
* Document incorrect handling of multibyte characters due to limitationsTim J. Robbins2004-07-281-1/+6
| | | | | | | of sh(1). Notes: svn path=/head/; revision=132798
* Set fpu context flags to known values, zero is illegal.David Xu2004-07-281-0/+2
| | | | Notes: svn path=/head/; revision=132795
* ANSIfy and constify; this now builds with GCC 3.4.Dag-Erling Smørgrav2004-07-281-22/+19
| | | | Notes: svn path=/head/; revision=132793
* s/round/fpround/ to avoid naming clash with GCC builtin function.Alexander Kabaev2004-07-281-8/+8
| | | | Notes: svn path=/head/; revision=132755
* Add UTF-8-specific implementations of mbsnrtowcs() and wcsnrtombs().Tim J. Robbins2004-07-271-0/+163
| | | | | | | | | These convert plain ASCII characters in-line, making them only slightly slower than the single-byte ("NONE" encoding) version when processing ASCII strings. Notes: svn path=/head/; revision=132687
* Add an nftw(3) link.Tim J. Robbins2004-07-251-0/+1
| | | | Notes: svn path=/head/; revision=132632
* Remove unused variable.David Schultz2004-07-231-9/+1
| | | | | | | Noticed by: Todd Miller <Todd.Miller@courtesan.com> Notes: svn path=/head/; revision=132573
* Return the correct value when dst == NULL and conversion has stopped afterTim J. Robbins2004-07-221-2/+2
| | | | | | | nwc dropping to zero. Notes: svn path=/head/; revision=132525
* now e.f.f.3.ip6.arpa is delegated, we no longer need to query ip6.intHajimu UMEMOTO2004-07-212-7/+1
| | | | | | | Obtained from: KAME Notes: svn path=/head/; revision=132508
* Read directly from the stdio buffer using the new __mbsnrtowcs() interfaceTim J. Robbins2004-07-211-14/+38
| | | | | | | instead of making repeated calls to __fgetwc(). Notes: svn path=/head/; revision=132498
* Implement the GNU extensions of mbsnrtowcs() and wcsnrtombs(). These areTim J. Robbins2004-07-2114-165/+317
| | | | | | | | | | convenient when the source string isn't null-terminated. Implement the other conversion functions (mbstowcs(), mbsrtowcs(), wcstombs(), wcsrtombs()) in terms of these new functions. Notes: svn path=/head/; revision=132497
* Use __wcsrtombs() and __sfvwrite() to convert and write the wide characterTim J. Robbins2004-07-211-8/+25
| | | | | | | string instead of multiple calls to __fputwc(). Notes: svn path=/head/; revision=132491
* Back out previous commit. Even though statfs(2) can take a regularChristian S.J. Peron2004-07-201-0/+4
| | | | | | | | | | | file as an argument, it may still fail for the same reasons that open(2) can. Pointed out by: Jilles Tjoelker Apporived by: bmilekic (mentor) Notes: svn path=/head/; revision=132467
* Remove reference to ENOTDIR in the documented errorsChristian S.J. Peron2004-07-201-4/+0
| | | | | | | | | | | for statfs(2). This is false, if the pathname specified is a regular file, then the information for the file system that the file lives on will be returned. Approved by: bmilekic (mentor) Notes: svn path=/head/; revision=132466
* Call __mbrtowc() and __wcrtomb() directly instead of taking detoursTim J. Robbins2004-07-203-3/+6
| | | | | | | through mbrtowc() and wcrtomb(). Notes: svn path=/head/; revision=132442
* Fix printing of long doubles to match the size thatAndrew Gallatin2004-07-192-11/+8
| | | | | | | | | | | | | | | | gcc is using. This fixes devstat consumers (like vmstat, iostat, systat) so they don't print crazy zillion digit numbers for disk transfers and bandwidth. According to gcc, long doubles are 64-bits, rather than 128 bits like the SVR4 ABI spec wants them to be.. Note that MacOSX also treats long doubles as 64-bits, and not 128 bits, so we are in good company. Reviewed by: das Approved by: grehan Notes: svn path=/head/; revision=132421
* Add signalcontext, required by KSE.Peter Grehan2004-07-192-1/+104
| | | | Notes: svn path=/head/; revision=132399
* The new program counter should go into the trapframe's srr0 andPeter Grehan2004-07-191-1/+1
| | | | | | | not the link register, which was lucky enough to work. Notes: svn path=/head/; revision=132398
* Update paths to reg*.c and regex2.h. Add a target to build regex.h.Tim J. Robbins2004-07-191-1/+3
| | | | Notes: svn path=/head/; revision=132390
* Update for removal of cclass.h. Trim some useless targets. Invoke mkhTim J. Robbins2004-07-191-34/+6
| | | | | | | with "sh mkh" so it works if the script is not executable. Notes: svn path=/head/; revision=132389
* Update for recent changes to struct re_guts. Disable printing the contentsTim J. Robbins2004-07-191-38/+5
| | | | | | | of OANYOF sets for the moment. Notes: svn path=/head/; revision=132388
* Remove unused files.Tim J. Robbins2004-07-192-12/+0
| | | | Notes: svn path=/head/; revision=132387
* Make FLT_ROUNDS correctly reflect the dynamic rounding mode.David Schultz2004-07-196-3/+80
| | | | Notes: svn path=/head/; revision=132383
* Fix two bugs in the signbit() macro, which was implemented last year:David Schultz2004-07-193-100/+2
| | | | | | | | | | | - It was added to libc instead of libm. Hopefully no programs rely on this mistake. - It didn't work properly on large long doubles because its argument was converted to type double, resulting in undefined behavior. Notes: svn path=/head/; revision=132382
* Replace seven nominally MD implementations of frexp() that are brokenDavid Schultz2004-07-1816-456/+65
| | | | | | | for subnormals with one implementation that works. Notes: svn path=/head/; revision=132366
* Remove claim of conformance to IEEE Std. 1003.2. Replace it with a listTim J. Robbins2004-07-181-7/+12
| | | | | | | | | | of features required by the standard that the current implementation does not support. PR: 57911 (related) Notes: svn path=/head/; revision=132349
* Remove claim of conformance to IEEE Std. 1003.2. Replace it with a listTim J. Robbins2004-07-181-3/+7
| | | | | | | | | | of features required by the standard that the current implementation does not support. PR: 57911 Notes: svn path=/head/; revision=132343
* Fix typo: carat -> caret.Tim J. Robbins2004-07-171-1/+1
| | | | Notes: svn path=/head/; revision=132288
* Document the MSG_DONTWAIT flag.Hartmut Brandt2004-07-161-1/+8
| | | | Notes: svn path=/head/; revision=132257
* Add a cross reference to fgetwln(3).Tim J. Robbins2004-07-161-0/+1
| | | | Notes: svn path=/head/; revision=132243
* Add fgetwln(), a wide character version of fgetln().Tim J. Robbins2004-07-163-2/+192
| | | | Notes: svn path=/head/; revision=132242
* Rename slbexpand() to __slbexpand() and make it available outsideTim J. Robbins2004-07-162-4/+5
| | | | | | | of fgetln.c (non-static). Notes: svn path=/head/; revision=132241
* Clarify getfsstat(2) usage.Alfred Perlstein2004-07-161-1/+6
| | | | | | | | | | | | The getfsstat(2) function expects a buffer and a count, and returns a count. The confusing part is that the count it takes is a byte count, while the return value is a count of the number of structures it has filled out. Spell this out. Notes: svn path=/head/; revision=132231
* Remove an entry from the BUGS section: we have multibyte characterTim J. Robbins2004-07-121-2/+0
| | | | | | | support now. Notes: svn path=/head/; revision=132031
* Make regular expression matching aware of multibyte characters. The generalTim J. Robbins2004-07-125-324/+478
| | | | | | | | | | | | | | | | | | | | idea is that we perform multibyte->wide character conversion while parsing and compiling, then convert byte sequences to wide characters when they're needed for comparison and stepping through the string during execution. As with tr(1), the main complication is to efficiently represent sets of characters in bracket expressions. The old bitmap representation is replaced by a bitmap for the first 256 characters combined with a vector of individual wide characters, a vector of character ranges (for [A-Z] etc.), and a vector of character classes (for [[:alpha:]] etc.). One other point of interest is that although the Boyer-Moore algorithm had to be disabled in the general multibyte case, it is still enabled for UTF-8 because of its self-synchronizing nature. This greatly speeds up matching by reducing the number of multibyte conversions that need to be done. Notes: svn path=/head/; revision=132019
* Add a new error code, REG_ILLSEQ, to indicate that a regular expressionTim J. Robbins2004-07-122-1/+5
| | | | | | | contains an illegal multibyte character sequence. Notes: svn path=/head/; revision=132017
* Document the new PT_LWPINFO request. In fact, the request is so newMarcel Moolenaar2004-07-121-0/+19
| | | | | | | | it hasn't even been implemented yet. I just wanted to be the first to try a new approach to development ;-) Notes: svn path=/head/; revision=132012
* Remove incomplete support for multi-character collating elements. RemoveTim J. Robbins2004-07-112-262/+8
| | | | | | | unused character category calculations. Notes: svn path=/head/; revision=131973
* Unbreak alpha: On alpha a long double is the same as a double andMarcel Moolenaar2004-07-101-0/+4
| | | | | | | | | consequently the exponent is only 11 bits. Testing whether the exponent equals 32767 in that case only effects to compiler warnings and thus build breakage. Notes: svn path=/head/; revision=131898
* Add fast paths for conversion of plain ASCII characters.Tim J. Robbins2004-07-091-0/+13
| | | | Notes: svn path=/head/; revision=131881
* Slightly reorganize and simplify.Tim J. Robbins2004-07-091-24/+11
| | | | Notes: svn path=/head/; revision=131880
* Bump document date for recent changes.David Schultz2004-07-091-1/+1
| | | | | | | Prodded by: ru Notes: svn path=/head/; revision=131859