summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: nit.ru2002-05-291-1/+1
|
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-282-28/+0
| | | | Submitted by: keramida
* Remove spurious period.dd2002-05-271-1/+1
|
* Let this code know about PowerPC.benno2002-05-211-1/+1
|
* Avoid casting a different sized integer to a pointer on LP64 systems.peter2002-05-101-1/+1
|
* Constify _malloc_options.phk2002-04-242-3/+3
|
* Do not use __progname directly (except in [gs]etprogname(3)).markm2002-03-292-8/+9
| | | | | | Also, make an internal _getprogname() that is used only inside libc. For libc, getprogname(3) is a weak symbol in case a function of the same name is defined in userland.
* Fix the style of the SCM ID's.obrien2002-03-221-0/+1
| | | | I believe have made all of libc .h's as consistent as possible.
* Fix the style of the SCM ID's.obrien2002-03-2237-66/+83
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove multi-line __P() usage.obrien2002-03-222-4/+4
|
* Remove __P() usage.obrien2002-03-2113-21/+21
|
* Remove 'register' keyword.obrien2002-03-2114-61/+75
|
* When multiple threads call atexit at the same time, some operations musttegge2002-03-051-2/+28
| | | | | | | | | | be serialized. A mutex is used to protect the critical regions. sbrk() and brk() are not thread safe. Replace use of sbrk() with a call to malloc to avoid race when one thread calls atexit while another thread calls malloc. Reviewed by: deischen
* Add ifdefs for sparc64.jake2002-02-232-1/+6
|
* Minor typo fix: uquad_t -> u_quad_t.yar2002-01-201-1/+1
|
* mdoc(7) police: add missing markup bits for ``errno''.ru2002-01-093-3/+9
|
* Back out errno preservingache2001-12-307-47/+12
|
* Add "except the handling of errors" into "equivalent to" paragraph.ache2001-12-253-0/+8
| | | | | Pointed by: bde Inspired by: POSIX
* Preserve errno.ache2001-12-255-9/+44
| | | | | | | | According to C99: "The functions atof, atoi, atol, and atoll need not affect the value of the integer expression errno on an error. If the value of the result cannot be represented, the behavior is undefined."
* * cleanup comments and definesphantom2001-12-141-8/+1
| | | | Reviewed by: bde
* mdoc(7) police: fix markup, bump document date.ru2001-12-122-30/+38
|
* mdoc(7) police: kill HSBs, add missing comma.ru2001-12-121-8/+13
|
* mdoc(7) police: fix markup.ru2001-12-121-13/+17
|
* Add my e-mail to copyrightsphantom2001-12-111-1/+1
|
* Get rid of unused anymore file! Alpha works fine with our strtod() now.phantom2001-12-071-2496/+0
|
* Return 'c' back to signed due to potential comparison problemsache2001-12-076-60/+72
| | | | | | Use simpler test for valid ranges Submitted by: bde
* 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.
OpenPOWER on IntegriCloud