ru
80677a8b7d
mdoc(7) police: nit.
2002-05-29 15:44:34 +00:00
alfred
1ee311b26d
Assume __STDC__, remove non-__STDC__ code.
...
Submitted by: keramida
2002-05-28 17:03:12 +00:00
dd
ef78f19043
Remove spurious period.
2002-05-27 03:45:27 +00:00
benno
db41f480f0
Let this code know about PowerPC.
2002-05-21 03:40:42 +00:00
peter
63e16b5a37
Avoid casting a different sized integer to a pointer on LP64 systems.
2002-05-10 12:50:59 +00:00
phk
06842004ed
Constify _malloc_options.
2002-04-24 16:49:36 +00:00
markm
76fe441a7b
Do not use __progname directly (except in [gs]etprogname(3)).
...
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.
2002-03-29 22:43:43 +00:00
obrien
b1189e8930
Fix the style of the SCM ID's.
...
I believe have made all of libc .h's as consistent as possible.
2002-03-22 23:42:05 +00:00
obrien
d90536e35b
Fix the style of the SCM ID's.
...
I believe have made all of libc .c's as consistent as possible.
2002-03-22 21:53:29 +00:00
obrien
e2881f49cc
Remove multi-line __P() usage.
2002-03-22 09:22:15 +00:00
obrien
3b73ce2319
Remove __P() usage.
2002-03-21 22:49:10 +00:00
obrien
1196344bb3
Remove 'register' keyword.
2002-03-21 18:49:23 +00:00
tegge
9450e3c22c
When multiple threads call atexit at the same time, some operations must
...
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
2002-03-05 17:34:37 +00:00
jake
e6a3a506a5
Add ifdefs for sparc64.
2002-02-23 19:05:26 +00:00
yar
1c60c1c170
Minor typo fix: uquad_t -> u_quad_t.
2002-01-20 16:50:29 +00:00
ru
89069aaa17
mdoc(7) police: add missing markup bits for ``errno''.
2002-01-09 14:03:54 +00:00
ache
a6e7c78be5
Back out errno preserving
2001-12-30 03:34:46 +00:00
ache
8e65f0dbb2
Add "except the handling of errors" into "equivalent to" paragraph.
...
Pointed by: bde
Inspired by: POSIX
2001-12-25 08:43:35 +00:00
ache
091d3aa837
Preserve errno.
...
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."
2001-12-25 04:10:50 +00:00
phantom
e19de1ca70
* cleanup comments and defines
...
Reviewed by: bde
2001-12-14 11:36:37 +00:00
ru
84f883bb74
mdoc(7) police: fix markup, bump document date.
2001-12-12 14:53:51 +00:00
ru
3d0ef85101
mdoc(7) police: kill HSBs, add missing comma.
2001-12-12 14:41:53 +00:00
ru
78899bd0ef
mdoc(7) police: fix markup.
2001-12-12 14:40:09 +00:00
phantom
43b8ed47bd
Add my e-mail to copyrights
2001-12-11 16:00:47 +00:00
phantom
3e66048c32
Get rid of unused anymore file! Alpha works fine with our strtod() now.
2001-12-07 17:19:09 +00:00
ache
153ef07a49
Return 'c' back to signed due to potential comparison problems
...
Use simpler test for valid ranges
Submitted by: bde
2001-12-07 16:33:47 +00:00
peter
2614d1c3e1
Use the merged strtod.c everywhere. This has been tested on alpha and
...
ia64.
2001-12-02 18:27:40 +00:00
ache
0d916b1648
Make it works for non ASCII compatible encodings too.
...
The only assumption left is that 'A'..'Z' 'a'..'z' both are contiguous
2001-12-02 09:15:54 +00:00
phantom
c1418d2e44
Merge NetBSD's changes from netbsd_strtod.c in preparation of
...
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)
2001-11-30 12:48:30 +00:00
ache
0c2addad83
Back out national digits support, POSIX explicetely disallows it:
...
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.
2001-11-29 03:03:55 +00:00
ache
3a5ef92343
Don't ever assume that isdigit() is always subset of isxdigit()
2001-11-28 06:06:27 +00:00
ache
f320d6c29a
Fix typo
2001-11-28 05:43:24 +00:00
ache
10211a493a
Use stricter tests to disallow national digits > 9
...
Optimize national digits code a bit
2001-11-28 05:39:21 +00:00
ache
32ca7fdc02
Allow national (non-ASCII) digits
2001-11-28 03:57:12 +00:00
fenner
b624c038d2
Implement strtoimax() and strtoumax()
2001-11-28 03:37:06 +00:00
fenner
b52e8932fd
Also mention "long long" in synopsis.
2001-11-28 03:36:05 +00:00
fenner
b43213c533
Base 36 is allowed.
2001-11-28 02:35:35 +00:00
ache
e27de1447a
Put back base > 35 check. If someone dislike it, plese discuss it with
...
standards group first.
2001-11-28 02:17:22 +00:00
ache
58de837716
Add atoll(3) to conform POSIX and C99
2001-11-28 01:22:08 +00:00
ache
950bfdf509
Understand national (non-ASCII) digits now
...
Allow bases >=36 again
Misc cleanup
2001-11-28 00:48:11 +00:00
keramida
472fe40c00
Be more explicit about the fact that realloc() might return a
...
different pointer than the one passed to it.
PR: docs/31925
Submitted by: Andrew <andrew@ugh.net.au>
2001-11-24 03:05:40 +00:00
ru
a7f5495c62
mdoc(7) police: fixed typos and minor markup nits.
2001-11-21 16:19:50 +00:00
phk
30e4ff53d3
If 'VX' is given, realloc(foo,0) will bail, it shouldn't.
...
PR: 29376
Submitted by: Farooq Mela <fmela0@sm.socccd.cc.ca.us>
2001-11-17 10:57:04 +00:00
phk
1fb8368599
Correctly call THREAD_UNLOCK() if the recursive call trap is sprung.
...
Pointed out by: knu
2001-11-16 18:15:33 +00:00
mike
77077eee7a
o Implement imaxabs(), imaxdiv(), llabs(), lldiv().
...
o Update abs(3), div(3), labs(3), ldiv(3) to reflect standards
conformance and add additional references.
Reviewed by: bde, wollman
2001-11-15 02:05:03 +00:00
dd
a52b2530e8
malloc and calloc do not free memory.
...
PR: 31365
Submitted by: SUZUKI Koichi <koich@cac.co.jp>
2001-11-05 00:39:27 +00:00
peter
46661c1f9e
Make strtod.c work on Alpha as well. strtod.c has got locale support,
...
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.
2001-11-04 21:30:12 +00:00
peter
667c53ff05
Slightly closer to netbsd_strtod.c:
...
s/IEEE_8087/IEEE_LITTLE_ENDIAN/
s/IEEE_MC68k/IEEE_BIG_ENDIAN/
2001-11-04 18:04:00 +00:00
phk
43f68f8842
phkmalloc->evilchecks++;
...
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>
2001-11-02 11:32:28 +00:00
markm
6187976edf
Add a long-overdue nail to the deprecated /dev/urandom interface
...
by asking some things that need unpredictable numbers to read
/dev/random instead.
2001-10-30 21:26:50 +00:00