summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* correctly wrap macros with { }Alexey Zelkin2001-09-061-2/+3
| | | | Notes: svn path=/head/; revision=83139
* strfmon(3) is not ready to go live.David E. O'Brien2001-09-061-1/+1
| | | | Notes: svn path=/head/; revision=83137
* Add strfmon(3) implementation. It still contains few XXX's because I lostAlexey Zelkin2001-09-052-3/+618
| | | | | | | | | | | | my last version of this work due to HDD crash, but this version cleanly passed all POSIX and SuSv2 tests. I am working on testing scripts which should test this implementation against all locales and surely more fixes will come soon. Reviewed by: ache, silence at -audit & -developers Notes: svn path=/head/; revision=83104
* Portability fix: use unsigned cast to guaranteed positive part of expressionAndrey A. Chernov2001-09-042-2/+2
| | | | | | | | in case {L}LONG_MAX > abs({L}LONG_MIN). Non-functional change - we don't have any such platforms. Notes: svn path=/head/; revision=83024
* Remove rcsids and unneded includeAndrey A. Chernov2001-09-046-34/+12
| | | | Notes: svn path=/head/; revision=82995
* 'acc' is not initialized in one hypotetical case, fix itAndrey A. Chernov2001-09-044-8/+8
| | | | Notes: svn path=/head/; revision=82982
* Locale *is* used in strto*l*(), at least for isspace(), so removeAndrey A. Chernov2001-09-048-58/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'locale not used' statement from comments and BUGS section of manpage. strtol(): fix non-portable 'cutoff' calculation using the same method as in strtoll(). Cleanup 'cutoff' calculation, remove unneded casts. Misc. cleanup to make all functions looks the same. Implement EINVAL reaction per POSIX, document it in manpage, corresponding POSIX example quotes here: ------------------------------------------------ If the subject sequence is empty or does not have the expected form, no conversion is performed; the value of str is stored in the object pointed to by endptr, provided that endptr is not a null pointer. If no conversion could be performed, 0 shall be returned and errno may be set to [EINVAL]. [EINVAL] The value of base is not supported. Since 0, {LONG_MIN} or {LLONG_MIN}, and {LONG_MAX} or {LLONG_MAX} are returned on error and are also valid returns on success, an application wishing to check for error situations should set errno to 0, then call strtol( ) or strtoll ( ), then check errno. ----------------------------------------------------- Notes: svn path=/head/; revision=82975
* Use ``.Rv -std'' wherever possible.Ruslan Ermilov2001-08-312-16/+2
| | | | | | | Submitted by: yar Notes: svn path=/head/; revision=82642
* If the string specifying the allowed options starts with a leading `:',Joseph Koshy2001-08-161-5/+2
| | | | | | | | | | | `getopt(3)' should not print a warning for missing argument values. PR: bin/29625 Reviewed by: mikeh MFC after: 1 week Notes: svn path=/head/; revision=81746
* Fixed style bugs (dot `.' at the end of error and warning messages).Ruslan Ermilov2001-08-101-22/+22
| | | | | | | Noticed by: bde Notes: svn path=/head/; revision=81447
* Markup nits: use diagnostic type lists for error and warning messages.Ruslan Ermilov2001-08-101-21/+17
| | | | | | | | | | | Backout previous revision. We should not expand plain text xrefs if they appear in the literal text, e.g. in the error or warning message of the library function. (Submitted by: bde) Moved "out of memory" from warning to errors section. Notes: svn path=/head/; revision=81446
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.Yaroslav Tykhiy2001-08-091-4/+1
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=81352
* mdoc(7) police: expand plain text xrefs.Ruslan Ermilov2001-08-082-2/+6
| | | | Notes: svn path=/head/; revision=81285
* Only pull in the MD files if they exist. This allows for progressiveMark Peek2001-07-311-0/+2
| | | | | | | implementation and compilation when bringing up a new architecture. Notes: svn path=/head/; revision=80743
* Remove whitespace at EOL.Dima Dorfman2001-07-1514-35/+35
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-105-5/+5
| | | | Notes: svn path=/head/; revision=79531
* mdoc(7) police: eliminate -ww warnings.Ruslan Ermilov2001-07-091-2/+2
| | | | Notes: svn path=/head/; revision=79461
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-092-2/+0
| | | | Notes: svn path=/head/; revision=79454
* mdoc(7) police: mark NULL with .Dv.Ruslan Ermilov2001-07-041-8/+24
| | | | Notes: svn path=/head/; revision=79200
* mdoc(7) police: the BUGS section should go after HISTORY and AUTHORS.Dima Dorfman2001-06-241-6/+6
| | | | Notes: svn path=/head/; revision=78727
* The fact that phk wrote this is not a bug!Dima Dorfman2001-06-241-5/+2
| | | | Notes: svn path=/head/; revision=78726
* Reword a sentence to make it proper English.Dima Dorfman2001-06-241-1/+1
| | | | Notes: svn path=/head/; revision=78706
* urandom(4) -> random(4) in comments.Dima Dorfman2001-06-072-2/+2
| | | | | | | | | | PR: 27858 Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp> Reviewed by: md5(1) Approved by: markm Notes: svn path=/head/; revision=77851
* urandom(4) -> random(4)Dima Dorfman2001-06-072-4/+4
| | | | | | | | | PR: 27858 Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp> Approved by: markm Notes: svn path=/head/; revision=77850
* Add new, from scratch implementation of hsearch() et al that actually works.Ruslan Ermilov2001-05-153-3/+394
| | | | | | | | Obtained from: NetBSD MFC after: 1 month Notes: svn path=/head/; revision=76613
* Grammar nit.Ruslan Ermilov2001-04-271-1/+1
| | | | Notes: svn path=/head/; revision=76061
* Add sranddev.3 to MLINKSAndrey A. Chernov2001-04-231-1/+1
| | | | Notes: svn path=/head/; revision=75864
* Add #include "un-namespace.h"Andrey A. Chernov2001-04-231-0/+1
| | | | Notes: svn path=/head/; revision=75863
* srand*dev() fallback code: change ^getpid() to ^(getpid() << 16) to allowAndrey A. Chernov2001-04-232-2/+2
| | | | | | | change of high word part too to produce more interesting seed distribution. Notes: svn path=/head/; revision=75862
* Add sranddev() since srand() is not vary much with seed, typical timeAndrey A. Chernov2001-04-232-1/+46
| | | | Notes: svn path=/head/; revision=75845
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74870
* Make tdelete(3), tfind(3), and twalk(3) links to tsearch(3).Dima Dorfman2001-03-151-0/+1
| | | | | | | Approved by: nik Notes: svn path=/head/; revision=74268
* Merge in strtoul.3 rev 1.11 mdoc(7) police changes:David E. O'Brien2001-02-281-2/+3
| | | | | | | | .Nd line broken in rev 1.10 use .Bx for ``BSD'' Notes: svn path=/head/; revision=73234
* mdoc(7) police: fix the .Nd line broken in previous revision.Ruslan Ermilov2001-02-281-2/+3
| | | | | | | | | Noticed by: bde Use .Bx for ``BSD''. Notes: svn path=/head/; revision=73222
* Use formula with better random distribution for rand()Andrey A. Chernov2001-02-271-0/+26
| | | | | | | | | Even better formula from random() could not be intetgrated because rand_r() supposed to store its state in the single variable (but table needed for random() algorithm integration). Notes: svn path=/head/; revision=73156
* I accidently deleted an include when I added the $FreeBSD$ so I couldDavid E. O'Brien2001-02-272-0/+4
| | | | | | | check in my changes. Notes: svn path=/head/; revision=73155
* Impliment the ISO-C99 strto[u]ll()David E. O'Brien2001-02-277-175/+111
| | | | | | | and rewrite strto[u]q() in terms of it. Notes: svn path=/head/; revision=73152
* .St -ansiC -> .St -isoCRuslan Ermilov2001-02-2619-19/+19
| | | | Notes: svn path=/head/; revision=73088
* Update unused __dtoa prototypes to match reality.Tor Egge2001-02-252-3/+3
| | | | Notes: svn path=/head/; revision=73021
* Remove freelists managed by Balloc/Bfree.Tor Egge2001-02-152-64/+23
| | | | | | | | | | | Change __dtoa to not free the string it allocated the previous time it was called. The caller now frees the string after usage if appropiate. PR: 15070 Reviewed by: deischen Notes: svn path=/head/; revision=72523
* "Cross references in the SEE ALSO section should be sorted by sectionRuslan Ermilov2001-02-121-2/+2
| | | | | | | | number, and then placed in alphabetical order and comma separated.", mdoc.samples(7) said. Notes: svn path=/head/; revision=72401
* mmap(3) -> mmap(2).Ruslan Ermilov2001-02-121-2/+2
| | | | Notes: svn path=/head/; revision=72400
* Include mmap(2) in the list of memory allocation functions.Nik Clayton2001-02-111-2/+10
| | | | | | | Reviewed by: hackers Notes: svn path=/head/; revision=72369
* .Xr to mmap.Nik Clayton2001-02-111-1/+2
| | | | Notes: svn path=/head/; revision=72368
* mdoc(7) police: mark LC_NUMERIC with .Dv.Ruslan Ermilov2001-02-102-3/+5
| | | | Notes: svn path=/head/; revision=72313
* Note that decimal point taken from localeAndrey A. Chernov2001-02-101-0/+3
| | | | Notes: svn path=/head/; revision=72301
* Note the fact that decimal point taken from locale (according to SUSv2)Andrey A. Chernov2001-02-101-0/+2
| | | | Notes: svn path=/head/; revision=72288
* Use decimap_point from localeconv() instead of hardcoded '.'Andrey A. Chernov2001-02-101-1/+4
| | | | | | | Obtained from: inspired by NetBSD strtod Notes: svn path=/head/; revision=72287
* Backout previous commit. Use of spinlocks was not approved.Tor Egge2001-02-092-43/+35
| | | | | | | PR: 15070 Notes: svn path=/head/; revision=72254
* Protect freelists managed by Balloc/Bfree with a spinlock.Tor Egge2001-02-082-35/+45
| | | | | | | | | | Change __dtoa to not free the string it allocated the previous time it was called. The caller now frees the string after usage if appropiate. PR: 15070 Notes: svn path=/head/; revision=72179