summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Document these functions as being in libm, not libc. Some of themDavid Schultz2004-07-091-4/+1
| | | | | | | | | | *are* in libc for historical reasons, but programmers should not rely on that fact. Also remove a BUGS section that is not relevant here. Notes: svn path=/head/; revision=131853
* Implement the classification macros isfinite(), isinf(), isnan(), andDavid Schultz2004-07-0917-501/+141
| | | | | | | | | | | | | | | | | | | | | | | | isnormal() the hard way, rather than relying on fpclassify(). This is a lose in the sense that we need a total of 12 functions, but it is necessary for binary compatibility because we have never bumped libm's major version number. In particular, isinf(), isnan(), and isnanf() were BSD libc functions before they were C99 macros, so we can't reimplement them in terms of fpclassify() without adding a dependency on libc.so.5. I have tried to arrange things so that programs that could be compiled in FreeBSD 4.X will generate the same external references when compiled in 5.X. At the same time, the new macros should remain C99-compliant. The isinf() and isnan() functions remain in libc for historical reasons; however, I have moved the functions that implement the macros isfinite() and isnormal() to libm where they belong. Moreover, half a dozen MD versions of isinf() and isnan() have been replaced with MI versions that work equally well. Prodded by: kris Notes: svn path=/head/; revision=131852
* Eliminate some magic numbers and correct description of _PC_NO_TRUNC.Garrett Wollman2004-07-082-20/+45
| | | | | | | | Slight emendation to _PC_CHOWN_RESTRICTED, which is in a very similar boat. Notes: svn path=/head/; revision=131836
* Add a function to iterate over all characters in a particular characterTim J. Robbins2004-07-083-2/+150
| | | | | | | | | class. This is necessary in order to implement tr(1) efficiently in multibyte locales, since the brute force method of finding all characters in a class is infeasible with a 32-bit (or wider) wchar_t. Notes: svn path=/head/; revision=131787
* there's no such define as KERN_NAME_MAX, change to _POSIX_NAME_MAX.Alfred Perlstein2004-07-071-1/+1
| | | | Notes: svn path=/head/; revision=131762
* Markup nits.Ruslan Ermilov2004-07-071-2/+4
| | | | Notes: svn path=/head/; revision=131758
* Fixed markup.Ruslan Ermilov2004-07-071-16/+22
| | | | Notes: svn path=/head/; revision=131757
* mdoc(7) fixes.Ruslan Ermilov2004-07-071-2/+3
| | | | Notes: svn path=/head/; revision=131754
* Move the return value information about the getenv(3) library functionHiten Pandya2004-07-061-4/+10
| | | | | | | | | | | | under the RETURN VALUES section so it is consistent with others. Cleanup the return value text for getenv(3) a little while I am here. PR: docs/58033 MFC after: 3 days Notes: svn path=/head/; revision=131728
* Keep it sync with OpenBSD:Andrey A. Chernov2004-07-061-3/+4
| | | | | | | | | | An optional argument cannot start with '-', even if permutation is disabled. Obtained from: OpenBSD getopt_long.c v1.17 Notes: svn path=/head/; revision=131710
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-07-061-1/+3
| | | | Notes: svn path=/head/; revision=131692
* Add implementations of ftw(3) and nftw(3) and the corresponding headerDavid Schultz2004-07-052-2/+211
| | | | | | | | | | | ftw.h. This is the implementation written by Joel Baker <fenton@debian.org> for inclusion in NetBSD, but with several bugfixes. Obtained from: Debian Notes: svn path=/head/; revision=131661
* Documentation for ftw(3) and nftw(3).David Schultz2004-07-051-0/+210
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=131660
* Fix the NAME section making whatis(1) happy in particular.Ruslan Ermilov2004-07-056-16/+13
| | | | Notes: svn path=/head/; revision=131635
* Markup fixes.Ruslan Ermilov2004-07-053-128/+180
| | | | Notes: svn path=/head/; revision=131611
* Markup nits.Ruslan Ermilov2004-07-0513-70/+91
| | | | Notes: svn path=/head/; revision=131608
* Sort SEE ALSO references (in dictionary order, ignoring case).Ruslan Ermilov2004-07-047-7/+7
| | | | Notes: svn path=/head/; revision=131594
* Add commentary explaining why we return EBADF upon attempts to fflush() aColin Percival2004-07-041-0/+12
| | | | | | | | | read-only file. Discussed on: -current Notes: svn path=/head/; revision=131592
* Consistently use __inline instead of __inline__ as the former is an empty macroStefan Farfeleder2004-07-041-3/+3
| | | | | | | in <sys/cdefs.h> for compilers without support for inline. Notes: svn path=/head/; revision=131575
* Fixed markup.Ruslan Ermilov2004-07-033-13/+14
| | | | Notes: svn path=/head/; revision=131542
* Eliminate double whitespace.Ruslan Ermilov2004-07-0322-45/+48
| | | | Notes: svn path=/head/; revision=131539
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-02143-439/+851
| | | | Notes: svn path=/head/; revision=131504
* Follow previous change in makecontext. Use %esi to store next ucpDavid Xu2004-07-021-1/+1
| | | | | | | | pointer, here we keep orignal %ebp, so we can see where signal handler comes in and interrupt normal code. Notes: svn path=/head/; revision=131501
* Removed trailing whitespace.Ruslan Ermilov2004-07-026-15/+15
| | | | Notes: svn path=/head/; revision=131472
* Markup tidying.Ruslan Ermilov2004-07-026-16/+37
| | | | Notes: svn path=/head/; revision=131465
* Use %esi to store next ucp pointer. Mark end of stack byDavid Xu2004-07-022-3/+4
| | | | | | | | setting %ebp to zero, this avoids new gdb to dump a weird backtrace. Notes: svn path=/head/; revision=131460
* Markup, grammar, and spelling fixes.Ruslan Ermilov2004-06-3020-82/+121
| | | | Notes: svn path=/head/; revision=131365
* Fixed a typo.Ruslan Ermilov2004-06-302-2/+2
| | | | Notes: svn path=/head/; revision=131360
* Fix typo: WRDE_DOOFS -> WRDE_DOOFFS.Tim J. Robbins2004-06-302-5/+5
| | | | | | | Noticed by: Stoned Elipot Notes: svn path=/head/; revision=131331
* s/SS_CANTSENDMORE/SBS_CANTSENDMORE/Roman Kurakin2004-06-241-1/+1
| | | | Notes: svn path=/head/; revision=131047
* Prefix the names of members of _RuneLocale and its sub-structuresTim J. Robbins2004-06-236-87/+90
| | | | | | | | | with ``__'' to avoid polluting the namespace. This doesn't change the documented rune interface at all, but breaks applications that accessed _RuneLocale directly. Notes: svn path=/head/; revision=130961
* Be specific about which socket properties are inherited from the originalBruce M Simpson2004-06-231-10/+13
| | | | | | | | | socket upon accept(2). PR: docs/54995, kern/45733 Notes: svn path=/head/; revision=130950
* Spelling fixes.Mike Pritchard2004-06-212-3/+3
| | | | Notes: svn path=/head/; revision=130873
* Spelling fixes.Mike Pritchard2004-06-211-1/+1
| | | | Notes: svn path=/head/; revision=130871
* Spelling fixes.Mike Pritchard2004-06-211-1/+1
| | | | Notes: svn path=/head/; revision=130869
* Spelling fixes.Mike Pritchard2004-06-212-3/+3
| | | | Notes: svn path=/head/; revision=130867
* Spelling fixes.Mike Pritchard2004-06-216-7/+7
| | | | Notes: svn path=/head/; revision=130865
* PR: docs/67884Mike Pritchard2004-06-211-1/+1
| | | | | | | Submitted by: Chirstopger Nehren <apeiron@comcast.net> Notes: svn path=/head/; revision=130863
* CLOCK_PROF and CLOCK_VIRTUAL are implemented now.Kelly Yancey2004-06-171-7/+1
| | | | Notes: svn path=/head/; revision=130655
* Add reference to mac_get_link() in man page, which was omitted whenRobert Watson2004-06-172-1/+10
| | | | | | | mac_get_link() and mac_set_link() were added. Notes: svn path=/head/; revision=130636