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
dfr
bfef499fd2
Make this work on ia64. I have no idea why it works on alpha - it
...
shouldn't.
2001-10-06 15:58:54 +00:00
alfred
036a7d2e16
Avoid getting stuck in system(3) when the internal call to wait4()
...
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>
2001-10-03 11:01:39 +00:00
ru
2091dd93be
mdoc(7) police: don't split author names in the AUTHORS section.
2001-10-01 13:50:03 +00:00
ru
27a539ba89
mdoc(7) police: s/atof/atoi/
2001-10-01 12:44:24 +00:00
asmodai
1036376e73
Add ERRORS section.
...
Mention thread safety and async-cancel safety status [not].
Add standards compliancy references.
Note strtol() is preferred over atoi().
MFC after: 2 weeks
2001-09-26 20:22:44 +00:00
asmodai
176ff42ed5
Be explicit about the POSIX version it conforms to [in this case 1990].
...
Put the error comment under the more appropriate ERRORS section.
2001-09-26 20:10:10 +00:00
asmodai
518e58c70b
Change standards compliancy order so that C and POSIX are grouped.
2001-09-26 19:42:39 +00:00
mike
c097487da5
style(9)
...
Silence from: phantom
2001-09-17 00:23:19 +00:00
ru
05234b1d16
mdoc(7) police: changed pure POSIX text; added missing markup bits.
2001-09-11 09:39:23 +00:00
asmodai
fe6129599e
Add more standards which we conform to.
...
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.
2001-09-09 21:09:53 +00:00
asmodai
e08a19072b
Detail thread-safe and async-cancel-safe status.
...
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.
2001-09-09 18:52:00 +00:00
asmodai
a04d04aa06
Move to using .In instead of .Fd #include <> for include mark-up.
...
Inspired by comment from: dd
2001-09-07 14:46:36 +00:00
phantom
ae41577e4e
reconnect strfmon.c to build list
2001-09-07 13:03:16 +00:00
asmodai
b883ee05be
Fix some mdoc nits caused by my knowledge not being too up-to-date on
...
mdocNG.
Submitted by: dd
2001-09-07 12:38:10 +00:00