summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* Make this work on ia64. I have no idea why it works on alpha - itDoug Rabson2001-10-061-1/+7
| | | | | | | shouldn't. Notes: svn path=/head/; revision=84591
* Avoid getting stuck in system(3) when the internal call to wait4()Alfred Perlstein2001-10-031-2/+3
| | | | | | | | | | | | | is interrupted by saving the pid. The old code would assign the return value to pid which would trash it, to fix the problem save a copy of the pid to be used as the paramter to wait4(). Submitted by: Toshihiko ARAI <toshi@jp.FreeBSD.org> Notes: svn path=/head/; revision=84417
* mdoc(7) police: don't split author names in the AUTHORS section.Ruslan Ermilov2001-10-011-0/+1
| | | | Notes: svn path=/head/; revision=84298
* mdoc(7) police: s/atof/atoi/Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84280
* Add ERRORS section.Jeroen Ruigrok van der Werven2001-09-261-1/+18
| | | | | | | | | | | Mention thread safety and async-cancel safety status [not]. Add standards compliancy references. Note strtol() is preferred over atoi(). MFC after: 2 weeks Notes: svn path=/head/; revision=83982
* Be explicit about the POSIX version it conforms to [in this case 1990].Jeroen Ruigrok van der Werven2001-09-261-5/+5
| | | | | | | Put the error comment under the more appropriate ERRORS section. Notes: svn path=/head/; revision=83973
* Change standards compliancy order so that C and POSIX are grouped.Jeroen Ruigrok van der Werven2001-09-261-1/+1
| | | | Notes: svn path=/head/; revision=83967
* style(9)Mike Barcroft2001-09-171-62/+56
| | | | | | | Silence from: phantom Notes: svn path=/head/; revision=83559
* mdoc(7) police: changed pure POSIX text; added missing markup bits.Ruslan Ermilov2001-09-112-8/+12
| | | | Notes: svn path=/head/; revision=83328
* Add more standards which we conform to.Jeroen Ruigrok van der Werven2001-09-091-1/+18
| | | | | | | | | Note our implementation is not thread nor async-cancel safe. Explicitely note atof() does not check nor report errors. Note that strtod() should be used instead. Notes: svn path=/head/; revision=83256
* Detail thread-safe and async-cancel-safe status.Jeroen Ruigrok van der Werven2001-09-091-0/+10
| | | | | | | | | Also add C99 conformity status plus clarification that C99 leaves the flushing of unwritten data, closure of open streams, and removal of temporary files to the implementation. Notes: svn path=/head/; revision=83254
* Move to using .In instead of .Fd #include <> for include mark-up.Jeroen Ruigrok van der Werven2001-09-0727-39/+39
| | | | | | | Inspired by comment from: dd Notes: svn path=/head/; revision=83206
* reconnect strfmon.c to build listAlexey Zelkin2001-09-071-1/+1
| | | | Notes: svn path=/head/; revision=83205
* Fix some mdoc nits caused by my knowledge not being too up-to-date onJeroen Ruigrok van der Werven2001-09-071-9/+12
| | | | | | | | | mdocNG. Submitted by: dd Notes: svn path=/head/; revision=83203
* Port to ia64, taking into account the fact that pagesizes may be variable.Doug Rabson2001-09-071-0/+11
| | | | Notes: svn path=/head/; revision=83202
* Add strfmon.3 to the fray.Jeroen Ruigrok van der Werven2001-09-072-1/+89
| | | | | | | | | | | This is a first cut, but enough to help people interested in using it further than before. More text coming to illustrate use and provide more details. Based on standards' text. Notes: svn path=/head/; revision=83194
* 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