summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
...
* Locale *is* used in strto*l*(), at least for isspace(), so removeache2001-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. -----------------------------------------------------
* Use ``.Rv -std'' wherever possible.ru2001-08-312-16/+2
| | | | Submitted by: yar
* If the string specifying the allowed options starts with a leading `:',jkoshy2001-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
* Fixed style bugs (dot `.' at the end of error and warning messages).ru2001-08-101-22/+22
| | | | Noticed by: bde
* Markup nits: use diagnostic type lists for error and warning messages.ru2001-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.
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.yar2001-08-091-4/+1
| | | | Reviewed by: ru
* mdoc(7) police: expand plain text xrefs.ru2001-08-082-2/+6
|
* Only pull in the MD files if they exist. This allows for progressivemp2001-07-311-0/+2
| | | | implementation and compilation when bringing up a new architecture.
* Remove whitespace at EOL.dd2001-07-1514-35/+35
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-105-5/+5
|
* mdoc(7) police: eliminate -ww warnings.ru2001-07-091-2/+2
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-092-2/+0
|
* mdoc(7) police: mark NULL with .Dv.ru2001-07-041-8/+24
|
* mdoc(7) police: the BUGS section should go after HISTORY and AUTHORS.dd2001-06-241-6/+6
|
* The fact that phk wrote this is not a bug!dd2001-06-241-5/+2
|
* Reword a sentence to make it proper English.dd2001-06-241-1/+1
|
* urandom(4) -> random(4) in comments.dd2001-06-072-2/+2
| | | | | | | PR: 27858 Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp> Reviewed by: md5(1) Approved by: markm
* urandom(4) -> random(4)dd2001-06-072-4/+4
| | | | | | PR: 27858 Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp> Approved by: markm
* Add new, from scratch implementation of hsearch() et al that actually works.ru2001-05-153-3/+394
| | | | | Obtained from: NetBSD MFC after: 1 month
* Grammar nit.ru2001-04-271-1/+1
|
* Add sranddev.3 to MLINKSache2001-04-231-1/+1
|
* Add #include "un-namespace.h"ache2001-04-231-0/+1
|
* srand*dev() fallback code: change ^getpid() to ^(getpid() << 16) to allowache2001-04-232-2/+2
| | | | change of high word part too to produce more interesting seed distribution.
* Add sranddev() since srand() is not vary much with seed, typical timeache2001-04-232-1/+46
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Make tdelete(3), tfind(3), and twalk(3) links to tsearch(3).dd2001-03-151-0/+1
| | | | Approved by: nik
* Merge in strtoul.3 rev 1.11 mdoc(7) police changes:obrien2001-02-281-2/+3
| | | | | .Nd line broken in rev 1.10 use .Bx for ``BSD''
* mdoc(7) police: fix the .Nd line broken in previous revision.ru2001-02-281-2/+3
| | | | | | Noticed by: bde Use .Bx for ``BSD''.
* Use formula with better random distribution for rand()ache2001-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).
* I accidently deleted an include when I added the $FreeBSD$ so I couldobrien2001-02-272-0/+4
| | | | check in my changes.
* Impliment the ISO-C99 strto[u]ll()obrien2001-02-277-175/+111
| | | | and rewrite strto[u]q() in terms of it.
* .St -ansiC -> .St -isoCru2001-02-2619-19/+19
|
* Update unused __dtoa prototypes to match reality.tegge2001-02-252-3/+3
|
* Remove freelists managed by Balloc/Bfree.tegge2001-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
* "Cross references in the SEE ALSO section should be sorted by sectionru2001-02-121-2/+2
| | | | | number, and then placed in alphabetical order and comma separated.", mdoc.samples(7) said.
* mmap(3) -> mmap(2).ru2001-02-121-2/+2
|
* Include mmap(2) in the list of memory allocation functions.nik2001-02-111-2/+10
| | | | Reviewed by: hackers
* .Xr to mmap.nik2001-02-111-1/+2
|
* mdoc(7) police: mark LC_NUMERIC with .Dv.ru2001-02-102-3/+5
|
* Note that decimal point taken from localeache2001-02-101-0/+3
|
* Note the fact that decimal point taken from locale (according to SUSv2)ache2001-02-101-0/+2
|
* Use decimap_point from localeconv() instead of hardcoded '.'ache2001-02-101-1/+4
| | | | Obtained from: inspired by NetBSD strtod
* Backout previous commit. Use of spinlocks was not approved.tegge2001-02-092-43/+35
| | | | PR: 15070
* Protect freelists managed by Balloc/Bfree with a spinlock.tegge2001-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
* mdoc(7) police: Change -filled displays (which just happenru2001-02-071-1/+1
| | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins.
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.bde2001-02-051-1/+1
|
* Remove a sizeof(void *) == sizeof(int) assumption.phk2001-02-041-7/+7
| | | | Submitted by: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-016-7/+7
|
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-246-31/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
* Prepare for mdoc(7)NG.ru2001-01-161-2/+2
|
OpenPOWER on IntegriCloud