summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* Use the merged strtod.c everywhere. This has been tested on alpha andpeter2001-12-021-10/+1
| | | | ia64.
* Make it works for non ASCII compatible encodings too.ache2001-12-026-42/+42
| | | | The only assumption left is that 'A'..'Z' 'a'..'z' both are contiguous
* Merge NetBSD's changes from netbsd_strtod.c in preparation ofphantom2001-11-301-47/+54
| | | | | | | | | removing it from our source tree in order to have one version of strtod() for all arches. netbsd_strtod.c still left in source tree until alpha folks make sure that our native strtod() works as well as NetBSD's one. Reviewed by: peter, bde (some time ago)
* Back out national digits support, POSIX explicetely disallows it:ache2001-11-297-30/+30
| | | | | | | | | | | The definition of character class digit requires that only ten characters -the ones defining digits- can be specified; alternate digits (for example, Hindi or Kanji) cannot be specified here. However, the encoding may vary if an implementation supports more than one encoding. The definition of character class xdigit requires that the characters included in character class digit are included here also and allows for different symbols for the hexadecimal digits 10 through 15.
* Don't ever assume that isdigit() is always subset of isxdigit()ache2001-11-286-6/+6
|
* Fix typoache2001-11-281-1/+1
|
* Use stricter tests to disallow national digits > 9ache2001-11-281-14/+14
| | | | Optimize national digits code a bit
* Allow national (non-ASCII) digitsache2001-11-281-23/+23
|
* Implement strtoimax() and strtoumax()fenner2001-11-285-42/+337
|
* Also mention "long long" in synopsis.fenner2001-11-281-1/+1
|
* Base 36 is allowed.fenner2001-11-284-4/+4
|
* Put back base > 35 check. If someone dislike it, plese discuss it withache2001-11-284-4/+4
| | | | standards group first.
* Add atoll(3) to conform POSIX and C99ache2001-11-283-2/+69
|
* Understand national (non-ASCII) digits nowache2001-11-286-56/+42
| | | | | Allow bases >=36 again Misc cleanup
* Be more explicit about the fact that realloc() might return akeramida2001-11-241-0/+4
| | | | | | | different pointer than the one passed to it. PR: docs/31925 Submitted by: Andrew <andrew@ugh.net.au>
* mdoc(7) police: fixed typos and minor markup nits.ru2001-11-214-17/+21
|
* If 'VX' is given, realloc(foo,0) will bail, it shouldn't.phk2001-11-171-2/+5
| | | | | PR: 29376 Submitted by: Farooq Mela <fmela0@sm.socccd.cc.ca.us>
* Correctly call THREAD_UNLOCK() if the recursive call trap is sprung.phk2001-11-161-0/+2
| | | | Pointed out by: knu
* o Implement imaxabs(), imaxdiv(), llabs(), lldiv().mike2001-11-1513-12/+450
| | | | | | | o Update abs(3), div(3), labs(3), ldiv(3) to reflect standards conformance and add additional references. Reviewed by: bde, wollman
* malloc and calloc do not free memory.dd2001-11-051-2/+3
| | | | | PR: 31365 Submitted by: SUZUKI Koichi <koich@cac.co.jp>
* Make strtod.c work on Alpha as well. strtod.c has got locale support,peter2001-11-041-11/+8
| | | | | | the netbsd_strtod.c file we have does not. More still should be done here, but this works happily on my Alpha. I have not (yet?) changed the Makefile.inc to use this.
* Slightly closer to netbsd_strtod.c:peter2001-11-041-11/+12
| | | | | s/IEEE_8087/IEEE_LITTLE_ENDIAN/ s/IEEE_MC68k/IEEE_BIG_ENDIAN/
* phkmalloc->evilchecks++;phk2001-11-021-3/+13
| | | | | | | | If zero bytes are allocated, return pointer to the middle of page-zero (which is protected) so that the program will crash if it dereferences this illgotten pointer. Inspired & Urged by: Theo de Raadt <deraadt@cvs.openbsd.org>
* Add a long-overdue nail to the deprecated /dev/urandom interfacemarkm2001-10-302-2/+2
| | | | | by asking some things that need unpredictable numbers to read /dev/random instead.
* Make this work on ia64. I have no idea why it works on alpha - itdfr2001-10-061-1/+7
| | | | shouldn't.
* Avoid getting stuck in system(3) when the internal call to wait4()alfred2001-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>
* mdoc(7) police: don't split author names in the AUTHORS section.ru2001-10-011-0/+1
|
* mdoc(7) police: s/atof/atoi/ru2001-10-011-1/+1
|
* Add ERRORS section.asmodai2001-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
* Be explicit about the POSIX version it conforms to [in this case 1990].asmodai2001-09-261-5/+5
| | | | Put the error comment under the more appropriate ERRORS section.
* Change standards compliancy order so that C and POSIX are grouped.asmodai2001-09-261-1/+1
|
* style(9)mike2001-09-171-62/+56
| | | | Silence from: phantom
* mdoc(7) police: changed pure POSIX text; added missing markup bits.ru2001-09-112-8/+12
|
* Add more standards which we conform to.asmodai2001-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.
* Detail thread-safe and async-cancel-safe status.asmodai2001-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.
* Move to using .In instead of .Fd #include <> for include mark-up.asmodai2001-09-0727-39/+39
| | | | Inspired by comment from: dd
* reconnect strfmon.c to build listphantom2001-09-071-1/+1
|
* Fix some mdoc nits caused by my knowledge not being too up-to-date onasmodai2001-09-071-9/+12
| | | | | | mdocNG. Submitted by: dd
* Port to ia64, taking into account the fact that pagesizes may be variable.dfr2001-09-071-0/+11
|
* Add strfmon.3 to the fray.asmodai2001-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.
* correctly wrap macros with { }phantom2001-09-061-2/+3
|
* strfmon(3) is not ready to go live.obrien2001-09-061-1/+1
|
* Add strfmon(3) implementation. It still contains few XXX's because I lostphantom2001-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
* Portability fix: use unsigned cast to guaranteed positive part of expressionache2001-09-042-2/+2
| | | | | in case {L}LONG_MAX > abs({L}LONG_MIN). Non-functional change - we don't have any such platforms.
* Remove rcsids and unneded includeache2001-09-046-34/+12
|
* 'acc' is not initialized in one hypotetical case, fix itache2001-09-044-8/+8
|
* 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
OpenPOWER on IntegriCloud